Running tensorflow on GPU cluster in virtualenv

后端 未结 2 1504
眼角桃花
眼角桃花 2021-01-20 16:08

I installed the GPU version of tensorflow in a virtualenv following these instructions. The problem is, I am getting a segmentation fault upon starting a session. That is, t

相关标签:
2条回答
  • 2021-01-20 16:31

    It's not finding CuDNN -

    I tensorflow/stream_executor/dso_loader.cc:93] Couldn't open CUDA library > libcudnn.so.6.5. LD_LIBRARY_PATH: :/vol/cuda/7.0.28/lib64 I tensorflow/stream_executor/cuda/cuda_dnn.cc:1382] Unable to load cuDNN DSO

    You need to have it installed. Please see the TensorFlow CUDA installation instructions

    0 讨论(0)
  • 2021-01-20 16:35

    After untar the cudnn

    [root@localhost cudnn]# cd include/
    [root@localhost include]# mv cudnn.h /usr/local/cuda/include/
    [root@localhost include]# cd ../lib64/
    [root@localhost lib64]# mv * /usr/local/cuda/lib
    

    And it is ok

    [root@localhost ~]# python
    Python 2.7.5 (default, Sep 15 2016, 22:37:39) 
    [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tensorflow as f
    I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so.8.0 locally
    I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so.5 locally
    I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so.8.0 locally
    I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally
    I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so.8.0 locally
    >>>
    
    0 讨论(0)
提交回复
热议问题