Changeset 1858


Ignore:
Timestamp:
Sep 3, 2013, 11:32:25 AM (11 years ago)
Author:
yann meurdesoif
Message:

omp_chunk has now a default value of (llm+1)/omp_size instead of 1.

YM

Location:
LMDZ5/trunk/libf/dyn3dmem
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3dmem/conf_gcm.F

    r1823 r1858  
    1717      use mod_filtre_fft_loc, ONLY : use_filtre_fft_loc=>use_filtre_fft
    1818      use mod_hallo, ONLY : use_mpi_alloc
    19       USE parallel_lmdz, ONLY : omp_chunk
    2019      USE infotrac, ONLY : type_trac
    2120      use assert_m, only: assert
     
    908907      use_mpi_alloc=.FALSE.
    909908      CALL getin('use_mpi_alloc',use_mpi_alloc)
    910 
    911 !Config  Key  = omp_chunk
    912 !Config  Desc = taille des blocs openmp
    913 !Config  Def  = 1
    914 !Config  Help = defini la taille des packets d'it�ration openmp
    915 !Config         distribu�e � chaque t�che lors de l'entr�e dans une
    916 !Config         boucle parall�lis�e
    917  
    918       omp_chunk=1
    919       CALL getin('omp_chunk',omp_chunk)
    920909
    921910!Config key = ok_strato
     
    1006995      write(lunout,*)' use_filtre_fft = ', use_filtre_fft
    1007996      write(lunout,*)' use_mpi_alloc = ', use_mpi_alloc
    1008       write(lunout,*)' omp_chunk = ', omp_chunk
    1009997      write(lunout,*)' ok_strato = ', ok_strato
    1010998      write(lunout,*)' ok_gradsfile = ', ok_gradsfile
  • LMDZ5/trunk/libf/dyn3dmem/parallel_lmdz.F90

    r1856 r1858  
    44  MODULE parallel_lmdz
    55  USE mod_const_mpi
    6    
     6#ifdef CPP_IOIPSL
     7      use IOIPSL
     8#else
     9! if not using IOIPSL, we still need to use (a local version of) getin
     10      use ioipsl_getincom
     11#endif   
    712    INTEGER,PARAMETER :: halo_max=3
    813   
     
    221226        omp_size=OMP_GET_NUM_THREADS()
    222227!$OMP END MASTER
    223         omp_rank=OMP_GET_THREAD_NUM()   
     228        omp_rank=OMP_GET_THREAD_NUM() 
     229
     230!Config  Key  = omp_chunk
     231!Config  Desc = taille des blocs openmp
     232!Config  Def  = 1
     233!Config  Help = defini la taille des packets d'it�ration openmp
     234!Config         distribue a chaque tache lors de l'entree dans une
     235!Config         boucle parallelisee
     236 
     237      omp_chunk=(llm+1)/omp_size
     238      IF (MOD(llm+1,omp_size)/=0) omp_chunk=omp_chunk+1
     239      CALL getin('omp_chunk',omp_chunk)
     240       
    224241#else   
    225242        omp_size=1
Note: See TracChangeset for help on using the changeset viewer.