From 2569ac9a53e157522bd483b14651da20092172c9 Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Fri, 1 Nov 2024 10:10:31 +0100 Subject: [PATCH] reintroduce GPU_BACKEND (#2511) --- 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: