Switch back to the GPUIDX macro (#9438)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace xgboost {
|
||||
TEST(Plugin, ExampleObjective) {
|
||||
xgboost::Context ctx = MakeCUDACtx(GetGPUId());
|
||||
xgboost::Context ctx = MakeCUDACtx(GPUIDX);
|
||||
auto* obj = xgboost::ObjFunction::Create("mylogistic", &ctx);
|
||||
ASSERT_EQ(obj->DefaultEvalMetric(), std::string{"logloss"});
|
||||
delete obj;
|
||||
|
||||
Reference in New Issue
Block a user