multithreading_luke

PURPOSE ^

LUKE - Set multithreading for LUKE automatically is possible (intrinsic multiprocessing)

SYNOPSIS ^

function [threadnumber] = multithreading_luke(dkepath)

DESCRIPTION ^

LUKE - Set multithreading for LUKE automatically is possible (intrinsic multiprocessing)

Set multithreading for LUKE automatically is possible (intrinsic multiprocessing)

INPUT:

   - dkepath: hardware and sofware configuration + paths (structure)

OUTPUT:

   - threadnumber: number of threads activated.

 by Yves Peysson (CEA/IRFM, yves.peysson@cea.fr) and Joan Decker (CEA/IRFM, joan.decker@cea.fr)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [threadnumber] = multithreading_luke(dkepath)
0002 %LUKE - Set multithreading for LUKE automatically is possible (intrinsic multiprocessing)
0003 %
0004 %Set multithreading for LUKE automatically is possible (intrinsic multiprocessing)
0005 %
0006 %INPUT:
0007 %
0008 %   - dkepath: hardware and sofware configuration + paths (structure)
0009 %
0010 %OUTPUT:
0011 %
0012 %   - threadnumber: number of threads activated.
0013 %
0014 % by Yves Peysson (CEA/IRFM, yves.peysson@cea.fr) and Joan Decker (CEA/IRFM, joan.decker@cea.fr)
0015 %
0016 if ~isfield(dkepath,'maxcompthreads'),
0017     mode = 'automatic';
0018 else
0019     mode = dkepath.maxcompthreads;
0020 end
0021 %
0022 if ischar(mode),
0023     if ~strcmp(mode,'automatic'),
0024         mode = str2num(mode);
0025     end
0026 end
0027 %
0028 maxNumCompThreads(mode);
0029 threadnumber = maxNumCompThreads(mode);
0030 
0031 
0032

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