Skip to content
Snippets Groups Projects
Select Git revision
  • 8535eeeb72afa2d574b58ff866dbbbe7b080ef76
  • master default protected
  • enxhi_issue460_remove_TOAR-I_access
  • michael_issue459_preprocess_german_stations
  • sh_pollutants
  • develop 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
41 results

conftest.py

Blame
  • iompi.py NaN GiB
    ##
    # Copyright 2012-2021 Ghent University
    #
    # This file is part of EasyBuild,
    # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
    # with support of Ghent University (http://ugent.be/hpc),
    # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
    # Flemish Research Foundation (FWO) (http://www.fwo.be/en)
    # and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
    #
    # https://github.com/easybuilders/easybuild
    #
    # EasyBuild is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation v2.
    #
    # EasyBuild is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with EasyBuild.  If not, see <http://www.gnu.org/licenses/>.
    ##
    """
    EasyBuild support for iompi compiler toolchain (includes Intel compilers (icc, ifort) and OpenMPI.
    
    :author: Stijn De Weirdt (Ghent University)
    :author: Kenneth Hoste (Ghent University)
    :author: Damian Alvarez (Forschungszentrum Juelich GmbH)
    """
    from distutils.version import LooseVersion
    import re
    
    from easybuild.toolchains.iccifort import IccIfort
    from easybuild.toolchains.intel_compilers import IntelCompilersToolchain
    from easybuild.toolchains.mpi.openmpi import OpenMPI
    
    
    class Iompi(IccIfort, IntelCompilersToolchain, OpenMPI):
        """
        Compiler toolchain with Intel compilers (icc/ifort) and OpenMPI.
        """
        NAME = 'iompi'
        # compiler-only subtoolchain can't be determine statically
        # since depends on toolchain version (see below),
        # so register both here as possible alternatives (which is taken into account elsewhere)
        SUBTOOLCHAIN = [(IntelCompilersToolchain.NAME, IccIfort.NAME)]
    
        def __init__(self, *args, **kwargs):
            """Constructor for Iompi toolchain class."""
    
            super(Iompi, self).__init__(*args, **kwargs)
    
            # make sure a non-symbolic version (e.g., 'system') is used before making comparisons using LooseVersion
            if re.match('^[0-9]', self.version):
                # need to transform a version like '2016a' with something that is safe to compare with '8.0', '2016.01'
                # comparing subversions that include letters causes TypeErrors in Python 3
                # 'a' is assumed to be equivalent with '.01' (January), and 'b' with '.07' (June)
                # (good enough for this purpose)
                self.iompi_ver = self.version.replace('a', '.01').replace('b', '.07')
                if LooseVersion(self.iompi_ver) >= LooseVersion('2020.12'):
                    self.oneapi_gen = True
                    self.SUBTOOLCHAIN = IntelCompilersToolchain.NAME
                    self.COMPILER_MODULE_NAME = IntelCompilersToolchain.COMPILER_MODULE_NAME
                else:
                    self.oneapi_gen = False
                    self.SUBTOOLCHAIN = IccIfort.NAME
                    self.COMPILER_MODULE_NAME = IccIfort.COMPILER_MODULE_NAME
            else:
                self.ipsmpi_ver = self.version
                self.oneapi_gen = False
    
        def is_deprecated(self):
            """Return whether or not this toolchain is deprecated."""
    
            deprecated = False
    
            # make sure a non-symbolic version (e.g., 'system') is used before making comparisons using LooseVersion
            if re.match('^[0-9]', str(self.iompi_ver)):
                loosever = LooseVersion(self.iompi_ver)
                # iompi toolchains older than iompi/2016.x are deprecated
                if loosever < LooseVersion('2017'):
                    deprecated = True
    
            return deprecated
    
        def is_dep_in_toolchain_module(self, *args, **kwargs):
            """Check whether a specific software name is listed as a dependency in the module for this toolchain."""
            if self.oneapi_gen:
                res = IntelCompilersToolchain.is_dep_in_toolchain_module(self, *args, **kwargs)
            else:
                res = IccIfort.is_dep_in_toolchain_module(self, *args, **kwargs)
    
            return res
    
        def _set_compiler_vars(self):
            """Intel compilers-specific adjustments after setting compiler variables."""
            if self.oneapi_gen:
                IntelCompilersToolchain._set_compiler_vars(self)
            else:
                IccIfort._set_compiler_vars(self)
    
        def set_variables(self):
            """Intel compilers-specific adjustments after setting compiler variables."""
            if self.oneapi_gen:
                IntelCompilersToolchain.set_variables(self)
            else:
                IccIfort.set_variables(self)