We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987f835 commit 3a2b75fCopy full SHA for 3a2b75f
test/gpu/arraypartition_gpu.jl
@@ -0,0 +1,16 @@
1
+using RecursiveArrayTools, CUDA, Test
2
+CUDA.allowscalar(false)
3
+
4
5
+# Test indexing with colon
6
+a = (CUDA.zeros(5), CUDA.zeros(5))
7
+pA = ArrayPartition(a)
8
+pA[:, :]
9
10
+# Indexing with boolean masks does not work yet
11
+mask = pA .> 0
12
+# pA[mask]
13
14
+# Test recursive filling is done using GPU kernels and not scalar indexing
15
+RecursiveArrayTools.recursivefill!(pA, true)
16
+@test all(pA .== true)
test/runtests.jl
@@ -54,5 +54,6 @@ end
54
if GROUP == "GPU"
55
activate_gpu_env()
56
@time @safetestset "VectorOfArray GPU" include("gpu/vectorofarray_gpu.jl")
57
+ @time @safetestset "ArrayPartition GPU" include("gpu/arraypartition_gpu.jl")
58
end
59
0 commit comments