Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 15fa102

Browse files
committed
Removed the OpenMP mentioning.
1 parent 385938a commit 15fa102

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Simulation/Simulators/SparseSimulator/Native/CMakeLists.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,14 @@ set(CMAKE_MACOSX_RPATH 1)
99
# Main build files
1010
add_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
2313
if (WIN32)
2414
target_compile_options(SparseQuantumSimulator PUBLIC -fdeclspec)
2515
target_compile_definitions(SparseQuantumSimulator PRIVATE BUILD_DLL=1)
2616
endif()
2717
# Try to optimize with gcc
2818
if(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)
3020
endif()
3121

3222
message("Compiler flags: ${CMAKE_CXX_FLAGS_RELEASE}")

0 commit comments

Comments
 (0)