From bdeff659441b9023e4d79d9936c84d6ca18bcdba Mon Sep 17 00:00:00 2001 From: Katharine Hyatt Date: Wed, 29 Jul 2026 16:54:36 +0200 Subject: [PATCH] Try using DefaultAllocator instead of BufferAllocator I think `BufferAllocator` doesn't work with the GPU arrays... --- src/algorithms/derivatives/derivatives.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/derivatives/derivatives.jl b/src/algorithms/derivatives/derivatives.jl index 7d5cc677e..fdeebb5ef 100644 --- a/src/algorithms/derivatives/derivatives.jl +++ b/src/algorithms/derivatives/derivatives.jl @@ -229,4 +229,4 @@ Given an operator, try to construct a more efficient representation of that oper This typically consists of precomputing some parts of the application, and is expected to only pay off for repeated applications. """ -prepare_operator!!(O, backend::AbstractBackend = DefaultBackend(), allocator = BufferAllocator()) = O +prepare_operator!!(O, backend::AbstractBackend = DefaultBackend(), allocator = DefaultAllocator()) = O