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