Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

Hi David,
 
I grabbed the LD_LIBRARY_PATH value from the server, and put that as you advised.
 
Here is the script produced by Eclipse:
 
#!/bin/bash
#SBATCH --workdir=/home/sha264/mpi_test
#SBATCH --job-name=ptp_sbatch
#SBATCH --nodes=2
#SBATCH --partition=debug
#SBATCH --time=00:01:00
export LD_LIBRARY_PATH="/share/cluster/RHEL6.2/x86_64/apps/openmpi/1.6.2/lib:/share/cluster/RHEL6.2/x86_64/apps/intel/ict/composer_xe_2013.0.079/compiler/lib/intel64:/share/cluster/RHEL6.2/x86_64/apps/intel/ict/composer_xe_2013.0.079/mkl/lib/intel64"
# Set mpirun arguments
NP="-np 4"
CWD="-cwd /home/sha264/mpi_test"
if [ "" = "--reboot" ]; then
    REBOOT="-reboot"
fi
MPI_ARGS="${NP} ${MODE} ${CWD} ${MAPFILE} ${LABEL} ${REBOOT} ${VERBOSE} ${TRACE} ${CONFIG}"
# Set mpirun environment variables
MPI_ENV="-env_all"
COMMAND="mpirun ${MPI_ARGS} ${MPI_ENV} /home/sha264/mpi_test/hello "
cd /home/sha264/mpi_test
${COMMAND}
BTW, Eclipse complains:
 
Problem Occurred
'Launching DLXHello' has encountered a problem.
sbatch Exited with value: 1
sbatch: error: Batch job submission failed: Node count
specification invalid
Job Submit Failed
 
Do you have any advice?
 
BTW, the working script I wrote manually looks like:
 

#!/bin/bash

#SBATCH -n 4

#SBATCH -t 00:01:00

#SBATCH -J hello_job

#SBATCH -o output.txt

mpirun hello

 

Any idea?

 

Thanks,

 

Hamid

 

----- Original Message -----
Sent: Wednesday, January 15, 2014 11:33 AM
Subject: Re: [ptp-user] error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

On 01/14/2014 03:31 PM, Hamid Hamraz wrote:
Hello List,
 
I am running Eclipse and PTP on Windows and trying to develop a remote MPI project. So far, I could compile my hello world C file and get the executable. BTW, I couldn't have been able to run the executable on the remote server. I keep receiving:
 

mpirun: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

 

which is related to the PATH environment variable. Looking online resources, I am advised to set the LD_LIBRARY_PATH. However, I don't know where on Eclipse I should set that and to what value should it be set. I appreciate your help.

 

Thank you.

 

Hamid Hamraz

 

 



_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user
Hamid
It looks like libimf.so is an Intel library so you need to find the directory containing that library, for instance /opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libimf.so, and add it to the setting for LD_LIBRARY_PATH.

LD_LIBRARY_PATH can be set in the Environment tab of the run configuration for your application by clicking the New button, filling in the Name field with LD_LIBRARY_PATH and the Value field with what you would specify as your complete library search path

Dave


_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user

Back to the top