Skip to content

Commit 74b01e4

Browse files
committed
update version check
Signed-off-by: Steven Hahn <hahnse@ornl.gov>
1 parent e3dbe9b commit 74b01e4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/cusolver/dense_generic.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,9 @@ end
506506

507507
# XsyevBatched
508508
function XsyevBatched!(jobz::Char, uplo::Char, A::StridedCuArray{T, 3}) where {T <: BlasFloat}
509-
CUSOLVER.version() < v"11.7.1" && throw(ErrorException("This operation is not supported by the current CUDA version."))
509+
minimum_version = v"11.7.1"
510+
CUSOLVER.version() < minimum_version && throw(ErrorException("This operation requires cuSOLVER
511+
$(minimum_version) or later. Current cuSOLVER version: $(CUSOLVER.version())."))
510512
chkuplo(uplo)
511513
n = checksquare(A)
512514
batch_size = size(A, 3)
@@ -547,7 +549,9 @@ function XsyevBatched!(jobz::Char, uplo::Char, A::StridedCuArray{T, 3}) where {T
547549
end
548550

549551
function XsyevBatched!(jobz::Char, uplo::Char, A::StridedCuMatrix{T}) where {T <: BlasFloat}
550-
CUSOLVER.version() < v"11.7.1" && throw(ErrorException("This operation is not supported by the current CUDA version."))
552+
minimum_version = v"11.7.1"
553+
CUSOLVER.version() < minimum_version && throw(ErrorException("This operation requires cuSOLVER
554+
$(minimum_version) or later. Current cuSOLVER version: $(CUSOLVER.version())."))
551555
chkuplo(uplo)
552556
n, num_matrices = size(A)
553557
batch_size = num_matrices ÷ n

0 commit comments

Comments
 (0)