CUDA does not mount into docker-container
lithium555 opened this issue · comments
lithium555 commented
Hi, Team!
I have such problem https://forums.developer.nvidia.com/t/why-it-doesnt-see-cuda-docker-container/264897
Could we solve them or I should create my own docker image and mount all needful libraries by myself?
Q-engineering commented
Best you follow the suggestions of dusty_nv and create your own docker.
I have no clue how you run into this issue.
lithium555 commented
I fixed this trouble:
sudo CUDACXX=/usr/local/cuda/bin/nvcc cmake -DCMAKE_PREFIX_PATH=/usr/local/lib/python3.6/dist-packages/torch ..
sudo make -j2
./tcuda
Optional (if you have issues with C++11):
CXX=clang++
CXXFLAGS="-g -std=c++11 -Wall -pedantic"