Changeset 1802


Ignore:
Timestamp:
Jul 19, 2013, 4:03:57 PM (11 years ago)
Author:
yann meurdesoif
Message:

Add parallel compiling functionality through fcm
=> 2 new options for the makelmdz_fcm

-j n : enable parallel compiling on 8 tasks
-full : recreate dependency and recompile form scratch

YM

Location:
LMDZ5/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/bld.cfg

    r1789 r1802  
    3030src::ext_src %EXT_SRC
    3131
    32 bld::lib::dyn      %DYN
    33 bld::lib::phys     %PHYS
    34 bld::lib::grid      grid
    35 bld::lib::filtrez   filtrez
    36 bld::lib::bibio     bibio
    37 bld::lib::cosp      cosp
    38 bld::lib: ext_src   ext_src
    39 
     32bld::lib            lmdz
    4033
    4134bld::outfile_ext::exe    %SUFF_NAME.e
    42 bld::target              lib%{DYN}.a lib%{PHYS}.a libgrid.a libfiltrez.a libbibio.a libcosp.a libext_src.a
     35bld::target              liblmdz.a
    4336bld::target              %EXEC%SUFF_NAME.e
    44 bld::exe_dep             %{DYN} %{PHYS} grid filtrez bibio cosp ext_src
     37bld::exe_dep             
    4538
    4639
     
    6457
    6558
     59# Example of how to set specific compiling options for a specific file
     60# -> this can be including in the arch.opt file
    6661#bld::tool::fflags::phys::readaerosol         %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt -pi auto
    67 #bld::tool::fflags::phys::aeropt_2bands       %BASE_FFLAGS %PROD_FFLAGS  %INCDIR
    68 #bld::tool::fflags::phys::radiation_AR4       %BASE_FFLAGS %PROD_FFLAGS1 %INCDIR -C hopt -Wf,-O,extendreorder
    69 #bld::tool::fflags::phys::radiation_AR4_param %BASE_FFLAGS %PROD_FFLAGS1 %INCDIR -C hopt -f3
    70 #bld::tool::fflags::phys::fisrtilp            %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt
    71 #bld::tool::fflags::phys::cv30_routines       %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -Wf,-O,extendreorder
    72 #bld::tool::fflags::phys::cvltr               %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt
    73 #bld::tool::fflags::phys::clouds_gno          %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt
    74 #bld::tool::fflags::dyn::vlsplt_p             %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt
    75 #bld::tool::fflags::dyn::groupeun_p           %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt
    7662
    7763
     
    9581bld::excl_dep        use::mod_prism_get_proto
    9682bld::excl_dep        use::mod_prism_put_proto
    97 bld::excl_dep        use::mkl_dfti
    9883
    9984# Don't generate interface files
  • LMDZ5/trunk/build_gcm

    r1755 r1802  
    2929fi
    3030
     31job=1
    3132dirname="" #path to where the fcm command will be found
    3233if (( $# >= 1 )) ; then
     
    3940  # add a trailing "/" to $dirname
    4041  dirname=${dirname}"/"
     42  shift;
    4143fi
    4244
    4345# run "fcm build" command
    44 ${dirname}fcm build
     46${dirname}fcm build $*
    4547
    4648# cleanup
  • LMDZ5/trunk/makelmdz_fcm

    r1789 r1802  
    2929LIBPREFIX=""
    3030cosp=false
     31job=1
     32full=''
    3133
    3234LMDGCM=`/bin/pwd`
     
    7981[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
    8082[-link LINKS]              : additional links with other libraries
     83[-j n]                     : active parallel compiling on ntask
     84[-full]                    : full recompiling
    8185[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
    8286[-ext_src path]            : path to an additional set of routines to compile with the model
     
    147151      "-ext_src")
    148152          EXT_SRC=$2 ; shift ; shift ;;
     153      "-j")
     154          job=$2 ; shift ; shift ;;
     155      "-full")
     156          full="-full" ; shift ;;
    149157
    150158      "-arch")
     
    468476
    469477rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock
    470 ./build_gcm ${fcm_path}
     478./build_gcm ${fcm_path} -j $job $full
    471479
    472480rm -rf tmp_src
Note: See TracChangeset for help on using the changeset viewer.