add HIP flags, c_api

This commit is contained in:
amdsc21 2023-03-08 01:34:37 +01:00
parent f5f800c80d
commit 1e1c7fd8d5

View File

@ -173,7 +173,7 @@ inline float GetMissing(Json const &config) {
// Safe guard some global variables from being changed by XGBoost.
class XGBoostAPIGuard {
#if defined(XGBOOST_USE_CUDA)
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
int32_t device_id_ {0};
void SetGPUAttribute();