Changeset 402 for XIOS/trunk/make_xios


Ignore:
Timestamp:
12/17/12 11:33:32 (9 years ago)
Author:
ymipsl
Message:

add mechanism for memory tracking
=> update make_xios and curie arch for trackmem option

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/make_xios

    r395 r402  
    44compil_full="false" 
    55use_oasis="false" 
     6use_memtrack="false" 
    67job="1" 
    78netcdf_lib="netcdf4_par" 
     
    2627            echo "       [--job ntasks] : to use parallel compilation with ntasks" 
    2728            echo "       [--netcdf_lib 'netcdf4_par'/'netcdf4_seq' : default netcdf4_par] : choice of netcdf library" 
     29            echo "       [--memtrack] : tracking memory leak - developper only" 
    2830            echo "Example : ./make_xios --prod --arch PW6_VARGAS" 
    2931            echo "Example : ./make_xios --avail" 
     
    3941         "--job")   job=$2              ; shift ; shift ;; 
    4042         "--netcdf_lib")   netcdf_lib=$2 ; shift ; shift ;; 
     43         "--memtrack")   use_memtrack="true" ; shift ;; 
    4144         *)         code="$1"           ; shift ;; 
    4245      esac 
     
    122125fi  
    123126 
     127if [[ "$use_memtrack" == "true" ]] 
     128   then 
     129   XMLIO_LIB="$ADDR2LINE_LIBDIR $ADDR2LINE_LIB $XMLIO_LIB" 
     130   XMLIO_CPPKEY="$XMLIO_CPPKEY XIOS_MEMTRACK" 
     131fi  
     132 
    124133XMLIO_CINCDIR="$NETCDF_INCDIR $HDF5_INCDIR $MPI_INCDIR" 
    125134XMLIO_FINCDIR="$XMLIO_FINCDIR $MPI_INCDIR" 
Note: See TracChangeset for help on using the changeset viewer.