Skip to content

Commit

Permalink
Merge pull request #17 from LuxDL/ap/warn
Browse files Browse the repository at this point in the history
More verbose warning if trigger package not loaded
  • Loading branch information
avik-pal authored Oct 20, 2023
2 parents 672d74e + bd55b27 commit f037bf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LuxDeviceUtils"
uuid = "34f89e08-e1d5-43b4-8944-0b49ac560553"
authors = ["Avik Pal <[email protected]> and contributors"]
version = "0.1.8"
version = "0.1.9"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
5 changes: 4 additions & 1 deletion src/LuxDeviceUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ function _get_gpu_device(; force_gpu_usage::Bool)
@warn """No functional GPU backend found! Defaulting to CPU.
1. If no GPU is available, nothing needs to be done.
2. If GPU is available, load the corresponding trigger package.""" maxlog=1
2. If GPU is available, load the corresponding trigger package.
a. LuxCUDA.jl for NVIDIA CUDA Support!
b. LuxAMDGPU.jl for AMD GPU ROCM Support!
c. Metal.jl for Apple Metal GPU Support!""" maxlog=1
return cpu_device()
end
end
Expand Down

3 comments on commit f037bf2

@avik-pal
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegister register

@avik-pal
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/93807

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.9 -m "<description of version>" f037bf22c2064d596d29a258dec0c8d6c93e3720
git push origin v0.1.9

Please sign in to comment.