nproc_macpro_YVES

PURPOSE ^

SYNOPSIS ^

function [nproc] = nproc_macpro_YVES(display_mode,param,dkepath)

DESCRIPTION ^

 Calculate the optimal number of processors for the macpro Core i7 of Yves Peysson

 INPUTS: 

  - display_mode: display some results [1,1]
  - param: Structure for controling program. 
  - dkepath: Structure of the paths 

 OUTPUTS:

   - nproc: number of processor [1,1]

By Joan Decker (CEA-DRFC, joan.decker@cea.fr) and Yves Peysson (CEA-DRFC, yves.peysson@cea.fr)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [nproc] = nproc_macpro_YVES(display_mode,param,dkepath)
0002 %
0003 % Calculate the optimal number of processors for the macpro Core i7 of Yves Peysson
0004 %
0005 % INPUTS:
0006 %
0007 %  - display_mode: display some results [1,1]
0008 %  - param: Structure for controling program.
0009 %  - dkepath: Structure of the paths
0010 %
0011 % OUTPUTS:
0012 %
0013 %   - nproc: number of processor [1,1]
0014 %
0015 %By Joan Decker (CEA-DRFC, joan.decker@cea.fr) and Yves Peysson (CEA-DRFC, yves.peysson@cea.fr)
0016 %
0017 if param.nproc > 12, 
0018     nproc = 12;
0019     info_dke_yp(2,'The number of processors has been enforced to 12 !');
0020 else
0021     nproc = param.nproc;%
0022 end   
0023 %
0024 fid = fopen('.machines','w');
0025 fclose(fid);

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.