diff --git a/software/trackStackFlow.m b/software/trackStackFlow.m index 22480db..94b4932 100644 --- a/software/trackStackFlow.m +++ b/software/trackStackFlow.m @@ -192,7 +192,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