Skip to content

Commit ddb59b1

Browse files
committed
Use optimize_gemm! from oneAPI.jl
1 parent f6de8b3 commit ddb59b1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ KrylovPreconditionersCUDAExt = "CUDA"
2222
KrylovPreconditionersOneAPIExt = "oneAPI"
2323

2424
[compat]
25-
AMDGPU = "2"
25+
AMDGPU = "2.0.1"
2626
Adapt = "4"
2727
CUDA = "5.7.3"
2828
Graphs = "1.13.0"
@@ -34,7 +34,7 @@ Random = "1.10"
3434
SparseArrays = "1.10"
3535
Test = "1.10"
3636
julia = "1.10"
37-
oneAPI = "2.0.1"
37+
oneAPI = "2.1.0"
3838

3939
[extras]
4040
Krylov = "ba0b0d4f-ebba-5204-a429-3ac8c609bfb7"

ext/oneAPI/operators.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ for (SparseMatrixType, BlasType) in ((:(oneSparseMatrixCSR{T}), :BlasFloat),)
1616
m,n = size(A)
1717
if nrhs == 1
1818
oneMKL.sparse_optimize_gemv!(transa, A)
19+
else
20+
oneMKL.sparse_optimize_gemm!(trans, 'N', nrhs, A)
1921
end
20-
# sparse_optimize_gemm! is only available with oneAPI > v2024.1.0
2122
return INTEL_KrylovOperator{T}(T, m, n, nrhs, transa, A)
2223
end
2324

0 commit comments

Comments
 (0)