本文整理汇总了Python中easybuild.framework.application.Application.extra_options方法的典型用法代码示例。如果您正苦于以下问题:Python Application.extra_options方法的具体用法?Python Application.extra_options怎么用?Python Application.extra_options使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类easybuild.framework.application.Application
的用法示例。
在下文中一共展示了Application.extra_options方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options():
extra_vars = {
'ignorethrottling': [False, "Ignore check done by ATLAS for CPU throttling (not recommended) (default: False)"],
'full_lapack': [False, "Build a full LAPACK library (requires netlib's LAPACK) (default: False)"],
'sharedlibs': [False, "Enable building of shared libs as well (default: False)"]
}
return Application.extra_options(extra_vars)
示例2: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options():
extra_vars = {
'buildtype': [None, "Specify the type of build (serial, smpar (OpenMP), " \
"dmpar (MPI), dm+sm (hybrid OpenMP/MPI))."],
'rewriteopts': [True, "Replace -O3 with CFLAGS/FFLAGS (default: True)."],
'runtest': [True, "Build and run WRF tests (default: True)."]
}
return Application.extra_options(extra_vars)
示例3: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options():
extra_vars = {
'withchkpt': [False, "Enable checkpointing support (required BLCR) (default: False)"],
'withlimic2': [False, "Enable LiMIC2 support for intra-node communication (default: False)"],
'withmpe': [False, "Build MPE routines (default: False)"],
'debug': [False, "Enable debug build (which is slower) (default: False)"],
'rdma_type': ["gen2", "Specify the RDMA type (gen2/udapl) (default: gen2)"]
}
return Application.extra_options(extra_vars)
示例4: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options():
# default dimensions
dd = [1,4,5,6,9,13,16,17,22]
extra_vars = {
'transpose_flavour': [1, "Transpose flavour of routines (default: 1)"],
'max_tiny_dim': [12, "Maximum tiny dimension (default: 12)"],
'dims': [dd, "Generate routines for these matrix dims (default: %s)" % dd]
}
return Application.extra_options(extra_vars)
示例5: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options():
testdata_urls = [
"http://www.mmm.ucar.edu/wrf/src/data/avn_data.tar.gz",
"http://www.mmm.ucar.edu/wrf/src/wps_files/geog.tar.gz" # 697MB download, 16GB unpacked!
]
extra_vars = {
'buildtype': [None, "Specify the type of build (smpar: OpenMP, dmpar: MPI)."],
'runtest': [True, "Build and run WPS tests (default: True)."],
'testdata': [testdata_urls, "URL to test data required to run WPS test (default: %s)." % testdata_urls]
}
return Application.extra_options(extra_vars)
示例6: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options(extra_vars=None):
vars = Application.extra_options(extra_vars)
intel_vars = {
'license':[None, "License file path (default: None)"],
'license_activation': ['license_server', "Indicates license activation type (default: 'license_server')"],
# 'usetmppath':
# workaround for older SL5 version (5.5 and earlier)
# used to be True, but False since SL5.6/SL6
# disables TMP_PATH env and command line option
'usetmppath': [False, "Use temporary path for installation (default: False)"],
'm32': [False, "Enable 32-bit toolkit (default: False)"],
}
intel_vars.update(vars)
return intel_vars
示例7: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options():
extra_vars = {
'type': ['popt', "Type of build ('popt' or 'psmp') (default: 'popt)"],
'typeopt': [True, "Enable optimization (default: True)"],
'libint': [True, "Use LibInt (default: True)"],
'modincprefix': ['', "IMKL prefix for modinc include dir (default: '')"],
'modinc': [[], "List of modinc's to use (*.f90), or 'True' to use all found at given prefix (default: [])"],
'extracflags': ['', "Extra CFLAGS to be added (default: '')"],
'extradflags': ['', "Extra DFLAGS to be added (default: '')"],
'runtest': [True, 'Indicates if a regression test should be run after make (default: True)'],
'ignore_regtest_fails': [False, "Ignore failures in regression test (should be used with care) (default: False)."],
'maxtasks': [3, "Maximum number of CP2K instances run at the same time during testing (default:3)"]
}
return Application.extra_options(extra_vars)
示例8: extra_options
# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import extra_options [as 别名]
def extra_options():
extra_vars = {
'supply_blas': [False, "Supply BLAS lib to LAPACK for building (default: False)"],
'test_only': [False, "Only make tests, don't try and build LAPACK lib."]
}
return Application.extra_options(extra_vars)