Ignore:
Timestamp:
10/05/15 15:19:53 (9 years ago)
Author:
sdipsl
Message:
  • ins_job (the one from libIGCM) will edit Job headers according to config.card specs. see #96
  • need more testing
File:
1 edited

Legend:

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

    r1235 r1238  
    584584  coreNumber=0 
    585585  mpiTasks=0 
     586  openMPthreads=0 
    586587  NbExec=0 
    587588 
     
    679680      [ ${tempvarOMP} -ge 2 ] && OK_PARA_OMP=true 
    680681 
     682      # Number of OMP threads 
     683      [ ${openMPthreads} -lt ${tempvarOMP} ] && openMPthreads=${tempvarOMP} 
     684 
    681685      # SUM UP NUMBER OF CORES 
    682686      (( coreNumber = coreNumber + tempvarMPI * tempvarNOD * tempvarOMP )) 
     
    692696  # Define the execution type we are running in 
    693697  if [ ${OK_PARA_MPMD} ] ; then 
    694     # MPMD always implies MPI 
    695698    if [ ${OK_PARA_MPI} ] ; then 
     699      # MPMD always implies MPI 
    696700      executionType=1 
    697701    fi 
    698     # MPMD + MPI/OMP 
    699702    if [ ${OK_PARA_OMP} ] ; then 
     703      # MPMD + MPI/OMP 
    700704      executionType=2 
    701705    fi 
    702706  else 
    703     # SPMD + MPI/OMP 
    704707    if ( [ ${OK_PARA_MPI} ] && [ ${OK_PARA_OMP} ] ) ; then 
     708      # SPMD + MPI/OMP 
    705709      executionType=3 
     710    elif ( [ ${OK_PARA_MPI} ] && [ ! ${OK_PARA_OMP} ] ) ; then 
    706711      # SPMD + MPI only 
    707     elif ( [ ${OK_PARA_MPI} ] && [ ! ${OK_PARA_OMP} ] ) ; then 
    708712      executionType=4 
     713    elif ( [ ! ${OK_PARA_MPI} ] && [ ${OK_PARA_OMP} ] ) ; then 
    709714      # SPMD + OMP only 
    710     elif ( [ ! ${OK_PARA_MPI} ] && [ ${OK_PARA_OMP} ] ) ; then 
    711715      executionType=5 
     716    elif ( [ ! ${OK_PARA_MPI} ] && [ ! ${OK_PARA_OMP} ] ) ; then 
    712717      # SEQUENTIAL THEN 
    713     elif ( [ ! ${OK_PARA_MPI} ] && [ ! ${OK_PARA_OMP} ] ) ; then 
    714718      executionType=6 
    715719      coreNumber=1 
Note: See TracChangeset for help on using the changeset viewer.