add HIP flags, c_api
This commit is contained in:
@@ -173,7 +173,7 @@ inline float GetMissing(Json const &config) {
|
|||||||
|
|
||||||
// Safe guard some global variables from being changed by XGBoost.
|
// Safe guard some global variables from being changed by XGBoost.
|
||||||
class XGBoostAPIGuard {
|
class XGBoostAPIGuard {
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
int32_t device_id_ {0};
|
int32_t device_id_ {0};
|
||||||
|
|
||||||
void SetGPUAttribute();
|
void SetGPUAttribute();
|
||||||
|
|||||||
Reference in New Issue
Block a user