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
3e9a6140
Unverified
Commit
3e9a6140
authored
Feb 04, 2020
by
Guolin Ke
Committed by
GitHub
Feb 04, 2020
Browse files
no omp_set_nested (#2734)
* no omp_set_nested * Update openmp_wrapper.h
parent
4c3be168
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
include/LightGBM/utils/openmp_wrapper.h
include/LightGBM/utils/openmp_wrapper.h
+0
-1
src/application/application.cpp
src/application/application.cpp
+0
-1
No files found.
include/LightGBM/utils/openmp_wrapper.h
View file @
3e9a6140
...
@@ -62,7 +62,6 @@ catch(...) { omp_except_helper.CaptureException(); }
...
@@ -62,7 +62,6 @@ catch(...) { omp_except_helper.CaptureException(); }
simulate a single thread running.
simulate a single thread running.
All #pragma omp should be ignored by the compiler **/
All #pragma omp should be ignored by the compiler **/
inline
void
omp_set_num_threads
(
int
)
{}
inline
void
omp_set_num_threads
(
int
)
{}
inline
void
omp_set_nested
(
int
)
{}
inline
int
omp_get_num_threads
()
{
return
1
;}
inline
int
omp_get_num_threads
()
{
return
1
;}
inline
int
omp_get_thread_num
()
{
return
0
;}
inline
int
omp_get_thread_num
()
{
return
0
;}
#ifdef __cplusplus
#ifdef __cplusplus
...
...
src/application/application.cpp
View file @
3e9a6140
...
@@ -38,7 +38,6 @@ Application::Application(int argc, char** argv) {
...
@@ -38,7 +38,6 @@ Application::Application(int argc, char** argv) {
if
(
config_
.
data
.
size
()
==
0
&&
config_
.
task
!=
TaskType
::
kConvertModel
)
{
if
(
config_
.
data
.
size
()
==
0
&&
config_
.
task
!=
TaskType
::
kConvertModel
)
{
Log
::
Fatal
(
"No training/prediction data, application quit"
);
Log
::
Fatal
(
"No training/prediction data, application quit"
);
}
}
omp_set_nested
(
0
);
}
}
Application
::~
Application
()
{
Application
::~
Application
()
{
...
...
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