Fixed #9125, make check agains the correct variable (#9127)

Signed-off-by: Ulrik Holmen <ulrik.holmen@global.ntt>

Co-authored-by: Ulrik Holmen <ulrik.holmen@global.ntt>
master
Ulrhol 2020-11-15 23:35:01 +01:00 committed by GitHub
parent a722bd5a5b
commit a768f4c904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}