Fix compile warnings for printf and missing return()

This commit is contained in:
sfilippone
2025-02-09 16:21:50 +01:00
parent 6772315d4d
commit e2b00032b6
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -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