omnitrace-avail generate config (#69)
* Config updates
- See PR #69 for details
- change type of OMNITRACE_DL_VERBOSE
- add "deprecated" category to OMNITRACE_ROCM_SMI_DEVICES
- reduce size of perfetto shared memory size hint
- deprecate OMNITRACE_OUTPUT_FILE in favor of OMNITRACE_PERFETTO_FILE
- set papi event choices
- read config file after reading command line
- fix update of OMNITRACE_DL_VERBOSE
- mark several settings as hidden
- timemory update support hidden attribute for settings
- rework get_perfetto_output_filename()
- Hide settings from not available backends
* Rework omnitrace-avail to support dumping configurations
* Overwrite query, tests, output flag
- Support using -O flag when dumping config
- Support checking before overwriting existing config
- Support --force to overwrite existing config
- Fix get_component_info not including omnitrace components
- Testing for dumping config
* Update documentation on omnitrace-avail
* Fix issue with timemory format + "/__w/"
* Update output prefix keys docs
* Rename --dump-config to --generate-config
* Hide MPI related options
- OMNITRACE_PERFETTO_COMBINE_TRACES and OMNITRACE_COLLAPSE_PROCESSES are hidden w/o MPI support
[ROCm/rocprofiler-systems commit: 1877ebf47b]
This commit is contained in:
committed by
GitHub
parent
d622135c92
commit
cb0b57b8e6
@@ -259,27 +259,33 @@ If you are ever doing scaling studies and specifying options via the command lin
|
||||
use a common `OMNITRACE_OUTPUT_PATH`, disable `OMNITRACE_TIME_OUTPUT`,
|
||||
set `OMNITRACE_OUTPUT_PREFIX="%argt%-"` and let omnitrace cleanly organize the output.
|
||||
|
||||
| String | Encoding |
|
||||
|-----------------|-----------------------------------------------------------------------------------------------|
|
||||
| `%arg<N>%` | Command line argument at position `<N>` (zero indexed), e.g. `%arg0%` for first argument. |
|
||||
| `%arg<N>_hash%` | MD5 sum of `%arg<N>%` |
|
||||
| `%argv%` | Entire command-line condensed into a single string |
|
||||
| `%argv_hash%` | MD5 sum of `%argv%` |
|
||||
| `%argt%` | Similar to `%argv%` except basename of first command line argument |
|
||||
| `%argt_hash%` | MD5 sum if `%argt%` |
|
||||
| `%args%` | All command line arguments condensed into a single string |
|
||||
| `%args_hash%` | MD5 sum of `%args%` |
|
||||
| `%tag%` | Basename of first command line argument |
|
||||
| `%tag_hash%` | MD5 sum of `%tag%` |
|
||||
| `%pid%` | Process identifier (i.e. `getpid()`) |
|
||||
| `%job%` | Value of `SLURM_JOB_ID` environment variable if exists, else `0` |
|
||||
| `%rank%` | Value of `SLURM_PROCID` environment variable if exists, else `MPI_Comm_rank` (or `0` non-mpi) |
|
||||
| `%size%` | `MPI_Comm_size` or `1` if non-mpi |
|
||||
| `%m` | Shorthand for `%argt_hash%` |
|
||||
| `%p` | Shorthand for `%pid%` |
|
||||
| `%j` | Shorthand for `%job%` |
|
||||
| `%r` | Shorthand for `%rank%` |
|
||||
| `%s` | Shorthand for `%size%` |
|
||||
| String | Encoding |
|
||||
|-----------------|--------------------------------------------------------------------------------------------------------------------|
|
||||
| `%arg<N>%` | Command line argument at position `<N>` (zero indexed), e.g. `%arg0%` for first argument. |
|
||||
| `%arg<N>_hash%` | MD5 sum of `%arg<N>%` |
|
||||
| `%argv%` | Entire command-line condensed into a single string |
|
||||
| `%argv_hash%` | MD5 sum of `%argv%` |
|
||||
| `%argt%` | Similar to `%argv%` except basename of first command line argument |
|
||||
| `%argt_hash%` | MD5 sum if `%argt%` |
|
||||
| `%args%` | All command line arguments condensed into a single string |
|
||||
| `%args_hash%` | MD5 sum of `%args%` |
|
||||
| `%tag%` | Basename of first command line argument |
|
||||
| `%tag_hash%` | MD5 sum of `%tag%` |
|
||||
| `%pid%` | Process identifier (i.e. `getpid()`) |
|
||||
| `%ppid%` | Parent process identifier (i.e. `getppid()`) |
|
||||
| `%job%` | Value of `SLURM_JOB_ID` environment variable if exists, else `0` |
|
||||
| `%rank%` | Value of `SLURM_PROCID` environment variable if exists, else `MPI_Comm_rank` (or `0` non-mpi) |
|
||||
| `%size%` | `MPI_Comm_size` or `1` if non-mpi |
|
||||
| `%launch_time%` | Launch date and time (uses `OMNITRACE_TIME_FORMAT`) |
|
||||
| `%env{NAME}%` | Value of environment variable `NAME` (i.e. `getenv(NAME)`) |
|
||||
| `%cfg{NAME}%` | Value of configuration variable `NAME` (e.g. `%cfg{OMNITRACE_SAMPLING_FREQ}%` would resolve to sampling frequency) |
|
||||
| `$env{NAME}` | Alternative syntax to `%env{NAME}%` |
|
||||
| `$cfg{NAME}` | Alternative syntax to `%cfg{NAME}%` |
|
||||
| `%m` | Shorthand for `%argt_hash%` |
|
||||
| `%p` | Shorthand for `%pid%` |
|
||||
| `%j` | Shorthand for `%job%` |
|
||||
| `%r` | Shorthand for `%rank%` |
|
||||
| `%s` | Shorthand for `%size%` |
|
||||
|
||||
> ***Any output prefix key which contain a `/` will have the `/` characters***
|
||||
> ***replaced with `_` and any leading underscores will be stripped, e.g. if `%arg0%` is `/usr/bin/foo`, this***
|
||||
|
||||
Reference in New Issue
Block a user