Skip to content

Commit

Permalink
Compile for Neoverse N1 on Linaro's Armv8 bots that are on Mt Jade ha…
Browse files Browse the repository at this point in the history
…rdware (#354)

This reflects the host hardware, rather than the limited subset of
features on the Cortex-A57.

```
$ lscpu
Architecture:            aarch64
  CPU op-mode(s):        32-bit, 64-bit
<...>
Vendor ID:               ARM
  Model name:            Neoverse-N1
<...>
    Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
                         asimdrdm lrcpc dcpop asimddp
```

I have also confirmed that the Neoverse V1 (Note: V not N) that is used
for Graviton is a superset of these features.


https://github.com/aws/aws-graviton-getting-started/blob/main/c-c%2B%2B.md#enabling-arm-architecture-specific-features

So if we have to move these builds to Graviton 3 at short notice, this
will still work (Graviton 4 also ok for AArch64, but it drops the
AArch32 mode).
  • Loading branch information
DavidSpickett authored Jan 17, 2025
1 parent 435f656 commit f3973f7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions buildbot/osuosl/master/config/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,11 @@
useTwoStage=True,
runTestSuite=True,
testsuite_flags=[
'--cppflags', '-mcpu=cortex-a57 -fuse-ld=lld',
'--cppflags', '-mcpu=neoverse-n1 -fuse-ld=lld',
'--threads=32', '--build-threads=32'],
extra_cmake_args=[
"-DCMAKE_C_FLAGS='-mcpu=cortex-a57'",
"-DCMAKE_CXX_FLAGS='-mcpu=cortex-a57'",
"-DCMAKE_C_FLAGS='-mcpu=neoverse-n1'",
"-DCMAKE_CXX_FLAGS='-mcpu=neoverse-n1'",
"-DLLVM_ENABLE_LLD=True"])},

## AArch64 run test-suite at -O0 (GlobalISel is now default).
Expand Down Expand Up @@ -425,11 +425,11 @@
useTwoStage=True,
runTestSuite=True,
testsuite_flags=[
'--cppflags', '-mcpu=cortex-a57 -fuse-ld=lld',
'--cppflags', '-mcpu=neoverse-n1 -fuse-ld=lld',
'--threads=32', '--build-threads=32'],
extra_cmake_args=[
"-DCMAKE_C_FLAGS='-mcpu=cortex-a57'",
"-DCMAKE_CXX_FLAGS='-mcpu=cortex-a57'",
"-DCMAKE_C_FLAGS='-mcpu=neoverse-n1'",
"-DCMAKE_CXX_FLAGS='-mcpu=neoverse-n1'",
"-DCOMPILER_RT_BUILD_SANITIZERS=OFF",
"-DLLVM_ENABLE_LLD=True",
# lld tests cause us to hit thread limits
Expand All @@ -452,11 +452,11 @@
'NO_STOP_MESSAGE':'1', # For Fortran test-suite
},
testsuite_flags=[
'--cppflags', '-mcpu=cortex-a57',
'--cppflags', '-mcpu=neoverse-n1',
'--threads=32', '--build-threads=32'],
extra_cmake_args=[
"-DCMAKE_C_FLAGS='-mcpu=cortex-a57'",
"-DCMAKE_CXX_FLAGS='-mcpu=cortex-a57'",
"-DCMAKE_C_FLAGS='-mcpu=neoverse-n1'",
"-DCMAKE_CXX_FLAGS='-mcpu=neoverse-n1'",
"-DLLVM_LIT_ARGS='-v'",
"-DMLIR_INCLUDE_INTEGRATION_TESTS=True",
"-DMLIR_RUN_ARM_SVE_TESTS=True",
Expand Down

0 comments on commit f3973f7

Please sign in to comment.