Skip to content
Snippets Groups Projects
Select Git revision
  • 118545b55ab098f24761f8b2e8451b808490d890
  • bing_issues#190_tf2
  • bing_tf2_convert
  • bing_issue#189_train_modular
  • simon_#172_integrate_weatherbench
  • develop
  • bing_issue#188_restructure_ambs
  • yan_issue#100_extract_prcp_data
  • bing_issue#170_data_preprocess_training_tf1
  • Gong2022_temperature_forecasts
  • bing_issue#186_clean_GMD1_tag
  • yan_issue#179_integrate_GZAWS_data_onfly
  • bing_issue#178_runscript_bug_postprocess
  • michael_issue#187_bugfix_setup_runscript_template
  • bing_issue#180_bugs_postprpocess_meta_postprocess
  • yan_issue#177_repo_for_CLGAN_gmd
  • bing_issue#176_integrate_weather_bench
  • michael_issue#181_eval_era5_forecasts
  • michael_issue#182_eval_subdomain
  • michael_issue#119_warmup_Horovod
  • bing_issue#160_test_zam347
  • ambs_v1
  • ambs_gmd_nowcasting_v1.0
  • GMD1
  • modular_booster_20210203
  • new_structure_20201004_v1.0
  • old_structure_20200930
27 results

__init__.py

Blame
  • build.sh 1.05 KiB
    #!/bin/bash
    
    VERSION=$1
    ADD_COMPILE_FLAGS=$2
    
    DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
    DIR=$DIR/../../
    
    export CFLAGS=" ${ADD_COMPILE_FLAGS}"
    export CXXFLAGS=" ${ADD_COMPILE_FLAGS}"
    
    # Check if parsec hooks should be used.
    # Note that you will need to compile them if you want to use them (utils/hooks)
    if [[ $ADD_COMPILE_FLAGS == *"ENABLE_PARSEC_HOOKS"* ]]
    then
        export CFLAGS="$CFLAGS -I${DIR}/utils/hooks/include"
        export CXXFLAGS="$CXXFLAGS -I${DIR}/utils/hooks/include"
        export LDFLAGS="-L${DIR}/utils/hooks/lib"
        export LIBS="-lhooks"
    fi
    
    if [ ${VERSION} = "serial" ] || [ ${VERSION} = "omp" ]; then 
    	echo -e "\033[32mCleaning directory\033[m"
    	make version=${VERSION} clean
    	echo -e "\033[32mCompiling ${VERSION} version\033[m"
    	make version=${VERSION}
            echo -e "\033[32mInstalling ${VERSION} version\033[m"
            make version=${VERSION} install
            echo -e "\033[32mCleaning directory\033[m"
            make version=${VERSION} clean
    	echo -e "\033[32mDone!\033[m"
    else
    	echo -e "\033[31m${VERSION} version not supported!\033[m"
    fi