We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e921d commit e925181Copy full SHA for e925181
test/runtests.jl
@@ -58,7 +58,6 @@ const IS_CPU_BACKEND = BACKEND == get_backend([])
58
global prefer_threads::Bool = !(IS_CPU_BACKEND && "--cpuKA" in ARGS)
59
60
array_from_host(h_arr::AbstractArray, dtype=nothing) = array_from_host(BACKEND, h_arr, dtype)
61
-
62
function array_from_host(backend, h_arr::AbstractArray, dtype=nothing)
63
d_arr = if IS_CPU_BACKEND && prefer_threads # Don't use KA zeros if not using KA algorithms
64
zeros(isnothing(dtype) ? eltype(h_arr) : dtype, size(h_arr))
0 commit comments