[Openmp-commits] [PATCH] D95306: openmp: stop checking /proc/cpuinfo on arm mac
Toshifumi NISHINAGA via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Jan 24 00:31:34 PST 2021
tnishinaga created this revision.
Herald added subscribers: guansong, kristof.beyls, yaxunl, mgorny.
tnishinaga requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
This patch fixes the following error when building on arm mac.
CMake Error at /Users/tnishinaga/projects/tnishinaga/llvm/llvm-project/openmp/runtime/cmake/LibompGetArchitecture.cmake:74 (file):
file failed to open for reading (No such file or directory):
/proc/cpuinfo
Call Stack (most recent call first):
/Users/tnishinaga/projects/tnishinaga/llvm/llvm-project/openmp/runtime/CMakeLists.txt:73 (libomp_is_aarch64_a64fx)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95306
Files:
openmp/runtime/CMakeLists.txt
Index: openmp/runtime/CMakeLists.txt
===================================================================
--- openmp/runtime/CMakeLists.txt
+++ openmp/runtime/CMakeLists.txt
@@ -69,7 +69,7 @@
# FUJITSU A64FX is a special processor because its cache line size is 256.
# We need to pass this information into kmp_config.h.
-if(LIBOMP_ARCH STREQUAL "aarch64")
+if(LIBOMP_ARCH STREQUAL "aarch64" AND NOT APPLE)
libomp_is_aarch64_a64fx(LIBOMP_DETECT_AARCH64_A64FX)
if (LIBOMP_DETECT_AARCH64_A64FX)
set(LIBOMP_ARCH "aarch64_a64fx")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95306.318814.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210124/a8be97b2/attachment.bin>
More information about the Openmp-commits
mailing list