From 94aa7070ad5217f18c6fe6047de1b14a618c49ee Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Wed, 12 Feb 2025 20:48:09 +0100 Subject: [PATCH] disable openmp on macos for now --- .github/workflows/release.yml | 6 +++++- pyproject.toml | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3c6f9a4fa..43c54dff1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,10 @@ jobs: with: submodules: 'true' - run: pipx install cibuildwheel + - run: echo "OPENMP=OFF" >> $GITHUB_ENV + if: ${{ startsWith(matrix.os, 'macos') }} + - run: echo "OPENMP=ON" >> $GITHUB_ENV + if: ${{ startsWith(matrix.os, 'ubuntu') }} - run: cibuildwheel env: CIBW_BUILD: "${{ matrix.python }}-*" @@ -36,7 +40,7 @@ jobs: CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux_2_28_x86_64" CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux_2_28_aarch64" CIBW_REPAIR_WHEEL_COMMAND: "" - CIBW_ENVIRONMENT: CMEEL_LOG_LEVEL="DEBUG" CMEEL_JOBS="1" CMEEL_TEST_JOBS="1" CMEEL_RUN_TESTS="false" + CIBW_ENVIRONMENT: CMEEL_LOG_LEVEL="DEBUG" CMEEL_JOBS="1" CMEEL_TEST_JOBS="1" CMEEL_RUN_TESTS="false" CMEEL_CMAKE_ARGS="-DBUILD_WITH_OPENMP_SUPPORT=$OPENMP" - uses: actions/upload-artifact@v4 with: name: "artifact-${{ matrix.os }}-${{ matrix.python }}" diff --git a/pyproject.toml b/pyproject.toml index 6fee139eaa..5c237ce2fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,6 @@ upstream = "https://github.com/stack-of-tasks/pinocchio" build-number = 1 configure-args = [ "-DBUILD_WITH_COLLISION_SUPPORT=ON", - "-DBUILD_WITH_OPENMP_SUPPORT=ON", "-DBUILD_WITH_LIBPYTHON=OFF", "-DSUFFIX_SO_VERSION=OFF" ]