For CryoSPARC 4.6.0, is there a way to set a maximum number of GPUs requested? The request is from the line in cluster_script.sh:
#SBATCH --gres=gpu:{{ num_gpu }}
I can replace {{ num_gpu }} with a constant, but that isn’t what we need. Is there syntax that can be used here which would have the meaning of max(2, num_gpu)?
I accidentally wrote max when I meant min. Sorry for the confusion. It sounds like {{ [2, num_gpu] | min }} would give the result we need. This is due to the limited number of GPUs available on the nodes. Thanks for the help!