Skip to content

Commit 575dc00

Browse files
committed
Support move on plain Array/GPUArray
1 parent 4454c3a commit 575dc00

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/DaggerGPU.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ macro gpuproc(PROC, T)
3232
adapt(Array, poolget(x.handle))
3333
end
3434
end
35+
function Dagger.move(from_proc::OSProc, to_proc::$PROC, x)
36+
adapt($T, x)
37+
end
38+
function Dagger.move(from_proc::$PROC, to_proc::OSProc, x)
39+
adapt(Array, x)
40+
end
3541
end
3642
end
3743

0 commit comments

Comments
 (0)