finish multiclass_obj.cu
This commit is contained in:
parent
41407850d5
commit
58a9fe07b6
@ -13,6 +13,6 @@ DMLC_REGISTRY_FILE_TAG(multiclass_obj);
|
||||
} // namespace obj
|
||||
} // namespace xgboost
|
||||
|
||||
#ifndef XGBOOST_USE_CUDA
|
||||
#if !defined(XGBOOST_USE_CUDA) && !defined(XGBOOST_USE_HIP)
|
||||
#include "multiclass_obj.cu"
|
||||
#endif // XGBOOST_USE_CUDA
|
||||
|
||||
@ -24,9 +24,9 @@
|
||||
namespace xgboost {
|
||||
namespace obj {
|
||||
|
||||
#if defined(XGBOOST_USE_CUDA)
|
||||
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||
DMLC_REGISTRY_FILE_TAG(multiclass_obj_gpu);
|
||||
#endif // defined(XGBOOST_USE_CUDA)
|
||||
#endif // defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||
|
||||
struct SoftmaxMultiClassParam : public XGBoostParameter<SoftmaxMultiClassParam> {
|
||||
int num_class;
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
|
||||
#if defined(XGBOOST_USE_HIP)
|
||||
#incldue "multiclass_obj.cu"
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user