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

Commit 10ccab1

Browse files
authored
Merge pull request #8 from LuxDL/ap/metal
Fixes #7
2 parents 221e3c5 + 9211e20 commit 10ccab1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LuxDeviceUtils"
22
uuid = "34f89e08-e1d5-43b4-8944-0b49ac560553"
33
authors = ["Avik Pal <[email protected]> and contributors"]
4-
version = "0.1.3"
4+
version = "0.1.4"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -36,7 +36,7 @@ Functors = "0.2, 0.3, 0.4"
3636
LuxAMDGPU = "0.1"
3737
LuxCUDA = "0.2, 0.3"
3838
LuxCore = "0.1.4"
39-
Metal = "0.4"
39+
Metal = "0.4, 0.5"
4040
PackageExtensionCompat = "1"
4141
Preferences = "1"
4242
TruncatedStacktraces = "1"

ext/LuxDeviceUtilsMetalExt.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ __init__() = reset_gpu_device!()
88

99
# Device Transfer
1010
## To GPU
11-
adapt_storage(::LuxMetalAdaptor, x) = adapt_storage(Metal.MtlArrayAdaptor(), x)
11+
adapt_storage(::LuxMetalAdaptor, x) = mtl(x)
1212
adapt_storage(::LuxMetalAdaptor, rng::AbstractRNG) = rng
1313

1414
## Chain Rules

0 commit comments

Comments
 (0)