diff --git a/src/data/array_interface.cu b/src/data/array_interface.cu index 492c24200..b0004c300 100644 --- a/src/data/array_interface.cu +++ b/src/data/array_interface.cu @@ -20,7 +20,10 @@ void ArrayInterfaceHandler::SyncCudaStream(std::int64_t stream) { * case where 0 might be given should either use None, 1, or 2 instead for * clarity. */ + /* ignored for HIP */ +#if !defined(XGBOOST_USE_HIP) LOG(FATAL) << "Invalid stream ID in array interface: " << stream; +#endif case 1: // default legacy stream break;