diff --git a/libnd4j/include/legacy/impl/Environment.cpp b/libnd4j/include/legacy/impl/Environment.cpp index 38d7e82ed..0d5f913b7 100644 --- a/libnd4j/include/legacy/impl/Environment.cpp +++ b/libnd4j/include/legacy/impl/Environment.cpp @@ -111,7 +111,7 @@ namespace sd { * If this env var is defined - we'll disallow use of platform-specific helpers (mkldnn, cudnn, etc) */ const char* forbid_helpers = std::getenv("SD_FORBID_HELPERS"); - if (max_master_threads != nullptr) { + if (forbid_helpers != nullptr) { _allowHelpers = false; }