Skip to content

Commit 7efae47

Browse files
committed
allow non-optimal vectorization
1 parent 93f74af commit 7efae47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ FetchContent_Declare(
3131
GIT_TAG 3.4.1
3232
GIT_SHALLOW TRUE)
3333
FetchContent_MakeAvailable(Eigen)
34+
if(WIN32 AND ${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL ARM64)
35+
message(STATUS "Enabling non-optimal vectorization in Eigen to avoid alignment issues")
36+
add_definitions("-DEIGEN_MAX_STATIC_ALIGN_BYTES=0")
37+
endif()
3438

3539
option(BUILD_MQT_CORE_BINDINGS "Build the MQT Core Python bindings" OFF)
3640
if(BUILD_MQT_CORE_BINDINGS)

0 commit comments

Comments
 (0)