Skip to content

likwid.cfg

Thomas Roehl edited this page May 18, 2016 · 1 revision

likwid.cfg

The main configuration file for LIKWID is likwid.cfg. It is not required if you don't have a complicated setup because commonly the compiled-in paths are valid after calling make install. There are some cases where you want to place the access daemon somewhere completely different or use another path to the performance groups. The compiled-in path and name for the configuration file can be changed in the config.mk file, the configuration file for building LIKWID. It also contains the name of the configuration file at CFG_FILE_PATH.

Search locations

The configuration module searches for the likwid.cfg file in three places (INSTALLED_PREFIX and CFG_FILE_PATH are defined in config.mk):

  • INSTALLED_PREFIX/CFG_FILE_PATH
  • CFG_FILE_PATH
  • /etc/likwid.cfg

If it is not found in one of those places, it initializes the runtime configuration based on the compiled-in values.

Fields in configuration file

The following fields are valid in the configuration file. The basic syntax is always key = value with one space before and after the =. Lines starting with # are skipped and can be used as comments.

  • topology_file = <PATH_TO_LIKWID_TOPO_CFG> (default: TOPO_FILE_PATH in config.mk)
  • daemon_path = <PATH_TO_LIKWID_ACCESSD> (default: INSTALLED_ACCESSDAEMON in config.mk)
  • groupPath = <PATH_TO_GROUP_FILES> (default: LIKWIDGROUPPATH in config.mk)
  • daemon_mode = daemon or direct (default: ACCESSMODE in config.mk)
  • max_threads = <MAX_THREADS> (default: MAX_NUM_THREADS in config.mk)
  • max_nodes = <MAX_NUMA_NODES> (default: MAX_NUM_NODES in config.mk)

Note: The topology file can be created with likwid-genTopoCfg

Note: The groupPath points not directly to the folder with the performance group files but one level up, so that it contains folders for each architecture

Clone this wiki locally