Skip to content

Commit 86e7258

Browse files
committed
switch to march=native for the cpp build
1 parent cc5453e commit 86e7258

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ============================================================
22
# SISAP 2026 deglib submission — single container.
3-
# Stage 1 builds the deglib_sisap C++ binary (AVX2-only by default; pass
4-
# --build-arg FORCE_AVX2=OFF for a -march=native build). Stage 2 is a thin Python
3+
# Stage 1 builds the deglib_sisap C++ binary (default -march=native; pass
4+
# --build-arg FORCE_AVX2=ON for an AVX2-only build). Stage 2 is a thin Python
55
# runtime that runs submission/search.py, which drives the binary. Both stages
66
# share the same Ubuntu base so the binary's glibc/libstdc++ match the runtime.
77
# Build from the repo root: docker build -t sisap-deglib .
@@ -22,8 +22,8 @@ WORKDIR /build/cpp
2222
# AVX-512 — a -march=native binary would crash there with SIGILL.
2323
# FORCE_AVX2=OFF -> -march=native: best ISA on the build host (only safe when the
2424
# build host and the run host share the same CPU).
25-
# Native build: docker build --build-arg FORCE_AVX2=OFF -t sisap-deglib .
26-
ARG FORCE_AVX2=ON
25+
# Usage (AVX2-only): docker build --build-arg FORCE_AVX2=ON -t sisap-deglib .
26+
ARG FORCE_AVX2=OFF
2727
RUN if [ "$FORCE_AVX2" = "ON" ]; then \
2828
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DFORCE_AVX2=ON ; \
2929
else \

0 commit comments

Comments
 (0)