Skip to content

Commit c78f557

Browse files
committed
AMDGPU hates complex rand
1 parent 49dd07a commit c78f557

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/testsuite/TestSuite.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ isrightcomplete(V::AnyROCMatrix, N::AnyROCMatrix) = isrightcomplete(collect(V),
7878

7979
instantiate_unitary(T, A, sz) = qr_compact(randn!(similar(A, eltype(T), sz, sz)))[1]
8080
# AMDGPU can't generate ComplexF32 random numbers
81-
function instantiate_unitary(T, A::ROCMatrix{ComplexF32}, sz)
81+
function instantiate_unitary(T, A::ROCMatrix{<:Complex}, sz)
8282
sqA = randn!(similar(A, real(eltype(T)), sz, sz)) .+ im .* randn!(similar(A, real(eltype(T)), sz, sz))
8383
return qr_compact(sqA)[1]
8484
end

0 commit comments

Comments
 (0)