Skip to content

Commit 92e5f2b

Browse files
committed
Tweaks
1 parent ff2671f commit 92e5f2b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ext/StaticArraysExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module StaticArraysExt
22

3-
import KernelAbstractions: get_backend, CPU
3+
import KernelAbstractions: get_backend, POCLBackend
44
using StaticArrays: SizedArray, MArray
55

66
get_backend(A::SizedArray) = get_backend(A.data)
7-
get_backend(::MArray) = CPU()
7+
get_backend(::MArray) = POCLBackend()
88

99
end

test/test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function unittest_testsuite(Backend, backend_str, backend_mod, BackendArrayT; sk
110110
backendT = typeof(backend).name.wrapper # To look through CUDABackend{true, false}
111111
@test backend isa backendT
112112

113-
@test KernelAbstractions.get_backend(@MMatrix [1.0]) isa CPU
113+
@test KernelAbstractions.get_backend(@MMatrix [1.0]) isa KernelAbstractions.POCLBackend
114114
@test_throws ArgumentError KernelAbstractions.get_backend(@SMatrix [1.0])
115115

116116
A = allocate(backend, Float32, 5, 5)

0 commit comments

Comments
 (0)