Closed AlexeyMatskevich closed 10 months ago
I get this error when I try to run the code.
terminate called after throwing an instance of 'thrust::system::detail::bad_alloc' what(): std::bad_alloc: cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA runtime version
Get code from first example https://docs.nvidia.com/cuda/thrust/index.html#vectors and run My example https://github.com/AlexeyMatskevich/cuda_test
nvidia-container-cli -k -d /dev/tty info
uname -a
Linux workstation 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
dmesg
nvidia-smi -a
docker version
dpkg -l '*nvidia*'
rpm -qa '*nvidia*'
nvidia-container-cli -V
[x] Docker command, image and tag used
#Dockerfile FROM nvcr.io/nvidia/cuda:12.2.0-devel-ubuntu20.04 WORKDIR /usr/src/app RUN apt-get update \ && apt-get install -y wget libssl-dev \ && rm -rf /var/lib/apt/lists/* RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.4/cmake-3.27.4.tar.gz && tar -zxvf cmake-3.27.4.tar.gz && cd cmake-3.27.4 && ./bootstrap && make && make install CMD ["/usr/bin/bash"]
#docker-compose.yml services: cuda: build: context: . dockerfile: Dockerfile network: host deploy: resources: reservations: devices: - driver: nvidia count: 1 capabilities: [ gpu ] ulimits: stack: 67108864 memlock: -1 volumes: - .:/usr/src/app
nvidia-smi.txt dmesq.txt docker-version.txt findmnt.txt nvidia-smi-in-docker.txt nvidia-container-cli.txt dpkq.txt
I found out that this is a problem with the way clion calls cmake and nvcc when compiling remotely (as docker).
1. Issue or feature description
I get this error when I try to run the code.
2. Steps to reproduce the issue
Get code from first example https://docs.nvidia.com/cuda/thrust/index.html#vectors and run My example https://github.com/AlexeyMatskevich/cuda_test
3. Information to attach (optional if deemed irrelevant)
nvidia-container-cli -k -d /dev/tty info
uname -a
Linux workstation 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
dmesg
nvidia-smi -a
docker version
dpkg -l '*nvidia*'
orrpm -qa '*nvidia*'
nvidia-container-cli -V
[x] Docker command, image and tag used
nvidia-smi.txt dmesq.txt docker-version.txt findmnt.txt nvidia-smi-in-docker.txt nvidia-container-cli.txt dpkq.txt