Skip to content

Commit 2569ac9

Browse files
reintroduce GPU_BACKEND (#2511)
1 parent eb9ec4a commit 2569ac9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/deprecations.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ function supported_devices()
145145
return MLDataDevices.supported_gpu_backends()
146146
end
147147

148+
# This was previosly documented.
149+
# As of v0.14.23 we silently deprecate it.
150+
# Later we will deprecate it loudly and then remove it.
151+
const GPU_BACKEND = @load_preference("gpu_backend", "CUDA")
152+
153+
148154
# v0.15 deprecations
149155

150156
# Enable these when 0.15 is released, and delete const ClipGrad = Optimise.ClipValue etc:

0 commit comments

Comments
 (0)