[mpich-discuss] Binding CPU

Pasha Pashaei pasha.313 at hotmail.com
Wed Aug 23 09:56:31 CDT 2017


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20170823/62746a46/attachment.html>
-------------- next part --------------
_______________________________________________
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