Setting cpu-frequency with srun

Setting cpu-frequency with srun

by Sascha Hofmann -
Number of replies: 3

Hello everyone,

I am working on the first exercise and trying to run my code. However, when I use the command from the exercise sildes "srun--cpu-freq=2000000-2000000 ./a.out" (using my binary instead of the generic a.out), I receive the following error:

srun: error: governor of 2000000-2000000 is not allowed in slurm.conf
srun: error: Invalid --cpu-freq argument

What can I do about this? Thanks in advance.

In reply to Sascha Hofmann

Re: Setting cpu-frequency with srun

by Arjun Lenan Sandhya -
Maybe because you are missing a space between srun and --cpu-freq ? As I see it, it is "srun--cpu-freq=2000000-2000000 ./a.out", while it should be "srun --cpu-freq=2000000-2000000 ./a.out"
I am not sure though if that is the actual cause.
In reply to Sascha Hofmann

Re: Setting cpu-frequency with srun

by Georg Hager -

Hi,

we apologize for the inconvenience. Recently, there has been an update of the Slurm batch scheduler. The new version does not allow the specification of a frequency range without a governor. Hence, you have to write

srun --cpu-freq=2000000-2000000:performance ./a.out

to fix the clock speed. We will update the slides etc. ASAP.

Sorry,

Georg.