Add stub code
@@ -173,52 +173,66 @@ cusparseStatus_t cusparseDnnz(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseSnnz_compress(...) {
+cusparseStatus_t cusparseCreateIdentityPermutation(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseDnnz_compress(...) {
+cusparseStatus_t cusparseXcoosort_bufferSizeExt(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseScsr2csr_compress(...) {
+cusparseStatus_t cusparseXcoosortByRow(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseDcsr2csr_compress(...) {
+cusparseStatus_t cusparseXcsrsort_bufferSizeExt(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseCreateIdentityPermutation(...) {
+cusparseStatus_t cusparseXcsrsort(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseXcoosort_bufferSizeExt(...) {
+cusparseStatus_t cusparseXcscsort_bufferSizeExt(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseXcoosortByRow(...) {
+cusparseStatus_t cusparseXcscsort(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseXcsrsort_bufferSizeExt(...) {
+} // extern "C"
+
+#endif // CUPY_NO_CUDA
+
+
+///////////////////////////////////////////////////////////////////////////////
+// Definitions are for compatibility
+///////////////////////////////////////////////////////////////////////////////
+
+extern "C" {
+
+#if defined(CUPY_NO_CUDA) || (CUDA_VERSION < 8000)
+
+cusparseStatus_t cusparseSnnz_compress(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseXcsrsort(...) {
+cusparseStatus_t cusparseDnnz_compress(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseXcscsort_bufferSizeExt(...) {
+cusparseStatus_t cusparseScsr2csr_compress(...) {
return CUSPARSE_STATUS_SUCCESS;
}
-cusparseStatus_t cusparseXcscsort(...) {
+cusparseStatus_t cusparseDcsr2csr_compress(...) {
return CUSPARSE_STATUS_SUCCESS;
}
+#endif // #if defined(CUPY_NO_CUDA) || (CUDA_VERSION < 8000)
+
} // extern "C"
-#endif // CUPY_NO_CUDA
#endif // INCLUDE_GUARD_CUPY_CUSPARSE_H
