Skip to content

Conversation

dcbaker
Copy link
Member

@dcbaker dcbaker commented Oct 20, 2025

No description provided.

@dcbaker
Copy link
Member Author

dcbaker commented Oct 20, 2025

@karolherbst: Could you see if this works for you? I don't have a way to really test Cuda stuff

@karolherbst
Copy link
Contributor

@dcbaker

Could not read CUDA Toolkit's version file /usr/local/cuda-12.2/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-12.2/version.txt'
Falling back to extracting version from path
Could not read CUDA Toolkit's version file /usr/local/cuda-12.4/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-12.4/version.txt'
Falling back to extracting version from path
Could not read CUDA Toolkit's version file /usr/local/cuda-12.6/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-12.6/version.txt'
Falling back to extracting version from path
Could not read CUDA Toolkit's version file /usr/local/cuda-12.9/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-12.9/version.txt'
Could not read CUDA Toolkit's version file /usr/local/cuda-12.8/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-12.8/version.txt'
Falling back to extracting version from path
Could not read CUDA Toolkit's version file /usr/local/cuda/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda/version.txt'
Could not read CUDA Toolkit's version file /usr/local/cuda-12/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-12/version.txt'
Could not read CUDA Toolkit's version file /usr/local/cuda-13.0/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-13.0/version.txt'
Could not read CUDA Toolkit's version file /usr/local/cuda-13/version.txt: [Errno 2] No such file or directory: '/usr/local/cuda-13/version.txt'
Search paths: [('/usr/local/cuda', '13.0', True), ('/usr/local/cuda-13.0', '13.0', False), ('/usr/local/cuda-13', '13.0', False), ('/usr/local/cuda-12.9', '12.9', False), ('/usr/local/cuda-12', '12.9', False), ('/usr/local/cuda-12.8', '12.8', False), ('/usr/local/cuda-12.6', '12.6', False), ('/usr/local/cuda-12.4', '12.4', False), ('/usr/local/cuda-12.2', '12.2', False)]
CUDA library directory is /usr/local/cuda/targets/x86_64-linux/lib
Link args for CUDA module 'cuda' are ['/usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so']
Dependency lookup for cuda with method 'system' failed: Couldn't find requested CUDA module 'cudart_none'
Run-time dependency CUDA found: NO 

../meson.build:1596:16: ERROR: Dependency lookup for cuda with method 'system' failed: Couldn't find requested CUDA module 'cudart_none'

@eli-schwartz
Copy link
Member

/cc @SoapGentoo @obilaniu @MaxandreOgeret for general interest in cuda support. Thoughts?

@MaxandreOgeret
Copy link
Contributor

lgtm its useful too

@dcbaker dcbaker force-pushed the submit/cuda-no-runtime branch from 53f6553 to 16058d6 Compare October 22, 2025 19:13
@dcbaker dcbaker force-pushed the submit/cuda-no-runtime branch from 16058d6 to cd9eb48 Compare October 22, 2025 19:14
@dcbaker
Copy link
Member Author

dcbaker commented Oct 22, 2025

Okay, I set up enough Cuda in a container to be able to do a compile test. I still have no idea if this actually works, and no idea how to write a test for it.

@karolherbst
Copy link
Contributor

Okay, I set up enough Cuda in a container to be able to do a compile test. I still have no idea if this actually works, and no idea how to write a test for it.

could take inspirations from https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37831 🙃

I'll check your changes tomorrow or so..

but I think the simplest way to check it works is to just have an example program calling into cuInit(0) and maybe even cuDriverGetVersion to make sure you got the expected version... I think both those APIs should work without any actual GPU in the system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants