Skip to content

Commit

Permalink
[misc] Enable AVX2 (memory alignment retro-compatibility) on manylinu…
Browse files Browse the repository at this point in the history
…x wheels.
  • Loading branch information
duburcqa committed Jul 26, 2023
1 parent d668f5d commit ec73f40
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:

env:
BUILD_TYPE: "Release"
CMAKE_CXX_FLAGS: "-DEIGEN_MPL2_ONLY -DEIGEN_MAX_CPP_VER=11"
# Enable AVX2 while enforcing ABI compatibility with pre-compiled dependencies:
# https://eigen.tuxfamily.org/dox-devel/TopicPreprocessorDirectives.html
CMAKE_CXX_FLAGS: "-DEIGEN_MPL2_ONLY -DEIGEN_MAX_CPP_VER=11 -DEIGEN_MAX_ALIGN_BYTES=16 -march=haswell -mtune=generic"

#####################################################################################

Expand Down Expand Up @@ -180,6 +182,10 @@ jobs:
#####################################################################################

- name: Run unit tests on user environment
run: |
cd "${GITHUB_WORKSPACE}/python/jiminy_py/unit_py"
"${PYTHON_EXECUTABLE}" -m unittest discover -v
- name: Build extension module
run: |
mkdir -p "$RootDir/core/examples/external_project/build"
Expand All @@ -190,10 +196,6 @@ jobs:
make install
"$InstallDir/bin/pip_double_pendulum"
- name: Run unit tests on user environment
run: |
cd "${GITHUB_WORKSPACE}/python/jiminy_py/unit_py"
"${PYTHON_EXECUTABLE}" -m unittest discover -v
#####################################################################################

Expand Down

0 comments on commit ec73f40

Please sign in to comment.