- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote a MPI Program to run on Intel Xeon Phi in native mode.
I am using Stampede super computer.
I have defined omp pragmas in the code.
I have compiled using following command
$mpiicc program.c -openmp -mmic
To submit as a batch file, script file has the following commands
#!/bin/bash
#SBATCH -J myMPI # job name
#SBATCH -o result.o%j # output and error file name (%j expands to jobID)
#SBATCH -e result.e%j
#SBATCH -N 1 -n 2 # total number of mpi tasks requested
#SBATCH -p normal-mic # queue (partition) -- normal, development, etc.
#SBATCH -t 00:10:00 # run time (hh:mm:ss) - 1.5 hours
scp a.out mic0:/tmp
export I_MPI_MIC=enable
ibrun -host mic0 /tmp/a.out # run the MPI executable named a.out
I am getting the following errors
/tmp/a.out: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory
/tmp/a.out: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory
somebody please help me how to get rid of these errors.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One would think the procedure for using compiler shared libraries would be covered in stampede FAQ. If you don't have available a module command and don't have privilege to upload .so to the default path you must set ld_library_path to match where you upload it.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Krishna,
Your MPI application depends on libiomp5.so, so you should ensure that this library is available on the Xeon Phi and dynamic linker is able to find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One would think the procedure for using compiler shared libraries would be covered in stampede FAQ. If you don't have available a module command and don't have privilege to upload .so to the default path you must set ld_library_path to match where you upload it.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page