You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/19 09:11:48 UTC
[GitHub] szha closed pull request #8706: Invert environment check
szha closed pull request #8706: Invert environment check
URL: https://github.com/apache/incubator-mxnet/pull/8706
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/engine/openmp.cc b/src/engine/openmp.cc
index ad0c5740ec..bd7f7fdea7 100644
--- a/src/engine/openmp.cc
+++ b/src/engine/openmp.cc
@@ -30,7 +30,7 @@ namespace engine {
#endif
static inline bool is_env_set(const char *var) {
- return dmlc::GetEnv(var, INT_MIN) == INT_MIN;
+ return dmlc::GetEnv(var, INT_MIN) != INT_MIN;
}
OpenMP *OpenMP::Get() {
@@ -55,8 +55,6 @@ OpenMP::OpenMP()
omp_thread_max_ = omp_get_max_threads();
}
}
- omp_set_nested(dmlc::GetEnv("OMP_NESTED", false));
- omp_set_dynamic(dmlc::GetEnv("OMP_DYNAMIC", false));
#else
enabled_ = false;
omp_thread_max_ = 1;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services