Sycl implementation for objective functions (#9846)

---------

Co-authored-by: Dmitry Razdoburdin <>
This commit is contained in:
Dmitry Razdoburdin
2023-12-12 07:41:50 +01:00
committed by GitHub
parent ddab49a8be
commit 43897b8296
19 changed files with 1129 additions and 423 deletions

View File

@@ -0,0 +1,25 @@
/*!
* Copyright 2018-2023 XGBoost contributors
*/
#include <gtest/gtest.h>
#include <xgboost/context.h>
#include "../helpers.h"
#include "test_multiclass_obj.h"
namespace xgboost {
TEST(Objective, DeclareUnifiedTest(SoftmaxMultiClassObjGPair)) {
Context ctx = MakeCUDACtx(GPUIDX);
TestSoftmaxMultiClassObjGPair(&ctx);
}
TEST(Objective, DeclareUnifiedTest(SoftmaxMultiClassBasic)) {
auto ctx = MakeCUDACtx(GPUIDX);
TestSoftmaxMultiClassBasic(&ctx);
}
TEST(Objective, DeclareUnifiedTest(SoftprobMultiClassBasic)) {
Context ctx = MakeCUDACtx(GPUIDX);
TestSoftprobMultiClassBasic(&ctx);
}
} // namespace xgboost