Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] likwid-powermeter fails when a socket domain does not contain any hardware thread #501

Closed
TomTheBear opened this issue Dec 1, 2022 · 0 comments
Labels

Comments

@TomTheBear
Copy link
Member

Describe the bug

When running likwid-powermeter in a cpuset limited environment (e.g. SLURM jobs) and the cpuset does not contain hardware threads in all socket domains, it fails.

To Reproduce

  • LIKWID command and/or API usage

    $ likwid-pin -c N -p
    0,40,1,41,2,42,5,45,6,46,10,50,11,51,12,52,15,55,16,56,3,43,4,44,7,47,8,48,9,49,13,53,14,54,17,57,18,58,19,59,20,60,21,61,22,62,25,65,26,66,30,70,31,71,32,72,35,75,36,76,23,63,24,64,27,67,28,68,29,69,33,73,34,74,37,77,38,78,39,79
    
    $ taskset -c 0-9 likwid-powermeter -i   
    WARN: Selected affinity domain S0 has only 10 hardware threads, but selection string evaluates to 20 threads.
        This results in multiple threads on the same hardware thread.
    /tmp/bin/likwid-lua:  /tmp/bin/likwid-powermeter:172: attempt to index a nil value (field '?')
    stack traceback:
       /tmp/bin/likwid-powermeter:172: in main chunk
      [C]: in ?
    
  • LIKWID version and download source (Github, FTP, package manger, ...)
    likwid-powermeter -- Version 5.2.2 (commit: 233ab943543480cd46058b34616c174198ba0459)

  • Operating system
    Ubuntu 20.04.5 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant