finish hinge.cu
This commit is contained in:
parent
4e3c699814
commit
ad710e4888
@ -13,6 +13,6 @@ DMLC_REGISTRY_FILE_TAG(hinge_obj);
|
|||||||
} // namespace obj
|
} // namespace obj
|
||||||
} // namespace xgboost
|
} // namespace xgboost
|
||||||
|
|
||||||
#ifndef XGBOOST_USE_CUDA
|
#if !defined(XGBOOST_USE_CUDA) && !defined(XGBOOST_USE_HIP)
|
||||||
#include "hinge.cu"
|
#include "hinge.cu"
|
||||||
#endif // XGBOOST_USE_CUDA
|
#endif // XGBOOST_USE_CUDA && XGBOOST_USE_HIP
|
||||||
|
|||||||
@ -16,9 +16,9 @@
|
|||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
namespace obj {
|
namespace obj {
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
DMLC_REGISTRY_FILE_TAG(hinge_obj_gpu);
|
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 {
|
class HingeObj : public ObjFunction {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
#if defined(XGBOST_USE_HIP)
|
||||||
|
#incude "hinge.cu"
|
||||||
|
#endif
|
||||||
Loading…
x
Reference in New Issue
Block a user