Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from LuxDL/ap/metal
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
avik-pal authored Jul 20, 2023
2 parents 221e3c5 + 9211e20 commit 10ccab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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.3"
version = "0.1.4"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down Expand Up @@ -36,7 +36,7 @@ Functors = "0.2, 0.3, 0.4"
LuxAMDGPU = "0.1"
LuxCUDA = "0.2, 0.3"
LuxCore = "0.1.4"
Metal = "0.4"
Metal = "0.4, 0.5"
PackageExtensionCompat = "1"
Preferences = "1"
TruncatedStacktraces = "1"
Expand Down
2 changes: 1 addition & 1 deletion ext/LuxDeviceUtilsMetalExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ __init__() = reset_gpu_device!()

# Device Transfer
## To GPU
adapt_storage(::LuxMetalAdaptor, x) = adapt_storage(Metal.MtlArrayAdaptor(), x)
adapt_storage(::LuxMetalAdaptor, x) = mtl(x)
adapt_storage(::LuxMetalAdaptor, rng::AbstractRNG) = rng

## Chain Rules
Expand Down

2 comments on commit 10ccab1

@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/87845

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.4 -m "<description of version>" 10ccab161765cf1a534791836db4a531aa240f97
git push origin v0.1.4

Please sign in to comment.