Skip to content
Snippets Groups Projects
Commit 88dc361b authored by Marco Ratto's avatar Marco Ratto
Browse files

unix info added

parent 5763721a
Branches
Tags
No related merge requests found
......@@ -31,8 +31,16 @@ function [nCPU]= GiveCPUnumber (ComputerInformations)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
nCPU=-1;
nCPU='';
Enviroment=-1;
% Determine a specific operating system or software version when necessary
% for different command (sintax, name, ...).
Enviroment=isunix || (~matlab_ver_less_than('7.4') && ismac);
switch Enviroment
case 0 %WINDOWS OPERATING SYSTEM
OffSet=27;
SringPosition=strfind(ComputerInformations, 'Processors:');
......@@ -54,3 +62,10 @@ end
nCPU=str2num(nCPU);
return
case 1 %LIKE UNIX OPERATING SYSTEM
% Da generalizzare a un numero di CPu maggiore di 9!!!
nCPU=str2num(ComputerInformations(length(ComputerInformations)-1))+1;
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment