Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

error while loading shared libraries libmpifort.so.12 on MIC

Wentao_Z_
Beginner
4,206 Views

Hi,

I was trying to run my executable natively on MIC but obtained the following error:

[wzhang80@xpacc-serv-03-mic0 plascomcm]$ ./bin/plascomcm.mic 
./bin/plascomcm.mic: error while loading shared libraries: libmpifort.so.12: cannot open shared object file: No such file or directory

I realized that the runtime libraries should be copied to the MIC cards. I did that and added the location of the library to the PATH:

[wzhang80@xpacc-serv-03-mic0 plascomcm]$ echo $PATH
/usr/bin:/usr/sbin:/bin:/sbin:/home/wzhang80/impi/5.0.2.044/mic/lib/
[wzhang80@xpacc-serv-03-mic0 plascomcm]$ which libmpifort.so.12
/home/wzhang80/impi/5.0.2.044/mic/lib/libmpifort.so.12

But I still got the same error:

[wzhang80@xpacc-serv-03-mic0 plascomcm]$ ./bin/plascomcm.mic 
./bin/plascomcm.mic: error while loading shared libraries: libmpifort.so.12: cannot open shared object file: No such file or directory

Ant suggestions? Thanks!

Best regards,
    Wentao

0 Kudos
1 Reply
Wentao_Z_
Beginner
4,207 Views

This issue is solved by setting the locations of library in LD_LIBRARY_PATH.

Best regards,
    Wentao

 

 

0 Kudos
Reply