tsume
The Pervy Sage
This is probably a shot in the dark, but does anyone know the commands to compile and run code for which has MPI and OpenMP sections?
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
mpicc -fopenmp blah.c -o blah
mpicc -openmp blah.c -o blah
mpicc -cluster-openmp blah.c -o blah
mpicc -openmp blah.c
mpiexec -n 4 ./penmp.out
mpiexec was unable to launch the specified application as it could not access or execute an executable
No, I just prefer to avoid unintentionally clobbering the output file.I had used this
dont really need to specify -o blah?Code:mpicc -openmp blah.c
but the issue came when trying to run it, I'm not sure what the command is but I tried this
and the Linux terminal gave this errorCode:mpiexec -n 4 ./penmp.out
---@linHons4:~/HPCII$ mpicc -openmp suffixarray.c -o blah
----@linHons4:~/HPCII$ mpiexec -n 4 blah
[linHons4:02885] *** Process received signal ***
[linHons4:02885] Signal: Segmentation fault (11)
[linHons4:02885] Signal code: Address not mapped (1)
[linHons4:02885] Failing at address: (nil)
[linHons4:02885] [ 0] [0x43240c]
[linHons4:02885] [ 1] blah(getFileLength+0x21) [0x8048d65]
[linHons4:02885] [ 2] blah(main+0xc3) [0x8049b07]
[linHons4:02885] [ 3] /lib/libc.so.6(__libc_start_main+0xe7) [0x244ce7]
[linHons4:02885] [ 4] blah() [0x8048cb1]
[linHons4:02885] *** End of error message ***
--------------------------------------------------------------------------
mpiexec noticed that process rank 0 with PID 2885 on node linHons4 exited on signal 11 (Segmentation fault).