Define the new device parameter. (#9362)
This commit is contained in:
@@ -70,9 +70,9 @@ class TestPredictionCache : public ::testing::Test {
|
||||
Context ctx;
|
||||
ctx.InitAllowUnknown(Args{{"nthread", "8"}});
|
||||
if (updater_name == "grow_gpu_hist") {
|
||||
ctx.gpu_id = 0;
|
||||
ctx = ctx.MakeCUDA(0);
|
||||
} else {
|
||||
ctx.gpu_id = Context::kCpuId;
|
||||
ctx = ctx.MakeCPU();
|
||||
}
|
||||
|
||||
ObjInfo task{ObjInfo::kRegression};
|
||||
|
||||
Reference in New Issue
Block a user