File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ if(WIN32)
6868else ()
6969 check_cxx_compiler_flag ("-mavx2" HAVE_AVX2 )
7070 check_cxx_compiler_flag ("-mavx512f" HAVE_AVX512 )
71+ check_cxx_compiler_flag ("-mavx10.1-512" HAVE_AVX512_10 )
7172endif ()
7273
7374
@@ -107,7 +108,7 @@ if(NOT CMAKE_APPLE_SILICON_PROCESSOR)
107108 add_subdirectory (pybind_interface/avx2 )
108109 endif ()
109110
110- if (HAVE_AVX512)
111+ if (HAVE_AVX512 OR HAVE_AVX512_10 )
111112 add_subdirectory (pybind_interface/avx512 )
112113 endif ()
113114endif ()
@@ -133,6 +134,7 @@ endif()
133134message (STATUS "${MSG_PREFIX} host has SSE2 = ${HAVE_SSE2} " )
134135message (STATUS "${MSG_PREFIX} host has AVX2 = ${HAVE_AVX2} " )
135136message (STATUS "${MSG_PREFIX} host has AVX512 = ${HAVE_AVX512} " )
137+ message (STATUS "${MSG_PREFIX} host has AVX10.1-512 = ${HAVE_AVX512_10} " )
136138
137139message (STATUS "${MSG_PREFIX} shell $PATH = $ENV{PATH} " )
138140message (STATUS "${MSG_PREFIX} shell $CUQUANTUM_ROOT = $ENV{CUQUANTUM_ROOT} " )
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ project(qsim)
1717
1818IF (WIN32 )
1919 add_compile_options (/arch:AVX512 )
20+ ELSEIF (HAVE_AVX512_10)
21+ add_compile_options (-mavx10.1-512 -mbmi2 )
2022ELSE ()
2123 add_compile_options (-mavx512f -mbmi2 )
2224ENDIF ()
Original file line number Diff line number Diff line change 1515cmake_minimum_required (VERSION 3.31 )
1616project (qsim)
1717
18+ if (NOT WIN32 )
19+ add_compile_options (-march=native )
20+ endif ()
21+
1822INCLUDE (../GetPybind11.cmake )
1923pybind11_add_module (qsim_basic pybind_main_basic.cpp )
2024
You can’t perform that action at this time.
0 commit comments