Skip to content

cuda.cudart.getLocalRuntimeVersion() raises RuntimeError: Failed to dlopen libcudart.so.12 #89

Description

@Matt711

Is this a bug? getLocalRuntimeVersion() fails for me in cuda 11.8 environment. I'm asking because I see that the API call is in the cuda-python 11.8 release notes.

In the source code, we're hard coding libcudart.so.12. Is that right?

Repro

In [1]: fromcudaimportcudartIn [2]: cudart.getLocalRuntimeVersion()
---------------------------------------------------------------------------RuntimeErrorTraceback (mostrecentcalllast)
CellIn[2], line1---->1cudart.getLocalRuntimeVersion()
File~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/cudart.pyx:24961, incuda.cudart.getLocalRuntimeVersion()
File~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/ccudart.pyx:2365, incuda.ccudart.getLocalRuntimeVersion()
File~/.conda/envs/rapids/lib/python3.11/site-packages/cuda/_lib/ccudart/ccudart.pyx:2121, incuda._lib.ccudart.ccudart._getLocalRuntimeVersion()
RuntimeError: Failedtodlopenlibcudart.so.12

Metadata

Metadata

Assignees

Labels

P0High priority - Must do!bugSomething isn't workingcuda.bindingsEverything related to the cuda.bindings module

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions