Unable to use all cores with mpirun

后端 未结 2 1254
深忆病人
深忆病人 2021-02-09 06:39

I\'m testing a simple MPI program on my desktop (Ubuntu LTS 16.04/ Intel® Core™ i3-6100U CPU @ 2.30GHz × 4/ gcc 4.8.5 /OpenMPI 3.0.0) and mpirun won\'t let me use all of the cor

2条回答
  •  温柔的废话
    2021-02-09 07:42

    Use $ lscpu the number of cores per socket * number of sockets would give you number of physical cores(the ones that you can use for mpi) where as sockets per core * number of sockets * threads per core will give you number of logical cores(the one that you get by using the command $ cat /proc/cpuinfo | grep processor | wc -l)

提交回复
热议问题