Number of threads need to be set explicitly when using slurm. This was done, but I mixed up the order ...
Also see https://github.com/microsoft/onnxruntime/issues/8313