Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Donato_P_
Beginner
134 Views

Xeon PHI library

Hi,

 

I compiled my code for Xeon PHI but I get this output from :

ldd mycode

linux-vdso.so.1 =>  (0x00007fff585c8000)
libmpifort.so.12 => not found
libmpi.so.12 => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00007f3e6f681000)
librt.so.1 => /lib64/librt.so.1 (0x00007f3e6f479000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3e6f25c000)
libm.so.6 => /lib64/libm.so.6 (0x00007f3e6f02d000)
libiomp5.so => not found
libc.so.6 => /lib64/libc.so.6 (0x00007f3e6ecd5000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f3e6eac3000)
/lib64/ld-linux-k1om.so.2 (0x00007f3e6f885000)

 

I tried laso to export the correct path inside the LD_LIBRARY_PATH but without success

it doesn't find any new libraries

 

Regards D. 

 

0 Kudos
10 Replies
Gregg_S_Intel
Employee
134 Views

Copy these MIC libraries to the card, or even better, mount the installation directory of the Intel Software Tools on the card.

Donato_P_
Beginner
134 Views

Hi I did , I used nfs to mount the /opt/intel on the mic and I also tried to copy the libs 1 by 1,

but it doesn't work and when i try to copy the /opt/lib by nfs on the mic I get the folder but it is empty

any idea?

TimP
Black Belt
134 Views

In more detail, you must either copy the .so to /lib64 (with sudo privilege) or copy or mount to a folder which you add to LD_LIBRARY_PATH . Then the file command will show if it appears with correct characteristics.

Donato_P_
Beginner
134 Views

I did all steps but when I try to get libs the folder it is empty I get only the path without anything

inside it 

Gregg_S_Intel
Employee
134 Views

sudo ssh mic0

mkdir -p /opt/intel; mount -t nfs -o rsize=8192,wsize=8192,intr,nolock host:/opt/intel /opt/intel

 

Gregg_S_Intel
Employee
134 Views

Launching from the host system:

source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64

source /opt/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh

export SINK_LD_LIBRARY_PATH=${MIC_LD_LIBRARY_PATH}

mpirun -host mic0 -n 240 ./a.out

Donato_P_
Beginner
134 Views

My /etx/exports
 
/srv/michome 172.31.0.0/16(rw)
/home/dpera mic0(rw,no_root_squash)
/opt/intel/ mic0(rw,no_root_squash)
 
With these instructions 

sudo ssh mic0

mkdir -p /opt/intel; mount -t nfs -o rsize=8192,wsize=8192,intr,nolock host:/opt/intel /opt/intel

I get 
 
mount -t nfs -o rsize=8192,wsize=8192,intr,nolock host:/opt/intel /opt/intel
mount: host:/opt/intel failed, reason given by server: Permission denied
mount: mounting host:/opt/intel on /opt/intel failed: Bad file descriptor
 
With these instructions I get:
 

source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64

source /opt/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh

export SINK_LD_LIBRARY_PATH=${MIC_LD_LIBRARY_PATH}

mpirun -host mic0 -n 240 ./a.out

 
 
bash: /opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/bin/pmi_proxy: No such file or directory
 
 
 
Regards D. 
Donato_P_
Beginner
134 Views

My /etx/exports
 
/srv/michome 172.31.0.0/16(rw)
/home/dpera mic0(rw,no_root_squash)
/opt/intel/ mic0(rw,no_root_squash)
 
With these instructions 

sudo ssh mic0

mkdir -p /opt/intel; mount -t nfs -o rsize=8192,wsize=8192,intr,nolock host:/opt/intel /opt/intel

I get 
 
mount -t nfs -o rsize=8192,wsize=8192,intr,nolock host:/opt/intel /opt/intel
mount: host:/opt/intel failed, reason given by server: Permission denied
mount: mounting host:/opt/intel on /opt/intel failed: Bad file descriptor
 
With these instructions I get:
 

source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64

source /opt/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh

export SINK_LD_LIBRARY_PATH=${MIC_LD_LIBRARY_PATH}

mpirun -host mic0 -n 240 ./a.out

 
 
bash: /opt/intel/compilers_and_libraries_2016.2.181/linux/mpi/intel64/bin/pmi_proxy: No such file or directory
 
 
 
Regards D. 
Gregg_S_Intel
Employee
134 Views

Those run commands rely on the NFS mount and won't work without it.

 

 

Loc_N_Intel
Employee
134 Views

Note that you can also use the utility micctrl to mount a directory (Section B.4.3.4 Adding an NFS mount in the MPSS User's Guide).

Reply