本文整理汇总了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)
示例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)
示例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)
示例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)
示例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)