taucmdr.cf.platforms module¶
Supported computing platforms.
I’d rather call this module “taucmdr.cf.platform” but that would conflict with platform.
- class taucmdr.cf.platforms.Architecture(*args, **kwargs)[source]¶
Bases:
KeyedRecordInformation about a processor architecture.
- _detect = <taucmdr.cf.platforms.Architecture object>¶
- classmethod detect()[source]¶
Detect the processor architecture we are currently executing on.
Asks Python’s platform module. The detected value is cached.
- Returns:
The matching architecture description.
- Return type:
- Raises:
ConfigurationError – Host architecture not supported.
- class taucmdr.cf.platforms.OperatingSystem(*args, **kwargs)[source]¶
Bases:
KeyedRecordInformation about an operating system.
- _detect = <taucmdr.cf.platforms.OperatingSystem object>¶
- classmethod detect()[source]¶
Detect the operating system we are currently running on.
Mostly relies on Python’s platform module but may also probe environment variables and file systems in cases where the arch isn’t immediately known to Python. These tests may be expensive so the detected value is cached to improve performance.
- Returns:
The matching operating system description.
- Return type:
- Raises:
ConfigurationError – Host operating system not supported.
- class taucmdr.cf.platforms.TauMagic(*args, **kwargs)[source]¶
Bases:
KeyedRecordMaps (architecture, operating system) tuples to TAU’s magic words.
The key is a (Architecture, OperatingSystem) tuple since TAU’s architecture mapping is not one-to-one. For example, TAU uses the magic word ‘craycnl’ for every Cray system, whatever its CPU. TAU Commander needs to know the “real” CPU architecture and operating system so it can chose the right compilers and dependencies for TAU.
- architecture¶
Architecture object for this TAU architecture.
- Type:
- operating_system¶
OperatingSystem object for this TAU architecture.
- Type:
- preferred_families¶
Preferred compiler families indexed by
Knowledgebase.- Type:
- _detect = <taucmdr.cf.platforms.TauMagic object>¶
- classmethod detect()[source]¶
Detect TAU magic for the target we are currently executing on.
Mostly relies on Python’s platform module but may also probe environment variables and file systems in cases where the arch isn’t immediately known to Python. These tests may be expensive so the detected value is cached to improve performance.
- Returns:
The matching taucmdr architecture description.
- Return type:
- Raises:
ConfigurationError – Host architecture or operating system not supported.