diff --git a/Project.toml b/Project.toml index 801c476..7decc87 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CUDSS" uuid = "45b445bb-4962-46a0-9369-b4df9d0f772e" authors = ["Alexis Montoison "] -version = "0.1.4" +version = "0.1.5" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" diff --git a/src/interfaces.jl b/src/interfaces.jl index 36b4e6a..9cebb55 100644 --- a/src/interfaces.jl +++ b/src/interfaces.jl @@ -168,7 +168,7 @@ function cudss_get(data::CudssData, parameter::String) type = CUDSS_TYPES[parameter] val = Ref{type}() nbytes = sizeof(val) - nbytes_written = Ref{Cint}() + nbytes_written = Ref{Csize_t}() cudssDataGet(handle(), data, parameter, val, nbytes, nbytes_written) return val[] end @@ -178,7 +178,7 @@ function cudss_get(config::CudssConfig, parameter::String) type = CUDSS_TYPES[parameter] val = Ref{type}() nbytes = sizeof(val) - nbytes_written = Ref{Cint}() + nbytes_written = Ref{Csize_t}() cudssConfigGet(config, parameter, val, nbytes, nbytes_written) return val[] end diff --git a/src/libcudss.jl b/src/libcudss.jl index 194c992..fcc0dec 100644 --- a/src/libcudss.jl +++ b/src/libcudss.jl @@ -114,28 +114,28 @@ end @checked function cudssConfigSet(config, param, value, sizeInBytes) initialize_context() @ccall libcudss.cudssConfigSet(config::cudssConfig_t, param::cudssConfigParam_t, - value::Ptr{Cvoid}, sizeInBytes::Cint)::cudssStatus_t + value::Ptr{Cvoid}, sizeInBytes::Csize_t)::cudssStatus_t end @checked function cudssConfigGet(config, param, value, sizeInBytes, sizeWritten) initialize_context() @ccall libcudss.cudssConfigGet(config::cudssConfig_t, param::cudssConfigParam_t, - value::Ptr{Cvoid}, sizeInBytes::Cint, - sizeWritten::Ptr{Cint})::cudssStatus_t + value::Ptr{Cvoid}, sizeInBytes::Csize_t, + sizeWritten::Ptr{Csize_t})::cudssStatus_t end @checked function cudssDataSet(handle, data, param, value, sizeInBytes) initialize_context() @ccall libcudss.cudssDataSet(handle::cudssHandle_t, data::cudssData_t, param::cudssDataParam_t, value::PtrOrCuPtr{Cvoid}, - sizeInBytes::Cint)::cudssStatus_t + sizeInBytes::Csize_t)::cudssStatus_t end @checked function cudssDataGet(handle, data, param, value, sizeInBytes, sizeWritten) initialize_context() @ccall libcudss.cudssDataGet(handle::cudssHandle_t, data::cudssData_t, param::cudssDataParam_t, value::PtrOrCuPtr{Cvoid}, - sizeInBytes::Cint, sizeWritten::Ptr{Cint})::cudssStatus_t + sizeInBytes::Csize_t, sizeWritten::Ptr{Csize_t})::cudssStatus_t end @checked function cudssExecute(handle, phase, solverConfig, solverData, inputMatrix,