Skip to content

Commit

Permalink
Fix build of GPU debugging code (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcob-gr authored and guolinke committed Apr 30, 2019
1 parent a295f6b commit 57ed879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treelearner/gpu_tree_learner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ void GPUTreeLearner::AllocateGPUMemory() {
queue_.enqueue_write_buffer(device_features_->get_buffer(),
i * num_data_ * sizeof(Feature4), num_data_ * sizeof(Feature4), host4);
#if GPU_DEBUG >= 1
printf("first example of feature-group tuple is: %d %d %d %d\n", host4[0].s0, host4[0].s1, host4[0].s2, host4[0].s3);
printf("first example of feature-group tuple is: %d %d %d %d\n", host4[0].s[0], host4[0].s[1], host4[0].s[2], host4[0].s[3]);
printf("Feature-groups copied to device with multipliers ");
for (int l = 0; l < dword_features_; ++l) {
printf("%d ", dev_bin_mult[l]);
Expand Down

0 comments on commit 57ed879

Please sign in to comment.