Skip to content

Commit fd51dbd

Browse files
committed
Update to Dagger 0.10
1 parent f4957e0 commit fd51dbd

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1111

1212
[compat]
1313
Adapt = "1, 2"
14-
Dagger = "0.9 - 0.10"
14+
Dagger = "0.10"
1515
Requires = "1"
1616
julia = "1"
1717

src/DaggerGPU.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ macro gpuproc(PROC, T)
1313
Dagger.iscompatible_arg(proc::Dagger.ThreadProc, opts, x::$T) = false
1414

1515
# Adapt to/from the appropriate type
16-
Dagger.move(ctx, from_proc::OSProc, to_proc::$PROC, x) = adapt($T, x)
17-
Dagger.move(ctx, from_proc::$PROC, to_proc::OSProc, x) = adapt(Array, x)
16+
Dagger.move(from_proc::OSProc, to_proc::$PROC, x) = adapt($T, x)
17+
Dagger.move(from_proc::$PROC, to_proc::OSProc, x) = adapt(Array, x)
1818
end
1919
end
2020

src/cu.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ end
1212
@gpuproc(CuArrayDeviceProc, CuArray)
1313
const CuArrayProc = CuArrayDeviceProc
1414
#= FIXME: CUDA IPC
15-
function Dagger.move(ctx, from::CuArrayDeviceProc, to::CuArrayDeviceProc, x)
15+
function Dagger.move(from::CuArrayDeviceProc, to::CuArrayDeviceProc, x)
1616
if from === to
1717
return x
1818
else
@@ -34,7 +34,7 @@ struct CuArraySMProc <: Dagger.Processor
3434
end
3535
@gpuproc(CuArraySMProc, CuArray)
3636
#= FIXME: CUDA IPC
37-
function Dagger.move(ctx, from::CuArraySMProc, to::CuArraySMProc, x)
37+
function Dagger.move(from::CuArraySMProc, to::CuArraySMProc, x)
3838
if from.device === to.device
3939
return x
4040
else

0 commit comments

Comments
 (0)