Skip to content

Commit 42ea51b

Browse files
committed
dtyhd
1 parent f3f7008 commit 42ea51b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ global prefer_threads::Bool = !(IS_CPU_BACKEND && "--cpuKA" in ARGS)
5959

6060
array_from_host(h_arr::AbstractArray, dtype=nothing) = array_from_host(BACKEND, h_arr, dtype)
6161
@static if IS_CPU_BACKEND && prefer_threads
62-
function array_from_host(_, h_arr::AbstractArray, dtype=nothing)
62+
function array_from_host(backend, h_arr::AbstractArray, dtype=nothing)
6363
d_arr = zeros(isnothing(dtype) ? eltype(h_arr) : dtype, size(h_arr))
6464
copyto!(d_arr, h_arr isa Array ? h_arr : Array(h_arr)) # Allow unmaterialised types, e.g. ranges
6565
d_arr

0 commit comments

Comments
 (0)