[Openmp-commits] [PATCH] D93169: [OpenMP] Added the support for cache line size 256 for A64FX

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 7 13:20:03 PST 2021


Hahnfeld added a comment.

In D93169#2485228 <https://reviews.llvm.org/D93169#2485228>, @tianshilei1992 wrote:

> In D93169#2484725 <https://reviews.llvm.org/D93169#2484725>, @Hahnfeld wrote:
>
>> Why is it necessary to write and compile a C program just to parse `/proc/cpuinfo`? Can this be done directly from CMake?
>
> Unfortunately we can't. `CMAKE_SYSTEM_PROCESSOR` just reports `aarch64`.

I understand that the predefined variables don't work, but we can surely parse `/proc/cpuinfo` with native CMake commands instead of compiling a C program, no?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93169/new/

https://reviews.llvm.org/D93169



More information about the Openmp-commits mailing list