RRZE-HPC / likwid

Performance monitoring and benchmarking suite
https://hpc.fau.de/research/tools/likwid/
GNU General Public License v3.0
1.63k stars 226 forks source link

[BUG] lua_likwid_rocmSupported defined twice with ROCM_INTERACE=true #595

Closed okkevaneck closed 7 months ago

okkevaneck commented 7 months ago

Describe the bug When building Likwid with ROCm support, the function static int lua_likwid_getRocmSupported(lua_State *L) is defined twice in luawid.c, namely on lines 3036 and 3700.

To Reproduce

  1. Set ROCM_INTERFACE to true in config.mk
  2. Export ROCM_HOME variable: export ROCM_HOME=/opt/rocm
  3. make

To Reproduce with a LIKWID command Please supply the output of the command with -V 3 added to the command:

Please supply the output of the command with -d added to the command line:

Additional context I am running on a supercomputer with the Cray environment. Not sure if this impacts anything, but ROCM_HOME is not set by default after loading the rocm module for example.

okkevaneck commented 7 months ago

Wrong type of issue, should be a "Cannot build"..