Project

General

Profile

Task #2632

make sure cmake defines proper hwloc versionc with cross-compilation enabled

Added by Kevin Boyd about 1 year ago. Updated 11 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
Difficulty:
uncategorized
Close

Description

With CMAKE_CROSSCOMPILING enabled (or if the default method of calling 'hwloc-info --version' fails), cmake falls back to inferring the hwloc version from HWLOC_API_VERSION in the header, which can be different than the actual hwloc version (see #2591) .

hwloc 2.0.2 and on will ship with a HWLOC_VERSION macro which will accurately report the actual version.

History

#1 Updated by Paul Bauer 12 months ago

Kevin, has there been any progress here?

#2 Updated by Kevin Boyd 12 months ago

Paul Bauer wrote:

Kevin, has there been any progress here?

I wasn't sure how to go about fixing it. The hwloc headers before 2.0.2 don't include a version variable, so we infer it at build time from running hwloc-info --version.

#3 Updated by Paul Bauer 11 months ago

  • Target version changed from 2018.4 to 2019

I guess this then should be continued in 2019 instead.

#4 Updated by Paul Bauer 11 months ago

  • Tracker changed from Bug to Task
  • Subject changed from cmake can define incorrect hwloc version with cross-compilation enabled to make sure cmake defines proper hwloc versionc with cross-compilation enabled
  • Target version changed from 2019 to future
  • Affected version deleted (2018.3)

Also available in: Atom PDF