Skip to content

Commit f518df6

Browse files
committed
Add -march=native for the basic version
This can enable additional optimizations without requiring specific avx/sse/etc. instructions.
1 parent 86c2ac8 commit f518df6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pybind_interface/basic/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
cmake_minimum_required(VERSION 3.31)
1616
project(qsim)
1717

18+
if(NOT WIN32)
19+
add_compile_options(-march=native)
20+
endif()
21+
1822
INCLUDE(../GetPybind11.cmake)
1923
pybind11_add_module(qsim_basic pybind_main_basic.cpp)
2024

0 commit comments

Comments
 (0)