Intel® oneAPI HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
1827 Discussions

MPI 4 mpi shared memory window with locking

happyIntelCamper
Beginner
128 Views
Why does the attached code compiled :

icc test.c -g -o progtest -I/pgsdev/com/intel/intel11.1.072/impi/4.0.0.028/include64 -L/pgsdev/com/intel/intel11.1.072/impi/4.0.0.028/lib64 -lmpi

and run:

mpirun -np 2 progtest

return all zeros. I am trying to put a pattern of ones and zeros from rank 1 to rank zero using shared
memory windows. Rank zero is just outputting all zeros.


0 Kudos
1 Solution
Dmitry_K_Intel2
Employee
128 Views
Hi HappyIntelCamper,

Please take a look at the attached file. I hope that you'll easily find differences.

BTW: Why don't you use 'mpiicc -o progtest test.c' for compilation?

Regards!
Dmitry

View solution in original post

1 Reply
Dmitry_K_Intel2
Employee
129 Views
Hi HappyIntelCamper,

Please take a look at the attached file. I hope that you'll easily find differences.

BTW: Why don't you use 'mpiicc -o progtest test.c' for compilation?

Regards!
Dmitry

View solution in original post

Reply