Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting precompilation without CUDA is problematic #2253

Open
maleadt opened this issue Jan 29, 2024 · 0 comments
Open

Supporting precompilation without CUDA is problematic #2253

maleadt opened this issue Jan 29, 2024 · 0 comments
Labels
installation CUDA is easy to install, right?

Comments

@maleadt
Copy link
Member

maleadt commented Jan 29, 2024

We currently support precompiling CUDA-dependent packages like CUDA.jl or CUDNN_jll.jl when the user doesn't have CUDA installed. This was motivated by not having package extensions, but it also simplifies deployment (e.g. on HPC log-in nodes) or use if non-GPU infrastructure (like Registrator.jl).

It however also leads to issues like #2252, where the user can precompile CUDNN_jll without CUDA, resulting in a precompilation cache containing cuda+none that doesn't invalidate when CUDA does get installed later on. We had a similar issue with upgrades, #1877, but in this case we cannot add an include dependency on a missing library (whose ultimate installation location we do not know).

I fear that the only way to support this, is to refuse precompilation without CUDA. This can be argued for now that we have package extensions, but it would regress other use cases as well. At the least, it should be possible to override this behavior for HPC use case, instead providing the runtime CUDA version, and possibly the fact to use a local toolkit as well.

@maleadt maleadt added the installation CUDA is easy to install, right? label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation CUDA is easy to install, right?
Projects
None yet
Development

No branches or pull requests

1 participant