From b3e39712e7e52db7acbbd11aef1a10e827480f54 Mon Sep 17 00:00:00 2001 From: Waddah Moghram <16141123+waddahmoghram@users.noreply.github.com> Date: Sun, 10 May 2020 19:24:30 -0500 Subject: [PATCH] Update trackStackFlowWithHardCandidate.m --- software/trackStackFlowWithHardCandidate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/trackStackFlowWithHardCandidate.m b/software/trackStackFlowWithHardCandidate.m index 2d2bd42..32b42dc 100644 --- a/software/trackStackFlowWithHardCandidate.m +++ b/software/trackStackFlowWithHardCandidate.m @@ -187,7 +187,7 @@ poolobj = gcp('nocreate'); % If no pool, do not create new one. if isempty(poolobj) - poolsize = feature('numCores'); + poolsize = str2double(getenv('NUMBER_OF_PROCESSORS')) - 1; % Modified by Waddah Moghram on 12/10/2018 and is better to get all cores when hyperthreading is enabled else poolsize = poolobj.NumWorkers; end