-
Notifications
You must be signed in to change notification settings - Fork 230
EnvVariables
Thomas Gruber edited this page Sep 10, 2024
·
8 revisions
Some functionality of the LIKWID library can be changed by setting environment variables. Here is a list of variables used by LIKWID:
-
LIKWID_FORCE
: Enables the overwriting of counters that are detected to be in-use. The environment variable is similar to the-f
/--force
command line switch forlikwid-perfctr
-
LIKWID_NO_ACCESS
: The execution does not require the access layer (access to hardware counters). For example, this variable is set bylikwid-topology
orlikwid-pin
-
LIKWID_PIN
: The comma-separated list contains the CPUs the application threads should be pinned to. Careful, the first CPU in the cpuset must be the last entry because the application is pinned to this CPU per default. -
LIKWID_SILENT
: Disable stdout output caused by the library and the scripts. Some scripts provide the-q
/--quiet
command line switch which provides the same functionality -
LIKWID_SKIP
: Variable content must be a hexmask. This hexmask describes which threads should be skipped while pinning. This function is required to avoid pinning the shepherd threads used by some OpenMP and MPI implementations. The version 4.3.1 introduced an automatic detection of the shepherd threads. In most cases the detection works, but if not, the hexmask overwrites the automatic detection. -
LIKWID_DEBUG
: Verbosity settings for the LIKWID library -
LIKWID_FORCE_SETUP
: Always setup all counters insetupCounters(...)
and don't respect the previous configuration. Without this environment variable set, LIKWID writes the configuration to the register only if the configuration has changed (compared to the lastsetupCounters(...)
call) -
LIKWID_IGNORE_CPUSET
: LIKWID respects the CPUset of the calling process. If you want to measure/run outside of this CPUset, use this environment variable. It will not ignore the CPUset but create a new CPUset internally which containssysconf(_SC_NPROCESSORS_CONF)
hardware threads. -
LIKWID_HWTHREADS
: List of threads given to LIKWID regardless of pinning or no-pinning.
-
LIKWID_FILEPATH
: Filepath for the result file of the MarkerAPI. -
LIKWID_MODE
: Access mode for MarkerAPI -
LIKWID_DEBUG
: Verbosity settings for the LIKWID library -
LIKWID_EVENTS
: Event string or performance group name. Multiple event strings or performance group names can be separated by|
-
LIKWID_THREADS
: The CPUs LIKWID is configured to run on (comma-separated list)
-
LIKWID_PERF_EXECPID
: The variable causes that the PID of the wrapped executable is submitted toperf_event_open
. Consequently, only this process (and its children) are measured throughperf_event
-
LIKWID_PERF_PID
: If you want to measure an already running process, you can put the PID in this variable and LIKWID attaches to the process -
LIKWID_PERF_FLAGS
: Theperf_event_open
system call accepts further flags. LIKWID itself does not set any flags, but if the user wants to, the flags can be put in this variable
-
LIKWID_MPI_CONNECT
: Connection method for Intel MPI. Default isssh
, see option-r
ofmpdboot
or similar
-
HWLOC_FSROOT
: In case you have saved the system topology withhwloc-gather-topology
, you can use this topology for LIKWID. The HWLOC tool creates tarballs, you can use the tarball directly, no need to unpack it first.HWLOC_FSROOT=system.tar.bz2 likwid-topology
shows the topology. Be careful when using this environment variable for anything else than topology lookups, it is not the system topology of the current node.
-
LIKWID_NVMON_FILEPATH
: Filepath for the result file of the Nvidia GPU MarkerAPI. -
LIKWID_NVMON_VERBOSITY
: Verbosity settings for the Nvmon module of the LIKWID library -
LIKWID_NVMON_EVENTS
: Event string or performance group name. Multiple event strings or performance group names can be separated by|
-
LIKWID_NVMON_GPUS
: The Nvidia GPUs LIKWID is configured to run on (comma-separated list)
In 5.2.x - 5.3.x, the environment variables had been named LIKWID_GPUFILEPATH
, LIKWID_GEVENTS
and LIKWID_GPUS
.
-
LIKWID_ROCMON_FILEPATH
: Filepath for the result file of the AMD GPU MarkerAPI. -
LIKWID_ROCMON_VERBOSITY
: Verbosity settings for the Rocmon module of the LIKWID library -
LIKWID_ROCMON_EVENTS
: Event string or performance group name. Multiple event strings or performance group names can be separated by|
-
LIKWID_ROCMON_GPUS
: The AMD GPUs LIKWID is configured to run on (comma-separated list)
-
Applications
-
Config files
-
Daemons
-
Architectures
- Available counter options
- AMD
- Intel
- Intel Atom
- Intel Pentium M
- Intel Core2
- Intel Nehalem
- Intel NehalemEX
- Intel Westmere
- Intel WestmereEX
- Intel Xeon Phi (KNC)
- Intel Silvermont & Airmont
- Intel Goldmont
- Intel SandyBridge
- Intel SandyBridge EP/EN
- Intel IvyBridge
- Intel IvyBridge EP/EN/EX
- Intel Haswell
- Intel Haswell EP/EN/EX
- Intel Broadwell
- Intel Broadwell D
- Intel Broadwell EP
- Intel Skylake
- Intel Coffeelake
- Intel Kabylake
- Intel Xeon Phi (KNL)
- Intel Skylake X
- Intel Cascadelake SP/AP
- Intel Tigerlake
- Intel Icelake
- Intel Icelake X
- Intel SappireRapids
- Intel GraniteRapids
- Intel SierraForrest
- ARM
- POWER
-
Tutorials
-
Miscellaneous
-
Contributing