From 3b9c18dab1c0b3640844c51301e444526e2d2e2d Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Thu, 25 Apr 2024 14:50:49 -0400 Subject: [PATCH 1/3] Fix an error in libcudss.jl --- src/libcudss.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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, From 5e9037549c7926c9bb8f4ae6b58f671a4dee1d21 Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Thu, 25 Apr 2024 15:19:11 -0400 Subject: [PATCH 2/3] Update the type of nbytes_written in interfaces.jl --- src/interfaces.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From a265eb551ec1ffe8617e3abb45bde6a31aa4d3e4 Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Thu, 25 Apr 2024 15:20:12 -0400 Subject: [PATCH 3/3] Release 0.1.5 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"