From a768f4c904eeb6ab4b830b5db38f2686a5e05025 Mon Sep 17 00:00:00 2001 From: Ulrhol Date: Sun, 15 Nov 2020 23:35:01 +0100 Subject: [PATCH] Fixed #9125, make check agains the correct variable (#9127) Signed-off-by: Ulrik Holmen Co-authored-by: Ulrik Holmen --- libnd4j/include/legacy/impl/Environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }