This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/Simulation/Simulators/SparseSimulator/Native Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -9,24 +9,14 @@ set(CMAKE_MACOSX_RPATH 1)
99# Main build files
1010add_library (SparseQuantumSimulator SHARED factory.cpp capi.cpp)
1111
12- # Set OpenMP if it is available
13- find_package (OpenMP REQUIRED)
14- if (OpenMP_CXX_FOUND)
15- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} " )
16- set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS} " )
17- if (OpenMP_CXX_VERSION_MAJOR GREATER_EQUAL 3)
18- target_compile_definitions (SparseQuantumSimulator PRIVATE DOMP_GE_V3=1)
19- endif ()
20- endif ()
21-
2212# Windows adds a special dllexport command which must be defined
2313if (WIN32 )
2414 target_compile_options (SparseQuantumSimulator PUBLIC -fdeclspec)
2515 target_compile_definitions (SparseQuantumSimulator PRIVATE BUILD_DLL=1)
2616endif ()
2717# Try to optimize with gcc
2818if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
29- target_compile_options (SparseQuantumSimulator PUBLIC -O3 -ftree-vectorize -mavx2 -mfma -fopenmp )
19+ target_compile_options (SparseQuantumSimulator PUBLIC -O3 -ftree-vectorize -mavx2 -mfma)
3020endif ()
3121
3222message ("Compiler flags: ${CMAKE_CXX_FLAGS_RELEASE} " )
You can’t perform that action at this time.
0 commit comments