Skip to content
Snippets Groups Projects
Select Git revision
  • enxhi_issue460_remove_TOAR-I_access
  • michael_issue459_preprocess_german_stations
  • sh_pollutants
  • develop protected
  • master default protected
  • release_v2.4.0
  • michael_issue450_feat_load-ifs-data
  • lukas_issue457_feat_set-config-paths-as-parameter
  • lukas_issue454_feat_use-toar-statistics-api-v2
  • lukas_issue453_refac_advanced-retry-strategy
  • lukas_issue452_bug_update-proj-version
  • lukas_issue449_refac_load-era5-data-from-toar-db
  • lukas_issue451_feat_robust-apriori-estimate-for-short-timeseries
  • lukas_issue448_feat_load-model-from-path
  • lukas_issue447_feat_store-and-load-local-clim-apriori-data
  • lukas_issue445_feat_data-insight-plot-monthly-distribution
  • lukas_issue442_feat_bias-free-evaluation
  • lukas_issue444_feat_choose-interp-method-cams
  • 414-include-crps-analysis-and-other-ens-verif-methods-or-plots
  • lukas_issue384_feat_aqw-data-handler
  • v2.4.0 protected
  • v2.3.0 protected
  • v2.2.0 protected
  • v2.1.0 protected
  • Kleinert_etal_2022_initial_submission
  • v2.0.0 protected
  • v1.5.0 protected
  • v1.4.0 protected
  • v1.3.0 protected
  • v1.2.1 protected
  • v1.2.0 protected
  • v1.1.0 protected
  • IntelliO3-ts-v1.0_R1-submit
  • v1.0.0 protected
  • v0.12.2 protected
  • v0.12.1 protected
  • v0.12.0 protected
  • v0.11.0 protected
  • v0.10.0 protected
  • IntelliO3-ts-v1.0_initial-submit
40 results

run.py

Blame
  • generate_all_cards.py NaN GiB
    #!/usr/bin/env python3
    from string import Template
    
    # List of dict (version = version semver, sha256 = sha256 checksum of source file)
    all_dpo_versions = [
        {'semver': '4.3.2', 'sha256':'b3eceee09afad75c628c324081a2e443b1ef13dcb57a81b3db5a1099eb02e83b'}
    ]
    
    # List of dict (name = MPI provider name, version = MPI provider version,
    #  mpicc = path to the MPI compiler binary)
    all_mpi_provider = [
        {'name': 'gpsmpi', 'version': '2022a', 'mpicc': '$EBROOTPSMPI/bin/mpicc', 'mpich': '1'},
        {'name': 'gpsmpi', 'version': '2022b', 'mpicc': '$EBROOTPSMPI/bin/mpicc', 'mpich': '1'},
        {'name': 'npsmpic', 'version': '2022a', 'mpicc': '$EBROOTPSMPI/bin/mpicc', 'mpich': '1'},
    ]
    
    eb_dpo_template = Template('''
    ##
    # Author:    Eviden <bds-powerefficiency@eviden.com>
    ##
    easyblock = 'ConfigureMake'
    
    name = 'bdpo-pmpi-wrapper'
    version = '$product_version'
    toolchain = {'name': '$toolchain_name', 'version': '$toolchain_version'}
    description = """This package provides the Power Efficiency Dynamic Power Optimizer PMPI Wrapper product.
    """
    
    local_lib_name = f"bdpopmpiwrapper-{toolchain['name']}-{toolchain['version']}.so"
    
    local_env_map = [
        f"MPICC=$eb_mpicc_path",
        'MPICH=$is_mpich',
        f"DPO_PMPI_MPI_FLAVOR={toolchain['name']}",
        f"DPO_PMPI_MPI_VERSION={toolchain['version']}",
        'INSTALL_OPT_DIR=%(installdir)s',
        'INSTALL_LIB_DIR=""',
    ]
    
    modextravars = {
        'BDPO_PMPIWRAPPER': f"%(installdir)s/{local_lib_name}"
    }
    
    homepage = 'https://www.eviden.com'
    
    source_urls = ['file:///p/project/deepsea/wp2/sources/bdpo-pmpi-wrapper']
    sources = ['bdpo-pmpi-wrapper-%(version)s.tar.gz']
    
    checksums = ['$source_version_checksum']
    
    prebuildopts = ' '.join(local_env_map)
    preinstallopts = ' '.join(local_env_map)
    
    # Hacky way to disable configure step (by returning true and comment all added things)
    configure_cmd_prefix = '/bin/true # Disabling whats coming next:'
    
    sanity_check_paths = {
        'files': [local_lib_name],
        'dirs': [],
    }
    
    moduleclass = 'perf'
    ''')
    
    for version in all_dpo_versions:
        for provider in all_mpi_provider:
            with open(f"bdpo-pmpi-wrapper-{version['semver']}-{provider['name']}-{provider['version']}.eb", 'wt+') as f:
                f.write(
                    eb_dpo_template.substitute({
                        'product_version': version['semver'],
                        'toolchain_name': provider['name'],
                        'toolchain_version': provider['version'],
                        'eb_mpicc_path': provider['mpicc'],
                        'source_version_checksum': version['sha256'],
                        'is_mpich': provider['mpich'],
                    })
                )