From 885396bc4fd5300c58a4bbeaa4f120755980eefb Mon Sep 17 00:00:00 2001 From: Waddah Moghram <16141123+waddahmoghram@users.noreply.github.com> Date: Sun, 10 May 2020 19:23:34 -0500 Subject: [PATCH] Update trackStackFlow.m --- software/trackStackFlow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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