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
31bec2fb
Unverified
Commit
31bec2fb
authored
Nov 11, 2019
by
James Lamb
Committed by
GitHub
Nov 11, 2019
Browse files
addressed linting items about empty statements (#2545)
parent
a9427512
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
src/io/json11.cpp
src/io/json11.cpp
+1
-2
src/treelearner/gpu_tree_learner.h
src/treelearner/gpu_tree_learner.h
+6
-7
No files found.
src/io/json11.cpp
View file @
31bec2fb
...
@@ -427,8 +427,7 @@ struct JsonParser final {
...
@@ -427,8 +427,7 @@ struct JsonParser final {
comment_found
=
consume_comment
();
comment_found
=
consume_comment
();
if
(
failed
)
return
;
if
(
failed
)
return
;
consume_whitespace
();
consume_whitespace
();
}
}
while
(
comment_found
);
while
(
comment_found
);
}
}
}
}
...
...
src/treelearner/gpu_tree_learner.h
View file @
31bec2fb
...
@@ -173,17 +173,17 @@ class GPUTreeLearner: public SerialTreeLearner {
...
@@ -173,17 +173,17 @@ class GPUTreeLearner: public SerialTreeLearner {
/*! \brief GPU command queue object */
/*! \brief GPU command queue object */
boost
::
compute
::
command_queue
queue_
;
boost
::
compute
::
command_queue
queue_
;
/*! \brief GPU kernel for 256 bins */
/*! \brief GPU kernel for 256 bins */
const
char
*
kernel256_src_
=
const
char
*
kernel256_src_
=
{
#include "ocl/histogram256.cl"
#include "ocl/histogram256.cl"
;
}
;
/*! \brief GPU kernel for 64 bins */
/*! \brief GPU kernel for 64 bins */
const
char
*
kernel64_src_
=
const
char
*
kernel64_src_
=
{
#include "ocl/histogram64.cl"
#include "ocl/histogram64.cl"
;
}
;
/*! \brief GPU kernel for 16 bins */
/*! \brief GPU kernel for 16 bins */
const
char
*
kernel16_src_
=
const
char
*
kernel16_src_
=
{
#include "ocl/histogram16.cl"
#include "ocl/histogram16.cl"
;
}
;
/*! \brief Currently used kernel source */
/*! \brief Currently used kernel source */
std
::
string
kernel_source_
;
std
::
string
kernel_source_
;
/*! \brief Currently used kernel name */
/*! \brief Currently used kernel name */
...
@@ -288,4 +288,3 @@ class GPUTreeLearner: public SerialTreeLearner {
...
@@ -288,4 +288,3 @@ class GPUTreeLearner: public SerialTreeLearner {
#endif // USE_GPU
#endif // USE_GPU
#endif // LightGBM_TREELEARNER_GPU_TREE_LEARNER_H_
#endif // LightGBM_TREELEARNER_GPU_TREE_LEARNER_H_
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