首页 > 其他 > 详细

libcublas.so.10.0: cannot open shared object file in singularity, however, it indeed exists in the directory.

时间:2020-02-02 10:19:50      阅读:74      评论:0      收藏:0      [点我收藏+]

When I execute the code out of the singularity (/rigel/opt/tshark/tshark_python3.sif), everything is correct.

技术分享图片

 

 

 


However, when I execute it in singularity, it always shows me that libcublas.so.10.0: cannot open shared object file in singularity, even though it exists in the directory (/cm/shared/apps/cuda10.0/toolkit/10.0.130/targets/x86_64-linux/lib/libcublas.so.10.0).

$singularity exec --nv /rigel/opt/tshark/tshark_python3.sif python

>import tensorflow as tf

>tf.test.is_gpu_available()

 

技术分享图片

 

 技术分享图片

 

 

 

Even I add "the directory path", the problem still exists.

$env SINGULARITYENV_APPEND_PATH=/cm/shared/apps/cuda10.0/toolkit/10.0.130/targets/x86_64-linux/lib/ SINGULARITY_ENV_LD_LIBRARY_PATH=$LD_LIBRARY_PATH singularity exec --nv /rigel/opt/tshark/tshark_python3.sif python

 

After several days attempting, I found the reason was that: in the singularity, the directory (/cm/shared/apps/) contains ‘libcublas.so.10.0‘ cann‘t be seen in the singularity.

技术分享图片

 

 

Knowing the reason, it‘s easy to solve.

Solution: just using --bind.

> singularity exec --nv --bind /cm/shared/apps /rigel/opt/tshark/tshark_python3.sif python

>import tensorflow as tf

>tf.test.is_gpu_available()

 技术分享图片

 

 

 

 

Error: pip install 

ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

TMPDIR=./pip_cache pip install --upgrade tensorflow_gpu==2.0.0 --user

http://naoko.github.io/pip-install-no-space-left/

 

libcublas.so.10.0: cannot open shared object file in singularity, however, it indeed exists in the directory.

原文:https://www.cnblogs.com/quinn-yann/p/12250977.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!