Standalone now uses O2 optimization level instead of O3. Also removed -march=native since this causes issues if the program is compiled on a different architecture than it is run on. Since we do not do heavy arithmetic on the host side and the host code is not performance-critical part of the code, -march-native is not very useful anyways

This commit is contained in:
jpekkila
2019-08-06 14:46:13 +03:00
parent da76fca0dc
commit 5f4246fb42
2 changed files with 2 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ if (BUILD_RT_VISUALIZATION)
endif ()
## Compilation flags
add_compile_options(-march=native -pipe ${OpenMP_CXX_FLAGS})
add_compile_options(-O2 -pipe ${OpenMP_CXX_FLAGS})
add_compile_options(-Wall -Wextra -Werror -Wdouble-promotion -Wfloat-conversion)# -Wshadow)
## Compile and link