Adjust conditional compilation on CUDA version

repack-nvid
sfilippone 1 year ago
parent 62db7c0449
commit 1bc2a884e2

@ -313,7 +313,7 @@ int T_spsvCSRGDevice(T_Cmat *Matrix, TYPE alpha, void *deviceX,
#endif #endif
} }
#if CUDA_VERSION >= 11030
T_CSRGCreateSpMVDescr(T_CSRGDeviceMat *cMat) T_CSRGCreateSpMVDescr(T_CSRGDeviceMat *cMat)
{ {
int64_t tr,tc,tz; int64_t tr,tc,tz;
@ -330,7 +330,7 @@ T_CSRGCreateSpMVDescr(T_CSRGDeviceMat *cMat)
CUSPARSE_INDEX_BASE_ONE, CUSPARSE_INDEX_BASE_ONE,
CUSPARSE_BASE_TYPE) ); CUSPARSE_BASE_TYPE) );
} }
#endif
int T_CSRGDeviceAlloc(T_Cmat *Matrix,int nr, int nc, int nz) int T_CSRGDeviceAlloc(T_Cmat *Matrix,int nr, int nc, int nz)
{ {
T_CSRGDeviceMat *cMat; T_CSRGDeviceMat *cMat;

Loading…
Cancel
Save