You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function LinearAlgebra.generic_trimatmul!(C::StridedCuMatrix{T}, uplocA, isunitcA, tfunA::Function, A::StridedCuMatrix{T}, triB::UpperOrLowerTriangular{T,<:AdjOrTransOrCuMatrix{T}}) where {T<:CublasFloat}
Copy file name to clipboardExpand all lines: test/libraries/cublas/level3/gemm.jl
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,30 @@ k = 13
18
18
@testset"level 3"begin
19
19
@testsetfor elty in [Float32, Float64, ComplexF32, ComplexF64]
20
20
21
-
@testset"mul! C = $f(A) * $g(B) * $Ts(a) + C * $Ts(b)"for f in (identity, transpose, adjoint), g in (identity, transpose, adjoint), Ts in (Int, elty)
21
+
@testset"mul! C = $f(A) * $g(B) * $Ts(a) + C * $Ts(b)"for f in (identity, transpose, adjoint), g in (identity, transpose, adjoint), Ts in (Int, elty)
22
22
C, A, B =rand(elty, 5, 5), rand(elty, 5, 5), rand(elty, 5, 5)
23
23
dC, dA, dB =CuArray(C), CuArray(A), CuArray(B)
24
24
mul!(dC, f(dA), g(dB), Ts(1), Ts(2))
25
25
mul!(C, f(A), g(B), Ts(1), Ts(2))
26
26
@testArray(dC) ≈ C
27
27
end
28
28
29
+
@testset"mul! C = $f(A) * $f($g(B)) * $Ts(a) + C * $Ts(b)"for f in (identity, transpose, adjoint), g in (identity, transpose, adjoint), Ts in (Int, elty)
30
+
C, A, B =rand(elty, 5, 5), rand(elty, 5, 5), rand(elty, 5, 5)
31
+
dC, dA, dB =CuArray(C), CuArray(A), CuArray(B)
32
+
mul!(dC, f(dA), f(g(dB)), Ts(1), Ts(2))
33
+
mul!(C, f(A), f(g(B)), Ts(1), Ts(2))
34
+
@testArray(dC) ≈ C
35
+
end
36
+
37
+
@testset"mul! C = $g($f(A)) * $g(B) * $Ts(a) + C * $Ts(b)"for f in (identity, transpose, adjoint), g in (identity, transpose, adjoint), Ts in (Int, elty)
38
+
C, A, B =rand(elty, 5, 5), rand(elty, 5, 5), rand(elty, 5, 5)
39
+
dC, dA, dB =CuArray(C), CuArray(A), CuArray(B)
40
+
mul!(dC, g(f(dA)), g(dB), Ts(1), Ts(2))
41
+
mul!(C, g(f(A)), g(B), Ts(1), Ts(2))
42
+
@testArray(dC) ≈ C
43
+
end
44
+
29
45
@testset"hermitian"begin
30
46
C, A, B =rand(elty, 5, 5), Hermitian(rand(elty, 5, 5)), rand(elty, 5, 5)
31
47
dC, dA, dB =CuArray(C), Hermitian(CuArray(A)), CuArray(B)
0 commit comments