mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-16 19:02:09 +00:00
Fix compile warnings for printf and missing return()
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user