[llvm-bugs] [Bug 27965] New: KMP_TOPOLOGY_METHOD=cpuinfo not always works
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 1 09:38:42 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27965
Bug ID: 27965
Summary: KMP_TOPOLOGY_METHOD=cpuinfo not always works
Product: OpenMP
Version: unspecified
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: pawel.osmialowski at foss.arm.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
KMP_TOPOLOGY_METHOD=cpuinfo implementation relies on presence of 'physical id'
field for each computation unit listed in /proc/cpuinfo file. Unfortunately,
this field seems to be x86-specific and is not present on many other
architectures. As a result, OpenMP program started with KMP_TOPOLOGY_METHOD
shell variable set to 'cpuinfo' on non-x86 ends like this:
OMP: Error #129: /proc/cpuinfo, line 8: cpuinfo file missing physical id field
- exiting.
Unfortunately, there's no solution portable across architectures for this. As
this occurs usually on embedded systems with single manycore physical CPU on
board, I'd suggest that in case of absence of 'physical id' field, all
computation units should be pinned to single core (i.e. core 0).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160601/050147b0/attachment-0001.html>
More information about the llvm-bugs
mailing list