TensorFlow in nvidia-docker: failed call to cuInit: CUDA_ERROR_UNKNOWN

后端 未结 3 1891
独厮守ぢ
独厮守ぢ 2020-12-19 11:05

I have been working on getting an application that relies on TensorFlow to work as a docker container with nvidia-docker. I have compiled my application on top

3条回答
  •  醉酒成梦
    2020-12-19 11:48

    Maybe the problem is related to JIT caching files permissions, created by GPU. On linux, by default, cache files were created at ~/.nv/ComputeCache. Setting another directory for JIT cache solves the problem. Just do

    export CUDA_CACHE_PATH=/tmp/nvidia
    

    before running something on GPU.

提交回复
热议问题