How are the nodes configured? The question is of CPU definition - is it cores? threads? sockets? That depends on node configuration.

See https://slurm.schedmd.com/slurm.conf.html#OPT_CR_CPU



CR_CPU
CPUs are consumable resources. Configure the number of CPUs on each node, which may be equal to the count of cores or hyper-threads on the node depending upon the desired minimum resource allocation. The node's Boards, Sockets, CoresPerSocket and ThreadsPerCore may optionally be configured and result in job allocations which have improved locality; however doing so will prevent more than one job from being allocated on each core.


On 11/06/2025 0:53, Adrian Sevcenco via slurm-users wrote:
Hi! i have a weird situation in which only cores are used instead of CPUs
this is Alma9/slurm 22.05.9 (the last one from epel)

I have:

conf.d/resources.conf
9:SelectType=select/cons_res

conf.d/resources.conf
11:SelectTypeParameters=CR_CPU

conf.d/resources.conf
5:TaskPluginParam=autobind=threads

conf.d/resources.conf
2:TaskPlugin=task/affinity,task/cgroup

cgroup.conf
2:ConstrainCores=no

conf.d/parts_issaf.conf
8:PartitionName=CLUSTER DEFAULT=YES State=UP nodes=DEFAULT DefaultTime=240:00:00 MaxTime=480:00:00 LLN=yes MaxNodes=1

What am i missing? Why are only cores used?

Thanks a lot!!
Adrian