Unverified Commit 703d4b93 authored by xiang song(charlie.song)'s avatar xiang song(charlie.song) Committed by GitHub
Browse files

Fix cu11 compile (#2879)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-1-191.ec2.internal>
Co-authored-by: default avatarQuan (Andy) Gan <coin2028@hotmail.com>
parent a38bf346
...@@ -19,7 +19,7 @@ struct CSRGEMM { ...@@ -19,7 +19,7 @@ struct CSRGEMM {
template <typename... Args> template <typename... Args>
static inline cusparseStatus_t bufferSizeExt(Args... args) { static inline cusparseStatus_t bufferSizeExt(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached."; BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0; return static_cast<cusparseStatus_t>(0);
} }
template <typename... Args> template <typename... Args>
...@@ -30,7 +30,7 @@ struct CSRGEMM { ...@@ -30,7 +30,7 @@ struct CSRGEMM {
template <typename... Args> template <typename... Args>
static inline cusparseStatus_t compute(Args... args) { static inline cusparseStatus_t compute(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached."; BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0; return static_cast<cusparseStatus_t>(0);
} }
}; };
...@@ -76,7 +76,7 @@ struct CSRGEAM { ...@@ -76,7 +76,7 @@ struct CSRGEAM {
template <typename... Args> template <typename... Args>
static inline cusparseStatus_t bufferSizeExt(Args... args) { static inline cusparseStatus_t bufferSizeExt(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached."; BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0; return static_cast<cusparseStatus_t>(0);
} }
template <typename... Args> template <typename... Args>
...@@ -87,7 +87,7 @@ struct CSRGEAM { ...@@ -87,7 +87,7 @@ struct CSRGEAM {
template <typename... Args> template <typename... Args>
static inline cusparseStatus_t compute(Args... args) { static inline cusparseStatus_t compute(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached."; BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0; return static_cast<cusparseStatus_t>(0);
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment