Skip to content

Commit 5a034e8

Browse files
author
Dmitry Razdoburdin
committed
precommit
1 parent df801f1 commit 5a034e8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/common/linalg_op.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@ void VecScaDiv(Context const* ctx, linalg::VectorView<float> x, double div) {
271271
template <auto _tag = detail::SysTag()>
272272
void LogE(Context const* ctx, linalg::VectorView<float> x, float rt_eps = 0.0f) {
273273
CHECK_EQ(x.Device().ordinal, ctx->Device().ordinal);
274-
#if defined(SYCL_LANGUAGE_VERSION)
275-
TransformKernel(ctx, x, [=] XGBOOST_DEVICE(float v) { return ::sycl::log(v + rt_eps); });
276-
#else
277-
TransformKernel(ctx, x, [=] XGBOOST_DEVICE(float v) { return log(v + rt_eps); });
278-
#endif
274+
#if defined(SYCL_LANGUAGE_VERSION)
275+
TransformKernel(ctx, x, [=] XGBOOST_DEVICE(float v) { return ::sycl::log(v + rt_eps); });
276+
#else
277+
TransformKernel(ctx, x, [=] XGBOOST_DEVICE(float v) { return log(v + rt_eps); });
278+
#endif
279279
}
280280

281281
template <typename T, std::enable_if_t<std::is_floating_point_v<T>>* = nullptr>

0 commit comments

Comments
 (0)