Skip to content

Commit

Permalink
Add option to build without AVX
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeulen committed Feb 3, 2024
1 parent 5348c47 commit 011f60c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ if (WITH_AVX AND NOT APPLE AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
endif (${AVX_FOUND})
else ()
# AVX only on x86_64 and not on Apple
message("BUILD WITHOUT SIMD")
unset(WITH_AVX)
endif()
1 change: 1 addition & 0 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ cmake -G Ninja .. ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DCMAKE_INSTALL_LIBDIR=bin ^
-DCMAKE_INSTALL_PYTHONDIR="%SP_DIR%" ^
-DWITH_AVX=OFF ^
-DCMAKE_CXX_FLAGS="/DBOOST_ALL_DYN_LINK /EHsc /DWIN32 /DMSMPI_NO_DEPRECATE_20 /bigobj /DBOOST_ZLIB_BINARY=kernel32"

if errorlevel 1 exit 1
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX
cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX -DWITH_AVX=OFF
ninja install -k 0 -j 4

# Copy examples
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.14.2" %}
{% set version = "0.14.3" %}

package:
name: imp.bff
Expand Down

0 comments on commit 011f60c

Please sign in to comment.