Skip to content

Commit 14a3360

Browse files
author
Dmitry Razdoburdin
committed
fix init estimation on sycl device
1 parent bdc5a26 commit 14a3360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree/fit_stump.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void FitStump(Context const* ctx, MetaInfo const& info, linalg::Matrix<GradientP
7474
out->Reshape(n_targets);
7575

7676
gpair.SetDevice(ctx->Device());
77-
auto gpair_t = gpair.View(ctx->Device());
77+
auto gpair_t = gpair.View(ctx->Device().IsSycl() ? DeviceOrd::CPU() : ctx->Device());
7878
ctx->IsCUDA() ? cuda_impl::FitStump(ctx, info, gpair_t, out->View(ctx->Device()))
7979
: cpu_impl::FitStump(ctx, info, gpair_t, out->HostView());
8080
}

0 commit comments

Comments
 (0)