File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
82
82
#
83
83
# set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE "-O3
84
84
# -DNDEBUG")
85
- set (CMAKE_C_FLAGS_RELEASE "-O3" )
86
- set (CMAKE_CXX_FLAGS_RELEASE "-O3" )
85
+ set (CMAKE_C_FLAGS_RELEASE "-O3 -march=native " )
86
+ set (CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native " )
87
87
88
88
#
89
89
# Common dependencies for examples
@@ -182,6 +182,12 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
182
182
# stl
183
183
add_compile_options (-Wno-error=pass-failed)
184
184
add_compile_options (-Wno-error=unknown-pragmas)
185
+
186
+ if (CMAKE_BUILD_TYPE STREQUAL "Release" )
187
+ add_compile_options (-qopenmp -qopt-streaming-stores=always
188
+ -qopt-zmm-usage=high)
189
+ add_link_options (-qopenmp)
190
+ endif ()
185
191
endif ()
186
192
187
193
if (ENABLE_SYCL)
You can’t perform that action at this time.
0 commit comments