Skip to content

Commit 5452227

Browse files
Dmitry Razdoburdinrazdoburdin
authored andcommitted
fix syntax error; remove debug print
1 parent 46b007a commit 5452227

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/context.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ DeviceOrd CUDAOrdinal(DeviceOrd device, bool) {
130130
std::string s_device = input;
131131
if (!is_sycl) {
132132
s_device = std::regex_replace(s_device, std::regex{"gpu"}, DeviceSym::CUDA());
133+
}
133134

134135
auto split_it = std::find(s_device.cbegin(), s_device.cend(), ':');
135136
// For these cases we need to move iterator to the end, not to look for a ordinal.

src/metric/elementwise_metric.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ struct EvalEWiseBase : public MetricNoCache {
349349
if (info.labels.Size() != 0) {
350350
CHECK_NE(info.labels.Shape(1), 0);
351351
}
352-
LOG(INFO) << "EvalEWiseBase::Eval 0";
353352
auto labels = info.labels.View(ctx_->gpu_id);
354353
info.weights_.SetDevice(ctx_->gpu_id);
355354
common::OptionalWeights weights(ctx_->IsCUDA() ? info.weights_.ConstDeviceSpan()

0 commit comments

Comments
 (0)