File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1059,3 +1059,18 @@ end
1059
1059
end
1060
1060
1061
1061
# ###########################################################################################
1062
+
1063
+ @testset " contextual dispatch" begin
1064
+
1065
+ @test_throws ErrorException CUDA. saturate (1f0 ) # CUDA.jl#60
1066
+
1067
+ @test testf (a-> sincos .(a), [Complex (1f0 ,2f0 )]) # CUDA.jl#42
1068
+ @test testf (a-> broadcast (x-> x^ 1.5 , a), rand (Float32, 1 )) # CUDA.jl#71
1069
+ @test testf (a-> broadcast (x-> 1.0 ^ x, a), rand (Int, 1 )) # CUDA.jl#76
1070
+ @test testf (a-> broadcast (x-> x^ 4 , a), rand (Float32, 1 )) # CUDA.jl#171
1071
+
1072
+ @test argmax (cu ([true false ; false true ])) == CartesianIndex (1 , 1 ) # CUDA.jl#659
1073
+
1074
+ end
1075
+
1076
+ # ###########################################################################################
You can’t perform that action at this time.
0 commit comments