From bbec847fb4a6d95c58f541d746a48c448df0261d Mon Sep 17 00:00:00 2001 From: Michel Schanen Date: Fri, 1 Dec 2023 12:31:29 -0500 Subject: [PATCH] Fix --- ext/AMDGPU/ilu0.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/AMDGPU/ilu0.jl b/ext/AMDGPU/ilu0.jl index b62da11..5ae2c67 100644 --- a/ext/AMDGPU/ilu0.jl +++ b/ext/AMDGPU/ilu0.jl @@ -17,7 +17,7 @@ for (bname, aname, sname, T) in ((:rocsparse_scsrilu0_buffer_size, :rocsparse_sc n = checksquare(P) desc = rocSPARSE.ROCMatrixDescriptor('G', 'L', 'N', 'O') info = MatInfo() - buffer_size = Ref{Cint}() + buffer_size = Ref{Csize_t}() rocSPARSE.$bname(rocSPARSE.handle(), n, nnz(P), desc, P.nzVal, P.rowPtr, P.colVal, info, buffer_size) buffer = ROCVector{UInt8}(undef, buffer_size[]) rocSPARSE.$aname(rocSPARSE.handle(), n, nnz(P), desc, P.nzVal, P.rowPtr, P.colVal, info, rocSPARSE.rocsparse_analysis_policy_force, rocSPARSE.rocsparse_solve_policy_auto, buffer) @@ -39,7 +39,7 @@ for (bname, aname, sname, T) in ((:rocsparse_scsrilu0_buffer_size, :rocsparse_sc n = checksquare(P) desc = rocSPARSE.ROCMatrixDescriptor('G', 'L', 'N', 'O') info = MatInfo() - buffer_size = Ref{Cint}() + buffer_size = Ref{Csize_t}() rocSPARSE.$bname(rocSPARSE.handle(), n, nnz(P), desc, P.nzVal, P.colPtr, P.rowVal, info, buffer_size) buffer = ROCVector{UInt8}(undef, buffer_size[]) rocSPARSE.$aname(rocSPARSE.handle(), n, nnz(P), desc, P.nzVal, P.colPtr, P.rowVal, info, rocSPARSE.rocsparse_analysis_policy_force, rocSPARSE.rocsparse_solve_policy_auto, buffer)