Exemple #1
0
 def extra_options(extra_vars=None):
     """Easyconfig parameters specific to Python packages thar are configured/built/installed via CMake"""
     extra_vars = PythonPackage.extra_options(extra_vars=extra_vars)
     extra_vars = CMakeMake.extra_options(extra_vars=extra_vars)
     # Disable runtest again (set to True by PythonPackage which is not understood by CMakeMake.test_step)
     extra_vars['runtest'][0] = None
     return extra_vars
Exemple #2
0
 def extra_options():
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'assertions': [
             True, "Enable assertions.  Helps to catch bugs in Clang.",
             CUSTOM
         ],
         'build_targets': [
             None,
             "Build targets for LLVM (host architecture if None). Possible values: "
             + ', '.join(CLANG_TARGETS), CUSTOM
         ],
         'bootstrap': [True, "Bootstrap Clang using GCC", CUSTOM],
         'usepolly': [False, "Build Clang with polly", CUSTOM],
         'build_lld': [False, "Build the LLVM lld linker", CUSTOM],
         'default_openmp_runtime': [
             None,
             "Default OpenMP runtime for clang (for example, 'libomp')",
             CUSTOM
         ],
         'enable_rtti': [False, "Enable Clang RTTI", CUSTOM],
         'libcxx': [False, "Build the LLVM C++ standard library", CUSTOM],
         'static_analyzer':
         [True, "Install the static analyser of Clang", CUSTOM],
         'skip_all_tests': [False, "Skip running of tests", CUSTOM],
         # The sanitizer tests often fail on HPC systems due to the 'weird' environment.
         'skip_sanitizer_tests':
         [True, "Do not run the sanitizer tests", CUSTOM],
     })
     # disable regular out-of-source build, too simplistic for Clang to work
     extra_vars['separate_build_dir'][0] = False
     return extra_vars
 def extra_options():
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'with_python_bindings': [True, "Try to build Open Babel's Python bindings. (-DPYTHON_BINDINGS=ON)", CUSTOM],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
Exemple #4
0
 def extra_options():
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'blas_auto_detect': [
             False,
             "Let FlexiBLAS autodetect the BLAS libraries during configuration",
             CUSTOM
         ],
         'enable_lapack': [
             True,
             "Enable LAPACK support, also includes the wrappers around LAPACK",
             CUSTOM
         ],
         'flexiblas_default': [
             None,
             "Default BLAS lib to set at compile time. If not defined, " +
             "the first BLAS lib in backends or the list of dependencies is set as default",
             CUSTOM
         ],
         'backends': [
             None,
             "List of (build)dependency names to use as BLAS library backends, or "
             + "'imkl', which does not need to be a (build)dependency." +
             "If not defined, use the list of dependencies.", CUSTOM
         ],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
 def extra_options(**kwargs):
     """Custom easyconfig parameters for LAMMPS"""
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         # see https://developer.nvidia.com/cuda-gpus
         'cuda_compute_capabilities':
         [[], "List of CUDA compute capabilities to build with", CUSTOM],
         'general_packages': [
             None,
             "List of general packages without '%s' prefix." % PKG_PREFIX,
             MANDATORY
         ],
         'kokkos': [True, "Enable kokkos build.", CUSTOM],
         'kokkos_arch': [
             None,
             "Set kokkos processor arch manually, if auto-detection doesn't work.",
             CUSTOM
         ],
         'user_packages': [
             None,
             "List user packages without '%s' prefix." % PKG_USER_PREFIX,
             MANDATORY
         ],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
 def extra_options():
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'double_precision': [
             None,
             "Build with double precision enabled (-DGMX_DOUBLE=ON), " +
             "default is to build double precision unless CUDA is enabled",
             CUSTOM
         ],
         'mpisuffix': [
             '_mpi',
             "Suffix to append to MPI-enabled executables (only for GROMACS < 4.6)",
             CUSTOM
         ],
         'mpiexec':
         ['mpirun', "MPI executable to use when running tests", CUSTOM],
         'mpiexec_numproc_flag': [
             '-np',
             "Flag to introduce the number of MPI tasks when running tests",
             CUSTOM
         ],
         'mpi_numprocs':
         [0, "Number of MPI tasks to use when running tests", CUSTOM],
         'ignore_plumed_version_check': [
             False, "Ignore the version compatibility check for PLUMED",
             CUSTOM
         ],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
Exemple #7
0
    def extra_options():
        """Custom easyconfig parameters for NEURON."""

        extra_vars = {
            'paranrn': [True, "Enable support for distributed simulations.", CUSTOM],
        }
        return CMakeMake.extra_options(extra_vars)
Exemple #8
0
 def extra_options():
     """Custom easyconfig parameters for Libint."""
     extra_vars = {
         'libint_compiler_configopts': [True, "Configure options for Libint compiler", CUSTOM],
         'with_fortran': [False, "Enable Fortran support", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
Exemple #9
0
 def extra_options(extra_vars=None):
     """Easyconfig parameters specific to Python packages thar are configured/built/installed via CMake"""
     extra_vars = PythonPackage.extra_options(extra_vars=extra_vars)
     extra_vars = CMakeMake.extra_options(extra_vars=extra_vars)
     # enable out-of-source build
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
Exemple #10
0
    def extra_options(extra_vars=None):
        """Extra easyconfig parameters for BamTools."""
        extra_vars = MakeCp.extra_options()

        # files_to_copy is not mandatory here, since we overwrite it in install_step
        extra_vars['files_to_copy'][2] = CUSTOM

        return CMakeMake.extra_options(extra_vars=extra_vars)
Exemple #11
0
 def extra_options():
     """Custom easyconfig parameters specific to OpenCV."""
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'cpu_dispatch': ['NONE', "Value to pass to -DCPU_DISPATCH configuration option", CUSTOM],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
 def extra_options():
     """
     Define custom easyconfig parameters for SuperLU.
     """
     extra_vars = {
         'build_shared_libs': [False, "Build shared library (instead of static library)", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
 def extra_options():
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'default_platform': ['openPBS', "Default cluster platform to set", CUSTOM],
     })
     # Out of source build doesn't work due to sub tools beeing 'make'd
     extra_vars['separate_build_dir'][0] = False
     return extra_vars
Exemple #14
0
 def extra_options():
     """
     Define extra options needed by Geant4
     """
     extra_vars = {
         'arch': [None, "Target architecture", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
Exemple #15
0
 def extra_options(extra_vars=None):
     """Easyconfig parameters specific to PyBind11: Set defaults"""
     extra_vars = PythonPackage.extra_options(extra_vars=extra_vars)
     extra_vars = CMakeMake.extra_options(extra_vars=extra_vars)
     extra_vars['use_pip'][0] = True
     extra_vars['sanity_pip_check'][0] = True
     extra_vars['download_dep_fail'][0] = True
     return extra_vars
Exemple #16
0
    def extra_options():
        """Extra easyconfig parameters specific to PSI."""

        extra_vars = {
            # always include running PSI unit tests (takes about 2h or less)
            'runtest': ["tests TESTFLAGS='-u -q'", "Run tests included with PSI, without interruption.", BUILD],
        }
        return CMakeMake.extra_options(extra_vars)
Exemple #17
0
    def extra_options():
        extra_vars = [
            ('assertions', [True, "Enable assertions.  Helps to catch bugs in Clang.", CUSTOM]),
            ('build_targets', [["X86"], "Build targets for LLVM. Possible values: " + ', '.join(CLANG_TARGETS), CUSTOM]),
            ('bootstrap', [True, "Bootstrap Clang using GCC", CUSTOM]),
            ('usepolly', [False, "Build Clang with polly", CUSTOM]),
        ]

        return CMakeMake.extra_options(extra_vars)
 def extra_options():
     extra_vars = {
         'with_python_bindings': [
             True,
             "Try to build Open Babel's Python bindings. (-DPYTHON_BINDINGS=ON)",
             CUSTOM
         ],
     }
     return CMakeMake.extra_options(extra_vars)
Exemple #19
0
 def extra_options():
     extra_vars = {
         'double_precision': [False, "Build with double precision enabled (-DGMX_DOUBLE=ON)", CUSTOM],
         'mpisuffix': ['_mpi', "Suffix to append to MPI-enabled executables (only for GROMACS < 4.6)", CUSTOM],
         'mpiexec': ['mpirun', "MPI executable to use when running tests", CUSTOM],
         'mpiexec_numproc_flag': ['-np', "Flag to introduce the number of MPI tasks when running tests", CUSTOM],
         'mpi_numprocs': [0, "Number of MPI tasks to use when running tests", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
Exemple #20
0
 def extra_options():
     """Define custom easyconfig parameters for ELSI."""
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'build_internal_pexsi': [None, "Build internal PEXSI solver", CUSTOM],
     })
     extra_vars['separate_build_dir'][0] = True
     extra_vars['build_shared_libs'][0] = True
     return extra_vars
Exemple #21
0
 def extra_options():
     """Custom easyconfig parameters specific to OpenCV."""
     extra_vars = {
         'cpu_dispatch': [
             'NONE', "Value to pass to -DCPU_DISPATCH configuration option",
             CUSTOM
         ],
     }
     return CMakeMake.extra_options(extra_vars)
 def extra_options():
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'blas_auto_detect': [False, "Let FlexiBLAS autodetect the BLAS libraries during configuration", CUSTOM],
         'enable_lapack': [True, "Enable LAPACK support, also includes the wrappers around LAPACK", CUSTOM],
         'flexiblas_default': [None, "Default BLAS lib to set at compile time. If not defined, " +
                               "the first BLAS lib in the list of dependencies is set as default", CUSTOM],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
 def extra_options():
     """Add extra config options specific to Trilinos."""
     extra_vars = {
         'shared_libs': [False, "Build shared libs; if False, build static libs", CUSTOM],
         'openmp': [True, "Enable OpenMP support", CUSTOM],
         'all_exts': [True, "Enable all Trilinos packages", CUSTOM],
         'skip_exts': [[], "List of Trilinos packages to skip", CUSTOM],
         'verbose': [False, "Configure for verbose output", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)
Exemple #24
0
    def extra_options():
        extra_vars = {
            'assertions': [True, "Enable assertions.  Helps to catch bugs in Clang.", CUSTOM],
            'build_targets': [["X86"], "Build targets for LLVM. Possible values: " + ', '.join(CLANG_TARGETS), CUSTOM],
            'bootstrap': [True, "Bootstrap Clang using GCC", CUSTOM],
            'usepolly': [False, "Build Clang with polly", CUSTOM],
            'static_analyzer': [True, "Install the static analyser of Clang", CUSTOM],
        }

        return CMakeMake.extra_options(extra_vars)
Exemple #25
0
 def extra_options():
     """Extra easyconfig parameters specific to PSI."""
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         # always include running PSI unit tests (takes about 2h or less)
         'runtest': ["tests TESTFLAGS='-u -q'", "Run tests included with PSI, without interruption.", BUILD],
     })
     # Doesn't work with out-of-source build
     extra_vars['separate_build_dir'][0] = False
     return extra_vars
Exemple #26
0
 def extra_options():
     """
     Define extra options needed by Geant4
     """
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'arch': [None, "Target architecture", CUSTOM],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
Exemple #27
0
 def extra_options():
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'build_targets': [
             None,
             "Build targets for LLVM (host architecture if None). Possible values: "
             + ', '.join(CLANG_TARGETS), CUSTOM
         ],
         'enable_rtti': [True, "Enable RTTI", CUSTOM],
     })
     return extra_vars
    def extra_options(extra_vars=None):
        """Extra easyconfig parameters for BamTools."""
        extra_vars = MakeCp.extra_options()
        extra_vars.update(CMakeMake.extra_options())

        # files_to_copy is not mandatory here, since we overwrite it in install_step
        extra_vars['files_to_copy'][2] = CUSTOM
        # BamTools requires an out of source build
        extra_vars['separate_build_dir'][0] = True

        return extra_vars
Exemple #29
0
 def extra_options(**kwargs):
     """Custom easyconfig parameters for LAMMPS"""
     extra_vars = CMakeMake.extra_options()
     extra_vars.update({
         'general_packages': [None, "List of general packages without '%s' prefix." % PKG_PREFIX, MANDATORY],
         'kokkos': [True, "Enable kokkos build.", CUSTOM],
         'kokkos_arch': [None, "Set kokkos processor arch manually, if auto-detection doesn't work.", CUSTOM],
         'user_packages': [None, "List user packages without '%s' prefix." % PKG_USER_PREFIX, MANDATORY],
     })
     extra_vars['separate_build_dir'][0] = True
     return extra_vars
 def extra_options():
     """
     Define extra options needed by Geant4
     """
     extra_vars = {
         'G4ABLAVersion': [None, "G4ABLA version", CUSTOM],
         'G4NDLVersion': [None, "G4NDL version", CUSTOM],
         'G4EMLOWVersion': [None, "G4EMLOW version", CUSTOM],
         'PhotonEvaporationVersion': [None, "PhotonEvaporation version", CUSTOM],
         'G4RadioactiveDecayVersion': [None, "G4RadioactiveDecay version", CUSTOM],
     }
     return CMakeMake.extra_options(extra_vars)