fab.fab_base.site_specific.default.config#
This module contains the default Baf configuration class.
Classes
|
This class is the default Configuration object for Baf builds. |
- class fab.fab_base.site_specific.default.config.Config#
This class is the default Configuration object for Baf builds. It provides several callbacks which will be called from the build scripts to allow site-specific customisations.
- get_valid_profiles()#
Determines the list of all allowed compiler profiles. The first entry in this list is the default profile to be used. This method can be overwritten by site configs to add or modify the supported profiles.
- define_command_line_options(parser)#
Callback in which additional, site-specific options can be added, and/or the the defaults for the parser can be changed. Typically, a site-specific configuration should inherit from the default, and can then overwrite this method to add site-specific options or defaults.
- Return type:
- handle_command_line_options(args)#
Additional callback function executed once all command line options have been added. This is for example used to add Vernier profiling flags, which are site-specific.
- update_toolbox(build_config)#
Set the default compiler flags for the various compiler that are supported.
- Parameters:
build_config (
BuildConfig) – the Fab build configuration instance- Return type:
- get_path_flags(build_config)#
Returns the path-specific flags to be used. TODO #313: Ideally we have only one kind of flag, but as a quick work around we provide this method.
- setup_cray(build_config)#
This method sets up the Cray compiler and linker flags. For now call an external function, since it is expected that this configuration can be very lengthy (once we support compiler modes).
- Parameters:
build_config (
BuildConfig) – the Fab build configuration instance- Return type:
- setup_gnu(build_config)#
This method sets up the Gnu compiler and linker flags. For now call an external function, since it is expected that this configuration can be very lengthy (once we support compiler modes).
- Parameters:
build_config (
BuildConfig) – the Fab build configuration instance- Return type:
- setup_intel_classic(build_config)#
This method sets up the Intel classic compiler and linker flags. For now call an external function, since it is expected that this configuration can be very lengthy (once we support compiler modes).
- Parameters:
build_config (
BuildConfig) – the Fab build configuration instance- Return type:
- setup_intel_llvm(build_config)#
This method sets up the Intel LLVM compiler and linker flags. For now call an external function, since it is expected that this configuration can be very lengthy (once we support compiler modes).
- Parameters:
build_config (
BuildConfig) – the Fab build configuration instance- Return type:
- setup_nvidia(build_config)#
This method sets up the Nvidia compiler and linker flags. For now call an external function, since it is expected that this configuration can be very lengthy (once we support compiler modes).
- Parameters:
build_config (
BuildConfig) – the Fab build configuration instance- Return type: