当前位置: 首页>>代码示例>>Python>>正文


Python IntelBase.sanity_check_step方法代码示例

本文整理汇总了Python中easybuild.easyblocks.generic.intelbase.IntelBase.sanity_check_step方法的典型用法代码示例。如果您正苦于以下问题:Python IntelBase.sanity_check_step方法的具体用法?Python IntelBase.sanity_check_step怎么用?Python IntelBase.sanity_check_step使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在easybuild.easyblocks.generic.intelbase.IntelBase的用法示例。


在下文中一共展示了IntelBase.sanity_check_step方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: sanity_check_step

# 需要导入模块: from easybuild.easyblocks.generic.intelbase import IntelBase [as 别名]
# 或者: from easybuild.easyblocks.generic.intelbase.IntelBase import sanity_check_step [as 别名]
    def sanity_check_step(self):
        """Custom sanity check paths for ifort."""
        shlib_ext = get_shared_lib_ext()

        binprefix = 'bin/intel64'
        libprefix = 'lib/intel64'
        if LooseVersion(self.version) >= LooseVersion('2011'):
            if LooseVersion(self.version) <= LooseVersion('2011.3.174'):
                binprefix = 'bin'
            elif LooseVersion(self.version) >= LooseVersion('2013_sp1'):
                binprefix = 'bin'
            else:
                libprefix = 'compiler/lib/intel64'

        bins = ['ifort']
        if LooseVersion(self.version) < LooseVersion('2013'):
            # idb is not shipped with ifort anymore in 2013.x versions (it is with icc though)
            bins.append('idb')

        libs = ['ifcore.a', 'ifcore.%s' % shlib_ext, 'iomp5.a', 'iomp5.%s' % shlib_ext]
        custom_paths = {
            'files': [os.path.join(binprefix, x) for x in bins] + [os.path.join(libprefix, 'lib%s' % l) for l in libs],
            'dirs': [],
        }

        custom_commands = ["which ifort"]

        IntelBase.sanity_check_step(self, custom_paths=custom_paths, custom_commands=custom_commands)
开发者ID:boegel,项目名称:easybuild-easyblocks,代码行数:30,代码来源:ifort.py

示例2: sanity_check_step

# 需要导入模块: from easybuild.easyblocks.generic.intelbase import IntelBase [as 别名]
# 或者: from easybuild.easyblocks.generic.intelbase.IntelBase import sanity_check_step [as 别名]
    def sanity_check_step(self):
        """Custom sanity check paths for ifort."""

        binprefix = "bin/intel64"
        libprefix = "lib/intel64/lib"
        if LooseVersion(self.version) >= LooseVersion("2011"):
            if LooseVersion(self.version) <= LooseVersion("2011.3.174"):
                binprefix = "bin"
            elif LooseVersion(self.version) >= LooseVersion("2013_sp1"):
                binprefix = "bin"
                libprefix = "lib/intel64/lib"
            else:
                libprefix = "compiler/lib/intel64/lib"

        bins = ["ifort"]
        if LooseVersion(self.version) < LooseVersion('2013'):
            # idb is not shipped with ifort anymore in 2013.x versions (it is with icc though)
            bins.append("idb")

        custom_paths = {
            'files': ["%s/%s" % (binprefix, x) for x in bins] +
                     ["%s%s" % (libprefix, x) for x in ["ifcore.a", "ifcore.so", "iomp5.a", "iomp5.so"]],
            'dirs': [],
        }

        IntelBase.sanity_check_step(self, custom_paths=custom_paths)
开发者ID:FredHutch,项目名称:easybuild-easyblocks,代码行数:28,代码来源:ifort.py

示例3: sanity_check_step

# 需要导入模块: from easybuild.easyblocks.generic.intelbase import IntelBase [as 别名]
# 或者: from easybuild.easyblocks.generic.intelbase.IntelBase import sanity_check_step [as 别名]
    def sanity_check_step(self):
        """Custom sanity check paths for ifort."""
        shlib_ext = get_shared_lib_ext()

        binprefix = 'bin/intel64'
        libprefix = 'lib/intel64'
        if LooseVersion(self.version) >= LooseVersion('2011'):
            if LooseVersion(self.version) <= LooseVersion('2011.3.174'):
                binprefix = 'bin'
            elif LooseVersion(self.version) >= LooseVersion('2013_sp1'):
                binprefix = 'bin'
            else:
                libprefix = 'compiler/lib/intel64'

        bins = ['ifort']
        if LooseVersion(self.version) < LooseVersion('2013'):
            # idb is not shipped with ifort anymore in 2013.x versions (it is with icc though)
            bins.append('idb')

        libs = ['ifcore.a', 'ifcore.%s' % shlib_ext, 'iomp5.a', 'iomp5.%s' % shlib_ext]
        custom_paths = {
            'files': [os.path.join(binprefix, x) for x in bins] + [os.path.join(libprefix, 'lib%s' % l) for l in libs],
            'dirs': [],
        }

        # make very sure that expected 'compilers_and_libraries_<VERSION>/linux' subdir is there for recent versions,
        # since we rely on it being there in make_module_req_guess
        if self.comp_libs_subdir:
            custom_paths['dirs'].append(self.comp_libs_subdir)

        custom_commands = ["which ifort"]

        IntelBase.sanity_check_step(self, custom_paths=custom_paths, custom_commands=custom_commands)
开发者ID:hpcugent,项目名称:easybuild-easyblocks,代码行数:35,代码来源:ifort.py

示例4: sanity_check_step

# 需要导入模块: from easybuild.easyblocks.generic.intelbase import IntelBase [as 别名]
# 或者: from easybuild.easyblocks.generic.intelbase.IntelBase import sanity_check_step [as 别名]
    def sanity_check_step(self):
        """Custom sanity check paths for ifort."""

        binprefix = 'bin/intel64'
        libprefix = 'lib/intel64'
        if LooseVersion(self.version) >= LooseVersion('2011'):
            if LooseVersion(self.version) <= LooseVersion('2011.3.174'):
                binprefix = 'bin'
            elif LooseVersion(self.version) >= LooseVersion('2013_sp1'):
                binprefix = 'bin'
            else:
                libprefix = 'compiler/lib/intel64'

        bins = ['ifort']
        if LooseVersion(self.version) < LooseVersion('2013'):
            # idb is not shipped with ifort anymore in 2013.x versions (it is with icc though)
            bins.append('idb')

        custom_paths = {
            'files': [os.path.join(binprefix, x) for x in bins] +
            [os.path.join(libprefix, 'lib%s' % x) for x in ['ifcore.a', 'ifcore.so', 'iomp5.a', 'iomp5.so']],
            'dirs': [],
        }

        IntelBase.sanity_check_step(self, custom_paths=custom_paths)
开发者ID:nathanhaigh,项目名称:easybuild-easyblocks,代码行数:27,代码来源:ifort.py

示例5: sanity_check_step

# 需要导入模块: from easybuild.easyblocks.generic.intelbase import IntelBase [as 别名]
# 或者: from easybuild.easyblocks.generic.intelbase.IntelBase import sanity_check_step [as 别名]
    def sanity_check_step(self):
        """Custom sanity check paths for ifort."""

        binprefix = "bin/intel64"
        libprefix = "lib/intel64/lib"
        if LooseVersion(self.version) >= LooseVersion("2011"):
            if LooseVersion(self.version) <= LooseVersion("2011.3.174"):
                binprefix = "bin"
            else:
                libprefix = "compiler/lib/intel64/lib"

        custom_paths = {
                        'files': ["%s/%s" % (binprefix, x) for x in ["ifort", "idb"]] +
                                 ["%s%s" % (libprefix, x) for x in ["ifcore.a", "ifcore.so",
                                                                    "iomp5.a", "iomp5.so"]],
                        'dirs': []
                       }

        IntelBase.sanity_check_step(self, custom_paths=custom_paths)
开发者ID:JensTimmerman,项目名称:easybuild-easyblocks,代码行数:21,代码来源:ifort.py


注:本文中的easybuild.easyblocks.generic.intelbase.IntelBase.sanity_check_step方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。