Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
57ed8794
Commit
57ed8794
authored
Apr 30, 2019
by
remcob-gr
Committed by
Guolin Ke
Apr 30, 2019
Browse files
Fix build of GPU debugging code (#2071)
parent
a295f6b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/treelearner/gpu_tree_learner.cpp
src/treelearner/gpu_tree_learner.cpp
+1
-1
No files found.
src/treelearner/gpu_tree_learner.cpp
View file @
57ed8794
...
@@ -436,7 +436,7 @@ void GPUTreeLearner::AllocateGPUMemory() {
...
@@ -436,7 +436,7 @@ void GPUTreeLearner::AllocateGPUMemory() {
queue_
.
enqueue_write_buffer
(
device_features_
->
get_buffer
(),
queue_
.
enqueue_write_buffer
(
device_features_
->
get_buffer
(),
i
*
num_data_
*
sizeof
(
Feature4
),
num_data_
*
sizeof
(
Feature4
),
host4
);
i
*
num_data_
*
sizeof
(
Feature4
),
num_data_
*
sizeof
(
Feature4
),
host4
);
#if GPU_DEBUG >= 1
#if GPU_DEBUG >= 1
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
(
"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 "
);
printf
(
"Feature-groups copied to device with multipliers "
);
for
(
int
l
=
0
;
l
<
dword_features_
;
++
l
)
{
for
(
int
l
=
0
;
l
<
dword_features_
;
++
l
)
{
printf
(
"%d "
,
dev_bin_mult
[
l
]);
printf
(
"%d "
,
dev_bin_mult
[
l
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment