!32754 fix cuda10 cusparse library compile issue

Merge pull request !32754 from chenweifeng/fix-cuda10-cusparse-library-link-issue
This commit is contained in:
i-robot 2022-04-09 07:44:35 +00:00 committed by Gitee
commit c6884369e0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 12 additions and 14 deletions

View File

@ -209,22 +209,20 @@ namespace gpu {
} \
}
#define CHECK_CUSPARSE_RET_WITH_ERROR(expression, message) \
do { \
cusparseStatus_t result = (expression); \
if (result != CUSPARSE_STATUS_SUCCESS) { \
MS_LOG(ERROR) << "cusparse Error: " << message << " | Error Code: " << result \
<< "| Error String: " << cusparseGetErrorString(result); \
} \
#define CHECK_CUSPARSE_RET_WITH_ERROR(expression, message) \
do { \
cusparseStatus_t result = (expression); \
if (result != CUSPARSE_STATUS_SUCCESS) { \
MS_LOG(ERROR) << "cusparse Error: " << message << " | Error Code: " << result; \
} \
} while (0)
#define CHECK_CUSPARSE_RET_WITH_EXCEPT(expression, message) \
do { \
cusparseStatus_t result = (expression); \
if (result != CUSPARSE_STATUS_SUCCESS) { \
MS_LOG(EXCEPTION) << "cusparse Error: " << message << " | Error Code: " << result \
<< "| Error String: " << cusparseGetErrorString(result); \
} \
#define CHECK_CUSPARSE_RET_WITH_EXCEPT(expression, message) \
do { \
cusparseStatus_t result = (expression); \
if (result != CUSPARSE_STATUS_SUCCESS) { \
MS_LOG(EXCEPTION) << "cusparse Error: " << message << " | Error Code: " << result; \
} \
} while (0)
#define VARIABLE_NOT_USED(var) \