Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2154 Discussions

MPI 4 mpi shared memory window with locking

happyIntelCamper
Beginner
557 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
557 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

0 Kudos
1 Reply
Dmitry_K_Intel2
Employee
558 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
0 Kudos
Reply