From b71c1b50deee2ea52e5edd463903cb2c973611c0 Mon Sep 17 00:00:00 2001 From: amdsc21 <96135754+amdsc21@users.noreply.github.com> Date: Sun, 12 Mar 2023 23:02:28 +0100 Subject: [PATCH] fix macro, no ! --- src/objective/aft_obj.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objective/aft_obj.cu b/src/objective/aft_obj.cu index 9c34b827a..795f75bcc 100644 --- a/src/objective/aft_obj.cu +++ b/src/objective/aft_obj.cu @@ -28,9 +28,9 @@ using AFTLoss = xgboost::common::AFTLoss; namespace xgboost { namespace obj { -#if defined(XGBOOST_USE_CUDA) || !defined(XGBOOST_USE_HIP) +#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP) DMLC_REGISTRY_FILE_TAG(aft_obj_gpu); -#endif // defined(XGBOOST_USE_CUDA) || !defined(XGBOOST_USE_HIP) +#endif // defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP) class AFTObj : public ObjFunction { public: