add HIP flags, c_api
This commit is contained in:
parent
f5f800c80d
commit
1e1c7fd8d5
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user