Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/lq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for T in (BLASFloats..., GenericFloats...), n in (37, m, 63)
TestSuite.seed_rng!(123)
if T ∈ BLASFloats
if CUDA.functional()
CUDA_LQ_ALGS = LQViaTransposedQR.(CUSOLVER_HouseholderLQ(; positive = false), CUSOLVER_HouseholderLQ(; positive = true))
CUDA_LQ_ALGS = LQViaTransposedQR.((CUSOLVER_HouseholderQR(; positive = false), CUSOLVER_HouseholderQR(; positive = true)))
TestSuite.test_lq(CuMatrix{T}, (m, n); test_pivoted = false, test_blocksize = false)
TestSuite.test_lq_algs(CuMatrix{T}, (m, n), CUDA_LQ_ALGS)
if n == m
Expand All @@ -27,9 +27,9 @@ for T in (BLASFloats..., GenericFloats...), n in (37, m, 63)
end
end
if AMDGPU.functional()
ROC_LQ_ALGS = LQViaTransposedQR.(ROCSOLVER_HouseholderLQ(; positive = false), ROCSOLVER_HouseholderLQ(; positive = true))
ROC_LQ_ALGS = LQViaTransposedQR.((ROCSOLVER_HouseholderQR(; positive = false), ROCSOLVER_HouseholderQR(; positive = true)))
TestSuite.test_lq(ROCMatrix{T}, (m, n); test_pivoted = false, test_blocksize = false)
TestSuite.test_lq_algs(ROCMatrix{T}, (m, n), CUDA_LQ_ALGS)
TestSuite.test_lq_algs(ROCMatrix{T}, (m, n), ROC_LQ_ALGS)
if n == m
TestSuite.test_lq(Diagonal{T, ROCVector{T}}, m; test_pivoted = false, test_blocksize = false)
TestSuite.test_lq_algs(Diagonal{T, ROCVector{T}}, m, (DiagonalAlgorithm(),))
Expand Down
11 changes: 6 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using SafeTestsets

is_buildkite = get(ENV, "BUILDKITE", "false") == "true"
# don't run all tests on GPU, only the GPU
# specific ones
is_buildkite = get(ENV, "BUILDKITE", "false") == "true"
if !is_buildkite
@safetestset "Algorithms" begin
include("algorithms.jl")
Expand All @@ -13,10 +13,6 @@ if !is_buildkite
@safetestset "Truncate" begin
include("truncate.jl")
end
@safetestset "QR / LQ Decomposition" begin
include("qr.jl")
include("lq.jl")
end
@safetestset "Singular Value Decomposition" begin
include("svd.jl")
end
Expand Down Expand Up @@ -71,6 +67,11 @@ if !is_buildkite
end
end

@safetestset "QR / LQ Decomposition" begin
include("qr.jl")
include("lq.jl")
end

using CUDA
if CUDA.functional()
@safetestset "CUDA Projections" begin
Expand Down