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

Fix compilation issues #682 hwloc 2.x and likwid #685

Merged
merged 5 commits into from
Feb 28, 2020

Conversation

anindex
Copy link
Contributor

@anindex anindex commented Jan 31, 2020

This PR proposes portability fixes referent to issue #682. Tested sucessful combinations are:

  • hwloc 1.11 + likwid 4.3.2
  • hwloc 2.0

I think other versions should also work.

@anindex anindex requested a review from devreal January 31, 2020 14:37
@codecov
Copy link

codecov bot commented Jan 31, 2020

Codecov Report

Merging #685 into development will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           development    #685   +/-   ##
===========================================
  Coverage         85.1%   85.1%           
===========================================
  Files              336     336           
  Lines            24959   24959           
  Branches         11340   11340           
===========================================
  Hits             21242   21242           
  Misses            3693    3693           
  Partials            24      24

hw.max_cpu_mhz = info->clock;
}
if (hw.num_numa < 0) {
hw.num_numa = hw.num_sockets;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to get hw.num_sockets from likwid? Otherwise both will be -1 if hwloc is not available

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked and found how to get numa and socket numbers in likwid :) see my commit below

@devreal devreal merged commit 08316c1 into dash-project:development Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants