[mpich-discuss] Binding CPU

Kenneth Raffenetti raffenet at mcs.anl.gov
Wed Aug 23 11:10:11 CDT 2017


I think you meant to send to the Open MPI user list.

Ken

On 08/23/2017 09:56 AM, Pasha Pashaei wrote:
> Dear Friends,
> 
> The problem that I faced is I could not bind CPUs yet to test my hybrid 
> code.
> I tried various methods which I found on internet, but the main
> problem is as we have different version of Linux and MPI,
> there is no general solution for doing that.
> Any solutions are specific for their computers and operating systems.
> The last and proper solution that I found is following:
>   module load gcc/5.2.1
>   module load openmpi-x86_64
> export OMP_SCHEDULE="dynamic,200"
> export OMP_NUM_THREADS=32
> export OMP_PLACES=threads
> export OMP_PROC_BIND=spread
> numactl --all
> numactl -N 0,1 > dbind.txt
> numactl -C 0-15,32-47
> numactl -C 1-31,48-63
> numactl --show > dcpu.txt
> mpirun -np 2 --map-by ppr:32:socket:pe=2 ./pjet.gfortran > output.txt
> 
> Although it did not face with any error, It did not bind CPU, I do not 
> know why?
> Can you please tell me that am I in right direction? do you have any
> recommendation for that?
> I am  using module (Open MPI) 1.8.1,
> Right now, I do not face with any errors. Thus I tried to find a proper 
> way to bind cpu for running the code in this new condition.
> I changed NUMA setting and played with mpirun flags(as you saw above), 
> but it seems that openmp is not working in this condition.
> As computational time do not vary in different cases. (it did not reduce 
> or change at all even if assuming export OMP_NUM_THREADS=16 or export 
> OMP_NUM_THREADS=1)
> Can you please tell me what else can I do for solving that?
> I would appreciate your help and thank in advance.
> Thank you in advance
> Best regards.
> Pasha Pashaei
> 
> 
> 
> 
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
> 
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list