Changeset 1638 for XIOS/dev/branch_openmp
- Timestamp:
- 01/22/19 16:15:03 (5 years ago)
- Location:
- XIOS/dev/branch_openmp
- Files:
-
- 15 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/arch/arch-X64_ADA.env
r986 r1638 1 module unload compilerwrappers 1 module load gcc/6.4.0 2 module load intel/2018.2 2 3 module unload netcdf 3 4 module unload hdf5 4 5 module load netcdf/mpi/4.1.3 5 #module load netcdf/mpi/4.1.3 6 6 #module load hdf5/mpi/1.8.9 7 8 export NETCDF_INC_DIR=/smplocal/pub/NetCDF/4.1.3/mpi/include9 export NETCDF_LIB_DIR=/smplocal/pub/NetCDF/4.1.3/mpi/lib10 export HDF5_INC_DIR=/smplocal/pub/HDF5/1.8.9/par/include11 export HDF5_LIB_DIR=/smplocal/pub/HDF5/1.8.9/par/lib -
XIOS/dev/branch_openmp/arch/arch-X64_ADA.fcm
r1545 r1638 3 3 ################################################################################ 4 4 5 %CCOMPILER mpiicc - qopenmp -D_usingEP -D_intelmpi6 %FCOMPILER mpiifort -qopenmp -D_usingEP -D_intelmpi7 %LINKER mpiifort -nofor-main -qopenmp -D_usingEP -D_intelmpi5 %CCOMPILER mpiicc -std=c++11 6 %FCOMPILER mpiifort 7 %LINKER mpiifort -nofor-main 8 8 9 10 %BASE_CFLAGS -std=c++11 -diag-disable 1125 -diag-disable 279 9 %BASE_CFLAGS -diag-disable 1125 -diag-disable 279 11 10 %PROD_CFLAGS -O3 -D BOOST_DISABLE_ASSERTS 12 11 %DEV_CFLAGS -g -traceback 13 %DEBUG_CFLAGS -DBZ_DEBUG -g -fno-inline 14 12 %DEBUG_CFLAGS -DBZ_DEBUG -g -traceback -fno-inline 15 13 16 14 %BASE_FFLAGS -D__NONE__ 17 15 %PROD_FFLAGS -O3 18 16 %DEV_FFLAGS -g -O2 -traceback 19 %DEBUG_FFLAGS -g 17 %DEBUG_FFLAGS -g -traceback 20 18 21 19 %BASE_INC -D__NONE__ 22 %BASE_LD -lstdc++ 20 %BASE_LD -lstdc++ -Wl,-rpath=/smplocal/pub/NetCDF/4.1.3/mpi/lib:/smplocal/pub/HDF5/1.8.9/par/lib 23 21 24 22 %CPP mpiicc -EP -
XIOS/dev/branch_openmp/arch/arch-X64_ADA.path
r986 r1638 1 NETCDF_INCDIR="-I $NETCDF_INC_DIR"2 #NETCDF_LIBDIR="-L $NETCDF_LIB_DIR"3 #NETCDF_LIB="-lnetcdff -lnetcdf"1 NETCDF_INCDIR="-I/smplocal/pub/NetCDF/4.1.3/mpi/include" 2 NETCDF_LIBDIR="-L/smplocal/pub/NetCDF/4.1.3/mpi/lib" 3 NETCDF_LIB="-lnetcdff -lnetcdf" 4 4 5 5 MPI_INCDIR="" … … 7 7 MPI_LIB="" 8 8 9 #HDF5_INCDIR="-I $HDF5_INC_DIR"10 #HDF5_LIBDIR="-L $HDF5_LIB_DIR"11 #HDF5_LIB="-lhdf5_hl -lhdf5 -lhdf5 -lz"9 HDF5_INCDIR="-I/smplocal/pub/HDF5/1.8.9/par/include" 10 HDF5_LIBDIR="-L/smplocal/pub/HDF5/1.8.9/par/lib" 11 HDF5_LIB="-lhdf5_hl -lhdf5 -lhdf5 -lz" 12 12 13 13 OASIS_INCDIR="-I$PWD/../../oasis3-mct/BLD/build/lib/psmile.MPI1" -
XIOS/dev/branch_openmp/bld.cfg
r1556 r1638 8 8 # ------------------------------------------------------------------------------ 9 9 10 inc arch.fcm 11 inc config.fcm10 # Specifying the build directory and src::blitz if necessary. 11 inc bld_dir.cfg 12 12 13 13 %CFLAGS %BASE_CFLAGS %COMPIL_CFLAGS … … 15 15 %LD_FLAGS %ARCH_LD %BASE_LD 16 16 17 18 dest::root $PWD19 20 17 bld::infile_ext::cpp C::SOURCE 21 18 bld::infile_ext::conf CPP::INCLUDE 22 19 bld::infile_ext::hpp CPP::INCLUDE 23 20 21 # IMPORTANT: as the build directory may not necessarily coincide with the source directory, 22 # each source subfolder should be declared individually 23 search_src false 24 src::xios $PWD/src 25 src::xios::config $PWD/src/config 26 src::xios::date $PWD/src/date 27 src::xios::filter $PWD/src/filter 28 src::xios::functor $PWD/src/functor 29 src::xios::interface::c $PWD/src/interface/c 30 src::xios::interface::c_attr $PWD/src/interface/c_attr 31 src::xios::interface::fortran $PWD/src/interface/fortran 32 src::xios::interface::fortran_attr $PWD/src/interface/fortran_attr 33 src::xios::io $PWD/src/io 34 src::xios::node $PWD/src/node 35 src::xios::parse_expr $PWD/src/parse_expr 36 src::xios::test $PWD/src/test 37 src::xios::transformation $PWD/src/transformation 38 src::xios::transformation::Functions $PWD/src/transformation/Functions 39 src::xios::type $PWD/src/type 24 40 25 search_src true26 src::zzz .27 src::date $PWD/extern/boost/src/date_time28 src::blitz $PWD/extern/blitz/src29 41 src::netcdf $PWD/extern/netcdf4 30 42 src::remap $PWD/extern/remap/src 31 src::src_ep_dev $PWD/extern/src_ep_dev 32 #src::src_ep_dev $PWD/extern/ep_dev 43 src::ep $PWD/extern/src_ep_dev 44 #src::ep $PWD/extern/src_ep_dev2 45 33 46 bld::lib xios 34 bld::target libxios.a47 #bld::target libxios.a 35 48 #bld::target generate_fortran_interface.exe 36 bld::target xios_server.exe 49 #bld::target test_remap.exe 50 #bld::target xios_server.exe 37 51 #bld::target test_regular.exe 38 #bld::target test_expand_domain.exe 39 #bld::target test_new_features.exe 40 #bld::target test_unstruct_complete.exe 41 #bld::target test_omp.exe 42 #bld::target test_complete_omp.exe 43 #bld::target test_remap.exe 44 #bld::target test_remap_ref.exe 45 #bld::target test_remap_omp.exe 46 #bld::target test_unstruct_omp.exe 47 #bld::target test_netcdf_omp.exe 48 #bld::target test_client.exe 52 #bld::target test_xios2_cmip6.exe 53 #bld::target test_new_features.exe test_unstruct_complete.exe 54 #bld::target test_remap.exe#bld::target test_complete.exe 49 55 #bld::target test_complete.exe 50 #bld::target test_remap.exe 51 #bld::target test_xios2_cmip6.exe 52 #bld::target test_connectivity_expand.exe 53 #bld::target toy_cmip6.exe 54 #bld::target toy_cmip6_omp.exe 56 #bld::target test_client.exe 57 bld::target test_omp.exe 58 #bld::target test_unstruct_complete.exe 59 #bld::target test_unstructured.exe 55 60 bld::exe_dep 56 61 … … 63 68 bld::tool::ld %LINKER 64 69 bld::tool::ldflags %LD_FLAGS 65 bld::tool::cflags %CFLAGS %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include 70 bld::tool::cflags %CFLAGS %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include -I${PWD}/extern/src_ep_dev 71 #bld::tool::cflags %CFLAGS %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include -I${PWD}/extern/src_ep_dev2 66 72 bld::tool::fflags %FFLAGS %FBASE_INC 67 73 bld::tool::cppkeys %CPP_KEY … … 71 77 # Pre-process code before analysing dependencies 72 78 bld::pp false 73 bld::pp:: interface/fortran true74 bld::pp:: interface/fortran_attr true79 bld::pp::xios::interface::fortran true 80 bld::pp::xios::interface::fortran_attr true 75 81 bld::excl_dep use::mod_prism_get_comm 76 82 bld::excl_dep use::mod_prism_get_localcomm_proto -
XIOS/dev/branch_openmp/inputs/iodef.xml
r1544 r1638 11 11 <field id="field_Domain" operation="average" freq_op="3600s" domain_ref="domain_A"/> 12 12 <field id="field_A_zoom" operation="average" freq_op="3600s" field_ref="field_A" grid_ref="grid_A_zoom"/> 13 <field id="field_Scalar" operation=" average" freq_op="3600s" grid_ref="grid_Scalar"/>13 <field id="field_Scalar" operation="instant" freq_op="3600s" grid_ref="grid_Scalar"/> 14 14 </field_definition> 15 15 16 16 17 17 <file_definition type="one_file" par_access="collective" output_freq="1h" output_level="10" enabled=".TRUE."> 18 <file id="output" name="output" enabled=".TRUE.">18 <file id="output" name="output" > 19 19 <field field_ref="field_A" name="field_A" /> 20 20 <field field_ref="field_A_zoom" name="field_B" /> 21 21 </file> 22 <file id="output1" name="output1" enabled=".TRUE.">22 <file id="output1" name="output1"> 23 23 <field field_ref="field_A" name="field_A" /> 24 24 </file> 25 <file id="output2" name="output2" enabled=".TRUE.">25 <file id="output2" name="output2" > 26 26 <field field_ref="field_Scalar" name="field_A" /> 27 27 </file> … … 71 71 <variable_group id="parameters" > 72 72 <variable id="using_server" type="bool">false</variable> 73 <variable id="info_level" type="int"> 50</variable>73 <variable id="info_level" type="int">100</variable> 74 74 <variable id="print_file" type="bool">true</variable> 75 75 </variable_group> -
XIOS/dev/branch_openmp/make_xios
r1157 r1638 5 5 use_oasis="false" 6 6 oasis="oasis3_mct" 7 build_path="./" 8 build_dir="./" 9 build_suffixed="false" 10 use_extern_boost="false" 11 use_extern_blitz="false" 7 12 use_memtrack="false" 8 13 job="1" 9 14 netcdf_lib="netcdf4_par" 10 15 compil_mode="prod" 11 arch_path= "arch"12 arch_default_path= "arch"16 arch_path=$PWD/"arch" 17 arch_default_path=$PWD/"arch" 13 18 arch_defined="FALSE" 14 19 arch_path_defined="FALSE" … … 29 34 echo " [--full] : to generate dependencies and recompile from scratch" 30 35 echo " [--use_oasis 'oasis3' 'oasis3_mct' : default oasis3_mct] : to use Oasis coupler" 36 echo " [--build_path : absolute path to the build directory" 37 echo " [--build_dir : name of the build directory" 38 echo " [--build_suffixed : generate automatically suffixed name of the build directory (e.g. config_X64_CURIE_prod)" 39 echo " [--use_extern_boost : to use external boost library" 40 echo " [--use_extern_blitz : to use external blitz library" 31 41 echo " [--doc] : to generate Doxygen documentation (not available yet)" 32 42 echo " [--job ntasks] : to use parallel compilation with ntasks" … … 44 54 "--full") compil_full="true" ; shift ;; 45 55 "--use_oasis") use_oasis="true" oasis=$2 ; shift ; shift ;; 56 "--build_path") build_path=$2 ; shift ; shift ;; 57 "--build_dir") build_dir=$2 ; shift ; shift ;; 58 "--build_suffixed") build_suffixed="true" ; shift ;; 59 "--use_extern_boost") use_extern_boost="true" ; shift ;; 60 "--use_extern_blitz") use_extern_blitz="true" ; shift ;; 46 61 "--doc") doc="true" ; shift ;; 47 62 "--job") job=$2 ; shift ; shift ;; 48 63 "--netcdf_lib") netcdf_lib=$2 ; shift ; shift ;; 49 64 "--memtrack") use_memtrack="true" memtrack=$2 ; shift ; shift ;; 50 51 52 65 *) code="$1" ; shift ;; 66 esac 67 done 53 68 54 69 # Installation des sources … … 58 73 echo -e "- uncompress archives ..." 59 74 for tarname in `ls $install_dir/tools/archive/*.tar.gz` ; do 75 if ( [[ ${tarname} == "${install_dir}/tools/archive/boost.tar.gz" ]] && [[ "$use_extern_boost" == "true" ]] ) || ( [[ ${tarname} == "${install_dir}/tools/archive/blitz.tar.gz" ]] && [[ "$use_extern_blitz" == "true" ]] ) 76 then 77 continue 78 fi 60 79 gunzip -f "$tarname" 61 80 tar -xf ${tarname%.gz} 62 81 done 63 82 fi 83 84 # Definition of the root directory of the build 85 86 if [[ "$build_path" == "./" ]]; then 87 install_dir=$PWD 88 else 89 install_dir=${build_path} 90 fi 91 92 if [[ "$build_suffixed" == "true" ]]; then 93 install_dir="${install_dir}/config_${arch}_${compil_mode}" 94 else 95 install_dir="${install_dir}/${build_dir}" 96 fi 97 98 mkdir -p $install_dir 99 100 rm -f ${PWD}/bld_dir.cfg 101 echo "inc ${install_dir}/arch.fcm" >> ${PWD}/bld_dir.cfg 102 echo "inc ${install_dir}/config.fcm" >> ${PWD}/bld_dir.cfg 103 echo "dir::root ${install_dir}" >> ${PWD}/bld_dir.cfg 64 104 65 105 # Vérification de la présence d'un identifiant d'architecture. … … 77 117 if [[ "$arch_defined" == "TRUE" ]] 78 118 then 79 rm -f arch.path80 rm -f arch.fcm81 rm -f arch.env119 rm -f ${install_dir}/arch.path 120 rm -f ${install_dir}/arch.fcm 121 rm -f ${install_dir}/arch.env 82 122 83 123 if test -f $arch_path/arch-${arch}.path 84 124 then 85 ln -s $arch_path/arch-${arch}.path arch.path125 ln -s $arch_path/arch-${arch}.path ${install_dir}/arch.path 86 126 elif test -f $arch_default_path/arch-${arch}.path 87 127 then 88 ln -s $arch_default_path/arch-${arch}.path arch.path128 ln -s $arch_default_path/arch-${arch}.path ${install_dir}/arch.path 89 129 fi 90 130 91 131 if test -f $arch_path/arch-${arch}.fcm 92 132 then 93 ln -s $arch_path/arch-${arch}.fcm arch.fcm133 ln -s $arch_path/arch-${arch}.fcm ${install_dir}/arch.fcm 94 134 elif test -f $arch_default_path/arch-${arch}.fcm 95 135 then 96 ln -s $arch_default_path/arch-${arch}.fcm arch.fcm136 ln -s $arch_default_path/arch-${arch}.fcm ${install_dir}/arch.fcm 97 137 fi 98 138 99 139 if test -f $arch_path/arch-${arch}.env 100 140 then 101 ln -s $arch_path/arch-${arch}.env arch.env141 ln -s $arch_path/arch-${arch}.env ${install_dir}/arch.env 102 142 elif test -f $arch_default_path/arch-${arch}.env 103 143 then 104 ln -s $arch_default_path/arch-${arch}.env arch.env144 ln -s $arch_default_path/arch-${arch}.env ${install_dir}/arch.env 105 145 else 106 ln -s .void_file arch.env146 ln -s .void_file ${install_dir}/arch.env 107 147 fi 108 source arch.env109 source arch.path148 source ${install_dir}/arch.env 149 source ${install_dir}/arch.path 110 150 else 111 151 echo "Please choose a target achitecture --> list all available architecture using make_xios --avail!" … … 170 210 fi 171 211 212 # Setting path for boost 213 if [[ "$use_extern_boost" == "true" ]] 214 then 215 rm -r $PWD/extern/boost 216 ln -s $PWD/.void_dir $PWD/extern/boost 217 else 218 export BOOST_INCDIR="-I${PWD}/extern/boost" 219 export BOOST_LIBDIR="" 220 export BOOST_LIB="" 221 fi 222 223 # Setting path for blitz 224 if [[ "$use_extern_blitz" == "true" ]] 225 then 226 rm -r $PWD/extern/blitz 227 ln -s $PWD/.void_dir $PWD/extern/blitz 228 else 229 echo "src::blitz $PWD/extern/blitz/src" >> ${PWD}/bld_dir.cfg 230 export BLITZ_INCDIR="-I${PWD}/extern/blitz" 231 export BLITZ_LIBDIR="" 232 export BLITZ_LIB="" 233 fi 234 235 172 236 if [[ "$use_memtrack" == "true" ]] 173 237 then 174 238 XIOS_CPPKEY="$XIOS_CPPKEY XIOS_MEMTRACK" 175 if [[ "$memtrack" == "light" ]] 176 then 177 XIOS_CPPKEY="$XIOS_CPPKEY XIOS_MEMTRACK_LIGHT" 239 240 if [[ "$memtrack" == "light" ]] 241 then 242 XIOS_CPPKEY="$XIOS_CPPKEY XIOS_MEMTRACK_LIGHT" 178 243 elif [[ "$memtrack" == "FULL" ]] 179 244 then … … 186 251 fi 187 252 188 XIOS_CINCDIR="$NETCDF_INCDIR $HDF5_INCDIR $MPI_INCDIR "189 XIOS_FINCDIR="$NETCDF_INCDIR $XIOS_FINCDIR $MPI_INCDIR "253 XIOS_CINCDIR="$NETCDF_INCDIR $HDF5_INCDIR $MPI_INCDIR $BOOST_INCDIR $BLITZ_INCDIR" 254 XIOS_FINCDIR="$NETCDF_INCDIR $XIOS_FINCDIR $MPI_INCDIR $BOOST_INCDIR $BLITZ_INCDIR" 190 255 191 256 XIOS_LIB="$XIOS_LIB $NETCDF_LIBDIR $HDF5_LIBDIR $MPI_LIBDIR $NETCDF_LIB $HDF5_LIB $MPI_LIB" 192 257 193 rm -f config.fcm194 echo "%COMPIL_CFLAGS $COMPIL_CFLAGS" >> config.fcm195 echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> config.fcm196 echo "%CPP_KEY $XIOS_CPPKEY" >> config.fcm197 198 echo "%CBASE_INC $XIOS_CINCDIR" >> config.fcm199 echo "%FBASE_INC $XIOS_FINCDIR" >> config.fcm200 echo "%ARCH_LD $XIOS_LIB" >> config.fcm258 rm -f ${install_dir}/config.fcm 259 echo "%COMPIL_CFLAGS $COMPIL_CFLAGS" >> ${install_dir}/config.fcm 260 echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> ${install_dir}/config.fcm 261 echo "%CPP_KEY $XIOS_CPPKEY" >> ${install_dir}/config.fcm 262 263 echo "%CBASE_INC $XIOS_CINCDIR" >> ${install_dir}/config.fcm 264 echo "%FBASE_INC $XIOS_FINCDIR" >> ${install_dir}/config.fcm 265 echo "%ARCH_LD $XIOS_LIB" >> ${install_dir}/config.fcm 201 266 202 267 echo "=> Using "$compil_mode" mode for compiling under architecture \""$arch"\" !"
Note: See TracChangeset
for help on using the changeset viewer.