Skip to content

Conversation

@ekouts
Copy link
Contributor

@ekouts ekouts commented Sep 30, 2021

Closes #2202 .

In the sysctl output from @rsarm's laptop I could not find the information for the cache associativity. So in order to fix the bug in the unittest I made the sysctl command more generic (to avoid the SpawnedProcessError exception).

We don't give a warning for every item of the processor information that we cannot detect because it would unnecessarily complicate the --detect-host-topology option, since it's supposed to print only the json object.

@ekouts ekouts added this to the ReFrame Sprint 21.09.2 milestone Sep 30, 2021
@ekouts ekouts requested review from rsarm, teojgo and vkarak September 30, 2021 08:31
@ekouts ekouts self-assigned this Sep 30, 2021
@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2021

Codecov Report

Merging #2206 (422f230) into master (455e59b) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2206   +/-   ##
=======================================
  Coverage   85.54%   85.54%           
=======================================
  Files          55       55           
  Lines        9746     9746           
=======================================
  Hits         8337     8337           
  Misses       1409     1409           
Impacted Files Coverage Δ
reframe/utility/cpuinfo.py 69.10% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 455e59b...422f230. Read the comment docs.

@vkarak vkarak changed the title [bugfix] Fix error when cache associativity information is not available in sysctl [bugfix] Fix error when cache associativity information is not available by sysctl Sep 30, 2021
@vkarak vkarak merged commit 889d6e0 into reframe-hpc:master Sep 30, 2021
@ekouts ekouts deleted the bugfix/M1_cache_associativity branch October 1, 2021 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unittest for the autodetection fails when running on a macbook with the M1 apple chip

5 participants