Skip to content

Commit

Permalink
Fix cu11 compile (dmlc#2879)
Browse files Browse the repository at this point in the history
Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Quan (Andy) Gan <[email protected]>
  • Loading branch information
3 people authored Apr 28, 2021
1 parent a38bf34 commit 703d4b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/array/cuda/cusparse_dispatcher.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct CSRGEMM {
template <typename... Args>
static inline cusparseStatus_t bufferSizeExt(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0;
return static_cast<cusparseStatus_t>(0);
}

template <typename... Args>
Expand All @@ -30,7 +30,7 @@ struct CSRGEMM {
template <typename... Args>
static inline cusparseStatus_t compute(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0;
return static_cast<cusparseStatus_t>(0);
}
};

Expand Down Expand Up @@ -76,7 +76,7 @@ struct CSRGEAM {
template <typename... Args>
static inline cusparseStatus_t bufferSizeExt(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0;
return static_cast<cusparseStatus_t>(0);
}

template <typename... Args>
Expand All @@ -87,7 +87,7 @@ struct CSRGEAM {
template <typename... Args>
static inline cusparseStatus_t compute(Args... args) {
BUG_IF_FAIL(false) << "This piece of code should not be reached.";
return 0;
return static_cast<cusparseStatus_t>(0);
}
};

Expand Down

0 comments on commit 703d4b9

Please sign in to comment.