finish aft_obj.cu

This commit is contained in:
amdsc21 2023-03-10 06:39:03 +01:00
parent 9bbbeb3f03
commit c073417d0c
3 changed files with 7 additions and 3 deletions

View File

@ -16,6 +16,6 @@ DMLC_REGISTRY_FILE_TAG(aft_obj);
} // namespace obj
} // namespace xgboost
#ifndef XGBOOST_USE_CUDA
#if !defined(XGBOOST_USE_CUDA) && !defined(XGBOOST_USE_HIP)
#include "aft_obj.cu"
#endif // XGBOOST_USE_CUDA

View File

@ -28,9 +28,9 @@ using AFTLoss = xgboost::common::AFTLoss<Distribution>;
namespace xgboost {
namespace obj {
#if defined(XGBOOST_USE_CUDA)
#if defined(XGBOOST_USE_CUDA) || !defined(XGBOOST_USE_HIP)
DMLC_REGISTRY_FILE_TAG(aft_obj_gpu);
#endif // defined(XGBOOST_USE_CUDA)
#endif // defined(XGBOOST_USE_CUDA) || !defined(XGBOOST_USE_HIP)
class AFTObj : public ObjFunction {
public:

View File

@ -0,0 +1,4 @@
#if !defined(XGBOOST_USE_HIP)
#include "aft_obj.cu"
#endif