Simple mathematical operation in script section #16
-
|
Hi, would it be possible to have two numerical widgets, say gpus and threads_per_gpu, and create a new variable that is the multiplication of both to use in script section? something like #SBATCH --cpus-per-task=#{gpus}*#{threads_per_gpu}. If that is possible, how can that be implemented? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Thank you for your inquiry. However, there is currently an indirect way to implement this. Therefore, you should be able to use it by configuring it as follows: Thanks, |
Beta Was this translation helpful? Give feedback.
Sorry for the wait.
The main branch now supports simple calculations. Use the following syntax:
#SBATCH --cpus-per-task=#{calc(gpus * threads_per_gpu)}For more details, please refer to: https://riken-rccs.github.io/OpenComposer/docs/application.html#functions
Thanks,