NVIDIA / nvidia-docker

Build and run Docker containers leveraging NVIDIA GPUs
Apache License 2.0
17.17k stars 2.03k forks source link

Fails with CUDA driver version is insufficient for CUDA runtime version #1783

Closed AlexeyMatskevich closed 10 months ago

AlexeyMatskevich commented 10 months ago

1. Issue or feature description

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

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)

AlexeyMatskevich commented 10 months ago

I found out that this is a problem with the way clion calls cmake and nvcc when compiling remotely (as docker).