question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace `CUDA_VERSION` with `cudaRuntimeGetVersion()` for `if`/`IF` conditionals

See original GitHub issue

This is needed to support CUDA Python as CUDA_VERSION in CUDA Python does not mean the current CUDA version.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
kmaehashicommented, Sep 9, 2021

Let’s prefix all compile_time_envs with CUPY_ to avoid confusion and conflict like this 😅 https://github.com/cupy/cupy/blob/master/cupy_setup_build.py#L947-L957

1reaction
kmaehashicommented, Sep 8, 2021

Let me clarify that driver.get_build_version() returns CUDA Python’s CUDA_VERSION if it is left as it-is (when CUDA Python is enabled).

Yes.

So I think we need to change driver.get_build_version() somehow to see cuda.h’s CUDA_VERSION.

I think it’s better to expose CUDA_VERSION as cupy_backends.cuda.libs.cusolver._get_cuda_build_version() etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CUDA runtime version vs CUDA driver version - Stack Overflow
The CUDA runtime version indicates CUDA compatibility (i.e. version) with respect to the installed cudart (CUDA runtime) library. The CUDA driver version ...
Read more >
Getting cudaRuntimeGetVersion() failed with error #35 for ...
Hello, I'm trying to run DIGITS 4.0 docker image on an EC2 machine using nvidia-docker. My EC2 machine has the 361.42 nvidia driver...
Read more >
How to check which CUDA version is installed on Linux
Check if CUDA is installed and it's location with NVCC. Run which nvcc to find if nvcc is installed properly. · Get CUDA...
Read more >
Installing Multiple CUDA & cuDNN Versions in Ubuntu
Note, the CUDA version displayed on the top right corner is the driver ... If you install using deb or run file it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found