From 1763efefaa0e66ffdf106fb879d161f3719ad741 Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Fri, 1 Nov 2024 09:42:00 +0100 Subject: [PATCH] reintroduce GPU_BACKEND --- src/deprecations.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/deprecations.jl b/src/deprecations.jl index 8e507a4645..4ae1732f85 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -145,6 +145,12 @@ function supported_devices() return MLDataDevices.supported_gpu_backends() end +# This was previosly documented. +# As of v0.14.23 we silently deprecate it. +# Later we will deprecate it loudly and then remove it. +const GPU_BACKEND = @load_preference("gpu_backend", "CUDA") + + # v0.15 deprecations # Enable these when 0.15 is released, and delete const ClipGrad = Optimise.ClipValue etc: