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

Error message from @import_required_backends when CUDA.jl/MPI.jl are not available is unhelpful #88

Open
Sbozzolo opened this issue Aug 27, 2024 · 0 comments · May be fixed by #89
Open

Comments

@Sbozzolo
Copy link
Member

When calling @import_required_backends, the relevant backends have to be installed. When they are not, the error message is something like

ERROR: ArgumentError: Package CUDA not found in current path.
- Run `import Pkg; Pkg.add("CUDA")` to install the CUDA package.
Stacktrace:
 [1] macro expansion
   @ ./loading.jl:1772 [inlined]
 [2] macro expansion
   @ ./lock.jl:267 [inlined]
 [3] __require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1753
 [4] #invoke_in_world#3
   @ ./essentials.jl:926 [inlined]
 [5] invoke_in_world
   @ ./essentials.jl:923 [inlined]
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1746
 [7] macro expansion
   @ ~/.julia/packages/ClimaComms/agO9C/src/loading.jl:51 [inlined]
 [8] top-level scope
   @ REPL[6]:1

This is not very user friendly and might leave people confused.

This is something that end users interact with directly, so it would be better to provide more informative errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant