From 28b009588b7f1cd52816c7e1a39b3eb92e409423 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sun, 28 Jul 2024 19:45:22 -0600 Subject: [PATCH] testing envs --- .github/workflows/publish.yml | 1 + setup.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index af090dd..4bc08d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,6 +35,7 @@ jobs: - name: Build package env: + CIBW_ENVIRONMENT: "NPY_CPU_DISPATCH=; NPY_DISABLE_SVML=1" CIBW_ARCHS_MACOS: "x86_64 arm64" run: | cibuildwheel --output-dir wheelhouse diff --git a/setup.py b/setup.py index 666c7a9..fcb4e2f 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,10 @@ extra_compile_args.extend(["-march=native", "-mpopcnt"]) extra_link_args.extend(["-march=native", "-mpopcnt"]) +# Log the compile and link args for debugging +print("extra_compile_args:", extra_compile_args) +print("extra_link_args:", extra_link_args) + extra_compile_args.extend(["-O3", "-ffast-math"]) extensions = [ @@ -79,3 +83,4 @@ zip_safe=False, install_requires=["numpy"], ) +