diff --git a/cuda/cuda_util.c b/cuda/cuda_util.c index 17889a06..8ae2e663 100644 --- a/cuda/cuda_util.c +++ b/cuda/cuda_util.c @@ -56,7 +56,7 @@ int allocRemoteBuffer(void** buffer, size_t count) } else { - fprintf(stderr,"CUDA allocRemoteBuffer for %d bytes Error: %s \n", + fprintf(stderr,"CUDA allocRemoteBuffer for %ld bytes Error: %s \n", count, cudaGetErrorString(err)); if(err == cudaErrorMemoryAllocation) return SPGPU_OUTOFMEMORY; @@ -175,7 +175,7 @@ int writeRemoteBuffer(void* hostSrc, void* buffer, size_t count) if (err == cudaSuccess) return SPGPU_SUCCESS; else { - fprintf(stderr,"CUDA Error writeRemoteBuffer: %s %p %p %d\n", + fprintf(stderr,"CUDA Error writeRemoteBuffer: %s %p %p %ld\n", cudaGetErrorString(err),buffer, hostSrc, count); return SPGPU_UNSPECIFIED; } @@ -200,7 +200,7 @@ int readRemoteBuffer(void* hostDest, void* buffer, size_t count) if (err == cudaSuccess) return SPGPU_SUCCESS; else { - fprintf(stderr,"CUDA Error readRemoteBuffer: %s %p %p %d %d\n", + fprintf(stderr,"CUDA Error readRemoteBuffer: %s %p %p %ld %d\n", cudaGetErrorString(err),hostDest,buffer,count,err); return SPGPU_UNSPECIFIED; } diff --git a/cuda/fcusparse_fct.h b/cuda/fcusparse_fct.h index 848194aa..972a5e68 100644 --- a/cuda/fcusparse_fct.h +++ b/cuda/fcusparse_fct.h @@ -127,6 +127,7 @@ int T_spmvCSRGDevice(T_Cmat *Matrix, TYPE alpha, void *deviceX, CHECK_CUSPARSE(cusparseDestroyDnVec(vecY) ); CHECK_CUSPARSE(cusparseDestroySpMat(*(cMat->spmvDescr))); #endif + return(0); } int T_spsvCSRGDevice(T_Cmat *Matrix, TYPE alpha, void *deviceX, @@ -215,6 +216,7 @@ int T_spsvCSRGDevice(T_Cmat *Matrix, TYPE alpha, void *deviceX, CHECK_CUSPARSE(cusparseDestroyDnVec(vecY) ); CHECK_CUSPARSE(cusparseDestroySpMat(*(cMat->spmvDescr))); #endif + return(0); } #if CUDA_VERSION >= 11030