arch updated

This commit is contained in:
Nicolas 2025-10-04 22:59:53 +02:00
parent 525d3b4317
commit d6b569e609
2 changed files with 11 additions and 9 deletions

View File

@ -33,6 +33,7 @@ jobs:
needs: [build_stencils] needs: [build_stencils]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
@ -63,7 +64,7 @@ jobs:
run: cibuildwheel --output-dir wheelhouse run: cibuildwheel --output-dir wheelhouse
env: env:
# Multi-arch builds # Multi-arch builds
CIBW_ARCHS_LINUX: "x86_64 aarch64 armv7" # ppc64le s390x CIBW_ARCHS_LINUX: "x86_64 aarch64"
CIBW_ARCHS_MACOS: "universal2" # x86_64 arm64 CIBW_ARCHS_MACOS: "universal2" # x86_64 arm64
CIBW_ARCHS_WINDOWS: "AMD64 x86" CIBW_ARCHS_WINDOWS: "AMD64 x86"

View File

@ -15,28 +15,29 @@ set -v
python src/copapy/generate_stencils.py python src/copapy/generate_stencils.py
SRC=src/copapy/stencils.c SRC=src/copapy/stencils.c
DEST=src/copapy/obj DEST=src/copapy/obj
OPT=O3
mkdir -p $DEST mkdir -p $DEST
# Native x86_64 # Native x86_64
gcc-12 -c $SRC -o $DEST/stencils_x86_64.o gcc-12 -c $SRC -o $DEST/stencils_x86_64_$OPT.o
# ARM64 # ARM64
aarch64-linux-gnu-gcc-12 -O3 -c $SRC -o $DEST/stencils_aarch64.o aarch64-linux-gnu-gcc-12 -$OPT -c $SRC -o $DEST/stencils_aarch64_$OPT.o
# ARMv7 # ARMv7
arm-linux-gnueabihf-gcc-12 -O3 -c $SRC -o $DEST/stencils_armv7.o arm-linux-gnueabihf-gcc-12 -$OPT -c $SRC -o $DEST/stencils_armv7_$OPT.o
# PowerPC64LE # PowerPC64LE
# powerpc64le-linux-gnu-gcc-12 -O3 -c $SRC -o $DEST/stencils_ppc64le.o # powerpc64le-linux-gnu-gcc-12 -$OPT -c $SRC -o $DEST/stencils_ppc64le_$OPT.o
# S390x # S390x
# s390x-linux-gnu-gcc-12 -O3 -c $SRC -o $DEST/stencils_s390x.o # s390x-linux-gnu-gcc-12 -$OPT -c $SRC -o $DEST/stencils_s390x_$OPT.o
# Mips # Mips
mips-linux-gnu-gcc-12 -O3 -c $SRC -o $DEST/stencils_mips.o mips-linux-gnu-gcc-12 -$OPT -c $SRC -o $DEST/stencils_mips_$OPT.o
# RISCV 32 Bit # RISCV 32 Bit
riscv64-linux-gnu-gcc-12 -O3 -march=rv32imac -mabi=ilp32 -c $SRC -o $DEST/stencils_riscv32.o riscv64-linux-gnu-gcc-12 -$OPT -march=rv32imac -mabi=ilp32 -c $SRC -o $DEST/stencils_riscv32_$OPT.o
# RISCV 64 Bit # RISCV 64 Bit
riscv64-linux-gnu-gcc-12 -O3 -c $SRC -o $DEST/stencils_riscv64.o riscv64-linux-gnu-gcc-12 -$OPT -c $SRC -o $DEST/stencils_riscv64_$OPT.o