Fix post-kubernetes-push-e2e-node-perf-npb-is-test-images problem (arm64)

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2026-01-21 23:03:54 -05:00
parent 0eabb569fb
commit e08030fa5f
2 changed files with 8 additions and 2 deletions

View File

@@ -30,7 +30,13 @@ WORKDIR ./NPB3.3.1/NPB3.3-OMP
RUN sed -i '1i#!/bin/sh' sys/print_header sys/print_instructions
# Create build config based on the architecture and build the workload.
RUN if [ $(arch) != "x86_64" ]; then \
# arm64 requires special flags to avoid relocation overflow with large binaries:
# -mcmodel=large: use large code model for > 4GB address space
# -fno-PIE: disable position-independent executable (incompatible with large model)
# -mno-outline-atomics: inline atomics to avoid linker issues
RUN if [ $(arch) = "aarch64" ]; then \
sed 's/-mcmodel=medium/-mcmodel=large -fno-PIE -mno-outline-atomics/g' config/NAS.samples/make.def.gcc_x86 > config/make.def; \
elif [ $(arch) != "x86_64" ]; then \
sed s/-mcmodel=medium//g config/NAS.samples/make.def.gcc_x86 > config/make.def; \
else \
cp config/NAS.samples/make.def.gcc_x86 config/make.def; \

View File

@@ -1 +1 @@
1.5.0
1.6.0