File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1059,3 +1059,24 @@ 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-> broadcast (x-> x^ 1.5 , a), rand (Float32, 1 )) # CUDA.jl#71
1068
+ @test testf (a-> broadcast (x-> 1.0 ^ x, a), rand (Int, 1 )) # CUDA.jl#76
1069
+ @test testf (a-> broadcast (x-> x^ 4 , a), rand (Float32, 1 )) # CUDA.jl#171
1070
+
1071
+ @test argmax (cu ([true false ; false true ])) == CartesianIndex (1 , 1 ) # CUDA.jl#659
1072
+
1073
+ # CUDA.jl#42
1074
+ @test testf ([Complex (1f0 ,2f0 )]) do a
1075
+ b = sincos .(a)
1076
+ s,c = first (collect (b))
1077
+ (real (s), imag (s), real (c), imag (c))
1078
+ end
1079
+
1080
+ end
1081
+
1082
+ # ###########################################################################################
You can’t perform that action at this time.
0 commit comments