-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Combining regular and weak dependencies for testing purposes #4028
Comments
x-ref JuliaLang/Pkg.jl#4028 [ci skip]
I discussed the same situation recently with @KristofferC on Slack, he mentioned that this should be fixed on 1.11, but in my testing it was only fixed in 1.12 But even though in 1.12 it works by adding CUDA to the deps and removing it from the weakdeps. This kinda breaks Crucially this works because on 1.11/1.12 deps will also trigger extensions |
Combining
Works on 1.12. If this is the blessed way (which still seems a bit hacky), could it be backportable to 1.11.x? |
Yes, we should do that. |
JuliaLang/julia#54009 and #3865 should be backported. |
I want to test NNlib.jl, which has a weak dep on CUDA.jl and cuDNN.jl, using my development version of CUDA.jl/cuDNN.jl. This does not seem to work, presumably because of the weakdep.
So far so good. The
]st
output looks confusing though, with no trace of CUDA or cuDNN:I guess that may be because it's both a dep and a weakdep, which is weird. The bigger problem however is that testing discards my development versions of CUDA.jl and cuDNN.jl:
Adding CUDA or cuDNN to the
test
Project.toml doesn't help either; it just picks up the released versions.I realize that this is a peculiar combination of dependencies, but it does seem impossible right now to test an unreleased version of CUDA.jl with NNlib.jl.
Tested on 1.10.
The text was updated successfully, but these errors were encountered: