|
52 | 52 | else |
53 | 53 | cuproc = DaggerGPU.processor(:CUDA) |
54 | 54 | b = generate_thunks() |
55 | | - opts = Dagger.Sch.ThunkOptions(;proctypes=[cuproc]) |
| 55 | + opts = Dagger.Sch.ThunkOptions(;proclist=[cuproc]) |
56 | 56 | c_pre = delayed(myfunc; options=opts)(b) |
57 | 57 | c = delayed(sum; options=opts)(b) |
58 | 58 |
|
59 | | - opts = Dagger.Sch.ThunkOptions(;proctypes=[Dagger.ThreadProc]) |
| 59 | + opts = Dagger.Sch.ThunkOptions(;proclist=[Dagger.ThreadProc]) |
60 | 60 | d = delayed(identity; options=opts)(c) |
61 | 61 | @test collect(d) == 20 |
62 | 62 |
|
63 | 63 | @testset "KernelAbstractions" begin |
64 | 64 | cuproc = DaggerGPU.processor(:CUDA) |
65 | | - opts = Dagger.Sch.ThunkOptions(;proctypes=[cuproc]) |
| 65 | + opts = Dagger.Sch.ThunkOptions(;proclist=[cuproc]) |
66 | 66 | A = rand(Float32, 8) |
67 | 67 | _A = collect(delayed(fill_thunk)(A, 2.3); options=opts) |
68 | 68 | @test all(_A .== 2.3) |
|
76 | 76 | else |
77 | 77 | rocproc = DaggerGPU.processor(:ROC) |
78 | 78 | b = generate_thunks() |
79 | | - opts = Dagger.Sch.ThunkOptions(;proctypes=[rocproc]) |
| 79 | + opts = Dagger.Sch.ThunkOptions(;proclist=[rocproc]) |
80 | 80 | c_pre = delayed(myfunc; options=opts)(b) |
81 | 81 | c = delayed(sum; options=opts)(b) |
82 | 82 |
|
83 | | - opts = Dagger.Sch.ThunkOptions(;proctypes=[Dagger.ThreadProc]) |
| 83 | + opts = Dagger.Sch.ThunkOptions(;proclist=[Dagger.ThreadProc]) |
84 | 84 | d = delayed(identity; options=opts)(c) |
85 | 85 | @test collect(d) == 20 |
86 | 86 |
|
87 | 87 | @test_skip "KernelAbstractions" |
88 | 88 | #= FIXME |
89 | 89 | @testset "KernelAbstractions" begin |
90 | 90 | rocproc = DaggerGPU.processor(:ROC) |
91 | | - opts = Dagger.Sch.ThunkOptions(;proctypes=[rocproc]) |
| 91 | + opts = Dagger.Sch.ThunkOptions(;proclist=[rocproc]) |
92 | 92 | A = rand(Float32, 8) |
93 | 93 | _A = collect(delayed(fill_thunk)(A, 2.3); options=opts) |
94 | 94 | @test all(_A .== 2.3) |
|
0 commit comments