Skip to content

Commit d8787e0

Browse files
authored
async_copy! fixes (#69)
* Add async copies to the test suite
1 parent 0e89151 commit d8787e0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/backends/cpu.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ function wait(cpu::CPU, ev::MultiEvent, progress=nothing)
2828
end
2929

3030
function wait(::CPU, ev::CPUEvent, progress=nothing)
31-
ev.task === nothing && return
32-
3331
if progress === nothing
3432
wait(ev.task)
3533
else

test/async_copy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ M = 1024
2222
if has_cuda_gpu()
2323
copy_test(CUDA(), CuArray, M)
2424
end
25-
copy_test(CPU(), CuArray, M)
25+
copy_test(CPU(), Array, M)

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ end
2121
include("nditeration.jl")
2222
end
2323

24+
@testset "async_copy!" begin
25+
include("async_copy.jl")
26+
end
27+
2428
@testset "Events" begin
2529
include("events.jl")
2630
end

0 commit comments

Comments
 (0)