Likwid is a simple to install and use toolsuite of command line applications and a library
for performance oriented programmers. It works for Intel, AMD, ARMv8 and POWER9
processors on the Linux operating system. There is additional support for Nvidia and AMD GPUs.
There is support for ARMv7 and POWER8/9 but there is currently no test machine in
our hands to test them properly.
VERSION=stable
wget http://ftp.fau.de/pub/likwid/likwid-$VERSION.tar.gz
tar -xaf likwid-$VERSION.tar.gz
cd likwid-*
vi config.mk # configure build, e.g. change installation prefix and architecture flags
make
sudo make install # sudo required to install the access daemon with proper permissions
For ARM builds, the COMPILER flag in config.mk needs to changed to GCCARMv8 or ARMCLANG (experimental).
For POWER builds, the COMPILER flag in config.mk needs to changed to GCCPOWER or XLC (experimental).
For Nvidia GPU support, set NVIDIA_INTERFACE in config.mk to true and adjust build-time variables if needed
For AMD GPU support, set ROCM_INTERFACE in config.mk to true and adjust build-time variables if needed
$ likwid-pin -c 0,1,2 ./a.out
[pthread wrapper]
[pthread wrapper] MAIN -> 0
[pthread wrapper] PIN_MASK: 0->1 1->2
[pthread wrapper] SKIP MASK: 0x0
threadid 140566548539136 -> hwthread 1 - OK
threadid 140566540146432 -> hwthread 2 - OK
Number of Threads requested = 3
Thread 0 running on processor 0 ....
Thread 1 running on processor 1 ....
Thread 2 running on processor 2 ....
[...]
likwid-bench
$ likwid-bench -t triad_avx -W N:2GB:3
Warning: Sanitizing vector length to a multiple of the loop stride 16 and thread count 3 from 62500000 elements (500000000 bytes) to 62499984 elements (499999872 bytes)
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Allocate: Process running on hwthread 0 (Domain N) - Vector length 62499984/499999872 Offset 0 Alignment 512
Initialization: Each thread in domain initializes its own stream chunks
--------------------------------------------------------------------------------
LIKWID MICRO BENCHMARK
Test: triad_avx
--------------------------------------------------------------------------------
Using 1 work groups
Using 3 threads
--------------------------------------------------------------------------------
Running without Marker API. Activate Marker API with -m on commandline.
--------------------------------------------------------------------------------
Group: 0 Thread 1 Global Thread 1 running on hwthread 4 - Vector length 20833328 Offset 20833328
Group: 0 Thread 0 Global Thread 0 running on hwthread 0 - Vector length 20833328 Offset 0
Group: 0 Thread 2 Global Thread 2 running on hwthread 1 - Vector length 20833328 Offset 41666656
--------------------------------------------------------------------------------
Cycles: 22977763263
CPU Clock: 4007946861
Cycle Clock: 4007946861
Time: 5.733051e+00 sec
Iterations: 96
Iterations per thread: 32
Inner loop executions: 1302083
Size (Byte): 1999999488
Size per thread: 666666496
Number of Flops: 3999998976
MFlops/s: 697.71
Data volume (Byte): 63999983616
MByte/s: 11163.34
Cycles per update: 11.488885
Cycles per cacheline: 91.911077
Loads per update: 3
Stores per update: 1
Load bytes per element: 24
Store bytes per elem.: 8
Load/store ratio: 3.00
Instructions: 2374999408
UOPs: 3749999040
--------------------------------------------------------------------------------
likwid-mpirun
$ likwid-mpirun -mpi slurm -np 4 -t 2 ./a.out
MPI started
Process with rank 0 running on Node f0846.nhr.fau.de core 0
Process with rank 2 running on Node f0859.nhr.fau.de core 0
Process with rank 3 running on Node f0859.nhr.fau.de core 36
Process with rank 1 running on Node f0846.nhr.fau.de core 36
Enter OpenMP parallel region
Start OpenMP threads
Rank 0 Thread 0 running on Node f0846.nhr.fau.de core 0
Rank 0 Thread 1 running on Node f0846.nhr.fau.de core 1
Rank 1 Thread 0 running on Node f0846.nhr.fau.de core 36
Rank 1 Thread 1 running on Node f0846.nhr.fau.de core 37
Rank 2 Thread 0 running on Node f0859.nhr.fau.de core 0
Rank 2 Thread 1 running on Node f0859.nhr.fau.de core 1
Rank 3 Thread 0 running on Node f0859.nhr.fau.de core 36
Rank 3 Thread 1 running on Node f0859.nhr.fau.de core 37
likwid-powermeter
$ likwid-powermeter
--------------------------------------------------------------------------------
CPU name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU type: Intel Skylake processor
CPU clock: 4.01 GHz
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Runtime: 2.00019 s
Measure for socket 0 on CPU 0
Domain PKG:
Energy consumed: 7.47705 Joules
Power consumed: 3.73817 Watt
Domain PP0:
Energy consumed: 5.42047 Joules
Power consumed: 2.70998 Watt
Domain PP1:
Energy consumed: 0.0872803 Joules
Power consumed: 0.043636 Watt
Domain DRAM:
Energy consumed: 1.02612 Joules
Power consumed: 0.513013 Watt
Domain PLATFORM:
Energy consumed: 0 Joules
Power consumed: 0 Watt
--------------------------------------------------------------------------------
likwid-features
$ likwid-features -c 0 -l
Feature HWThread 0
HW_PREFETCHER on
CL_PREFETCHER on
DCU_PREFETCHER on
IP_PREFETCHER on
FAST_STRINGS on
THERMAL_CONTROL on
PERF_MON on
FERR_MULTIPLEX off
BRANCH_TRACE_STORAGE on
XTPR_MESSAGE off
PEBS on
SPEEDSTEP on
MONITOR on
SPEEDSTEP_LOCK off
CPUID_MAX_VAL off
XD_BIT on
DYN_ACCEL off
TURBO_MODE on
TM2 off
Documentation
For a detailed documentation on the usage of the tools have a look at the
html documentation build with doxygen. Call
We opened a survey at the user mailing list to get a feeling who uses LIKWID and how.
Moreover we would be interested if you are missing a feature or what annoys you when using LIKWID.
Link to the survey:
https://groups.google.com/forum/#!topic/likwid-users/F7TDho3k7ps
Funding
LIKWID development was funded by BMBF Germany under the FEPA project, grant 01IH13009. Since 2017 the development is further funded by BMBF Germany under the SeASiTe project, grant 01IH16012A. In 2022, the EE-HPC project is funded by BMBF Germany in the GreenHPC grant.
Introduction
Likwid is a simple to install and use toolsuite of command line applications and a library for performance oriented programmers. It works for Intel, AMD, ARMv8 and POWER9 processors on the Linux operating system. There is additional support for Nvidia and AMD GPUs. There is support for ARMv7 and POWER8/9 but there is currently no test machine in our hands to test them properly.
LIKWID Playlist (YouTube)
It consists of:
For further information please take a look at the Wiki or contact us via Matrix chat LIKWID General.
Supported architectures
Intel
AMD
ARM
POWER (experimental)
Nvidia GPUs
AMD GPUs
Download, Build and Install
You can get the releases of LIKWID at: http://ftp.fau.de/pub/likwid/
For build and installation hints see INSTALL file or check the build instructions page in the wiki https://github.com/RRZE-HPC/likwid/wiki/Build
For quick install:
For ARM builds, the
COMPILERflag inconfig.mkneeds to changed toGCCARMv8orARMCLANG(experimental). For POWER builds, theCOMPILERflag inconfig.mkneeds to changed toGCCPOWERorXLC(experimental). For Nvidia GPU support, setNVIDIA_INTERFACEinconfig.mktotrueand adjust build-time variables if needed For AMD GPU support, setROCM_INTERFACEinconfig.mktotrueand adjust build-time variables if neededUsage examples
likwid-topologylikwid-perfctrlikwid-pin$ likwid-pin -c 0,1,2 ./a.out [pthread wrapper] [pthread wrapper] MAIN -> 0 [pthread wrapper] PIN_MASK: 0->1 1->2 [pthread wrapper] SKIP MASK: 0x0 threadid 140566548539136 -> hwthread 1 - OK threadid 140566540146432 -> hwthread 2 - OK Number of Threads requested = 3 Thread 0 running on processor 0 .... Thread 1 running on processor 1 .... Thread 2 running on processor 2 .... [...]likwid-benchlikwid-mpirunlikwid-powermeterlikwid-featuresDocumentation
For a detailed documentation on the usage of the tools have a look at the html documentation build with doxygen. Call
make docsor after installation, look at the man pages.
There is also a wiki at the github page: https://github.com/rrze-likwid/likwid/wiki
If you have problems or suggestions please let me know on the likwid mailing list: http://groups.google.com/group/likwid-users
or if it is bug, add an issue at: https://github.com/rrze-likwid/likwid/issues
You can also chat with us through Matrix:
Extras
pip install pylikwid] add LIKWIDSurvey
We opened a survey at the user mailing list to get a feeling who uses LIKWID and how. Moreover we would be interested if you are missing a feature or what annoys you when using LIKWID. Link to the survey: https://groups.google.com/forum/#!topic/likwid-users/F7TDho3k7ps
Funding
LIKWID development was funded by BMBF Germany under the FEPA project, grant 01IH13009. Since 2017 the development is further funded by BMBF Germany under the SeASiTe project, grant 01IH16012A. In 2022, the EE-HPC project is funded by BMBF Germany in the GreenHPC grant.