finish hinge.cu

This commit is contained in:
amdsc21 2023-03-10 06:04:59 +01:00
parent 4e3c699814
commit ad710e4888
3 changed files with 8 additions and 4 deletions

View File

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

View File

@ -16,9 +16,9 @@
namespace xgboost {
namespace obj {
#if defined(XGBOOST_USE_CUDA)
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
DMLC_REGISTRY_FILE_TAG(hinge_obj_gpu);
#endif // defined(XGBOOST_USE_CUDA)
#endif // defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
class HingeObj : public ObjFunction {
public:

View File

@ -0,0 +1,4 @@
#if defined(XGBOST_USE_HIP)
#incude "hinge.cu"
#endif