compiler errors fix

This commit is contained in:
Hui Liu
2024-01-12 12:09:01 -08:00
parent 1e1e8be3a5
commit 9759e28e6a
10 changed files with 90 additions and 82 deletions

View File

@@ -6,7 +6,7 @@
#include "../common/common.h" // for AssertGPUSupport
namespace xgboost {
#if !defined(XGBOOST_USE_CUDA)
#if !defined(XGBOOST_USE_CUDA) && !defined(XGBOOST_USE_HIP)
void ArrayInterfaceHandler::SyncCudaStream(int64_t) { common::AssertGPUSupport(); }
bool ArrayInterfaceHandler::IsCudaPtr(void const *) { return false; }
#endif // !defined(XGBOOST_USE_CUDA)