I am running MPI-over-openmp jobs in a Slurm cluster and I am trying to figure out a way to give different number of CPUs to each generated task. For example, let's say we run this job:
srun --nodes 1 --ntasks 2 --cpus-per-task 2 ./mpi_exe
This would generate 2 MPI processes in a single node, with 2 CPUs each. However I would like to, for example, assign 3 CPUs to the first process and 1 in the second process.
Do you know any way to achieve this?