Re: [slurm-users] Assigning two "cores" when I'm only request one.

2021-07-13 Thread Benjamin Redling
On 12/07/2021 21.16, Luis R. Torres wrote: I'm trying to run one task on one "core", however, when I test the affinity, the system gives me "two"; I'm assuming the two are threads since the system is a dual socket system. [...] AFAI understand, you reason that the no. of hw threads depends on

Re: [slurm-users] Assigning two "cores" when I'm only request one.

2021-07-12 Thread Rodrigo Santibáñez
I use ThreadsPerCore=1 in the node definitions. $ srun --cpus-per-task 1 --pty python3 Python 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.cpu_count() 16 >>> os.sched_getaffinity(0) {0} On

[slurm-users] Assigning two "cores" when I'm only request one.

2021-07-12 Thread Luis R. Torres
Hi Folks, I'm trying to run one task on one "core", however, when I test the affinity, the system gives me "two"; I'm assuming the two are threads since the system is a dual socket system. Is there anything in the configuration that I can change to have a single core or thread assigned to a singl