Skip to content

Commit 5c310e0

Browse files
authored
Replace proctypes with proclist in tests
Replace usage of the pre-Dagger 0.11.1 `proctypes` field of `ThunkOptions` with the `proclist` field found in Dagger 0.11.1 and later.
1 parent 8f11922 commit 5c310e0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/runtests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ end
5252
else
5353
cuproc = DaggerGPU.processor(:CUDA)
5454
b = generate_thunks()
55-
opts = Dagger.Sch.ThunkOptions(;proctypes=[cuproc])
55+
opts = Dagger.Sch.ThunkOptions(;proclist=[cuproc])
5656
c_pre = delayed(myfunc; options=opts)(b)
5757
c = delayed(sum; options=opts)(b)
5858

59-
opts = Dagger.Sch.ThunkOptions(;proctypes=[Dagger.ThreadProc])
59+
opts = Dagger.Sch.ThunkOptions(;proclist=[Dagger.ThreadProc])
6060
d = delayed(identity; options=opts)(c)
6161
@test collect(d) == 20
6262

6363
@testset "KernelAbstractions" begin
6464
cuproc = DaggerGPU.processor(:CUDA)
65-
opts = Dagger.Sch.ThunkOptions(;proctypes=[cuproc])
65+
opts = Dagger.Sch.ThunkOptions(;proclist=[cuproc])
6666
A = rand(Float32, 8)
6767
_A = collect(delayed(fill_thunk)(A, 2.3); options=opts)
6868
@test all(_A .== 2.3)
@@ -76,19 +76,19 @@ end
7676
else
7777
rocproc = DaggerGPU.processor(:ROC)
7878
b = generate_thunks()
79-
opts = Dagger.Sch.ThunkOptions(;proctypes=[rocproc])
79+
opts = Dagger.Sch.ThunkOptions(;proclist=[rocproc])
8080
c_pre = delayed(myfunc; options=opts)(b)
8181
c = delayed(sum; options=opts)(b)
8282

83-
opts = Dagger.Sch.ThunkOptions(;proctypes=[Dagger.ThreadProc])
83+
opts = Dagger.Sch.ThunkOptions(;proclist=[Dagger.ThreadProc])
8484
d = delayed(identity; options=opts)(c)
8585
@test collect(d) == 20
8686

8787
@test_skip "KernelAbstractions"
8888
#= FIXME
8989
@testset "KernelAbstractions" begin
9090
rocproc = DaggerGPU.processor(:ROC)
91-
opts = Dagger.Sch.ThunkOptions(;proctypes=[rocproc])
91+
opts = Dagger.Sch.ThunkOptions(;proclist=[rocproc])
9292
A = rand(Float32, 8)
9393
_A = collect(delayed(fill_thunk)(A, 2.3); options=opts)
9494
@test all(_A .== 2.3)

0 commit comments

Comments
 (0)