Ignore:
Timestamp:
03/07/18 16:10:33 (6 years ago)
Author:
aclsce
Message:
  • Added the use of NOD parameter in config.card. This functionality is only available on Curie and for XIOS component (in order to assign XIOS servers on different nodes).

Example :
IOS= (xios_server.exe, xios.x, 4MPI, 2NOD)
means 4 XIOS servers use 2 computing nodes (i.e 2 XIOS servers per node).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1421 r1426  
    705705        exit 
    706706      fi 
     707      if [ ${comp}_PROC_NOD -gt 1 ] ; then 
     708            if ( [ ${comp}_PROC_MPI -gt 1 ] && [ ${comp}_PROC_OMP -gt 1 ] ) ; then  
     709              IGCM_debug_Print 2 "Error using MPI/OMP/NOD parameters !!!" 
     710              IGCM_debug_Exit "It is not allowed to use MPI and OMP and NOD parameters for the same component" 
     711              IGCM_debug_Exit "Check your config.card. Exit now" 
     712              IGCM_debug_Verif_Exit 
     713            fi 
     714            if [ "${comp}" != "IOS" ] ; then 
     715              IGCM_debug_Print 2 "Error using NOD parameter !!!" 
     716              IGCM_debug_Exit "NOD parameter is only available for IOS component " 
     717              IGCM_debug_Exit "Check your config.card. Exit now" 
     718              IGCM_debug_Verif_Exit 
     719            fi 
     720      fi 
     721 
    707722      eval tempvarMPI=\${${comp}_PROC_MPI} 
    708723      eval tempvarNOD=\${${comp}_PROC_NOD} 
     
    716731 
    717732      # SUM UP NUMBER OF CORES 
    718       (( coreNumber = coreNumber + tempvarMPI * tempvarNOD * tempvarOMP )) 
    719  
     733      if [ ${comp}_PROC_NOD -gt 1 ] ; then  
     734          (( coreNumber = coreNumber + tempvarNOD * NB_CORE_PER_NODE )) 
     735      else 
     736          (( coreNumber = coreNumber + tempvarMPI * tempvarNOD * tempvarOMP )) 
     737      fi 
    720738      # SUM UP NUMBER OF MPI TASKS 
    721739      (( mpiTasks = mpiTasks + tempvarMPI * tempvarNOD )) 
Note: See TracChangeset for help on using the changeset viewer.