Skip to content

Commit aaa4618

Browse files
authored
readme: fix + update cmake example
1 parent b19d3b4 commit aaa4618

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ find_package(proxsuite REQUIRED)
8888
set(CMAKE_CXX_STANDARD 17) # set(CMAKE_CXX_STANDARD 14) will work too
8989
9090
add_executable(example example.cpp)
91-
target_link_libraries(example PUBLIC proxsuite::proxsuite`)
91+
target_link_libraries(example PUBLIC proxsuite::proxsuite)
92+
93+
# Vectorization support via SIMDE and activated by the compilation options '-march=native' or `-mavx2 -mavx512f`
94+
add_executable(example_with_full_vectorization_support example.cpp)
95+
target_link_libraries(example_with_full_vectorization_support PUBLIC proxsuite::proxsuite-vectorized)
96+
target_compile_options(example_with_full_vectorization_support PUBLIC "-march=native")
9297
```
9398
If you have compiled ProxSuite with the vectorization support, you might also use the CMake target `proxsuite::proxsuite-vectorized` to also link against SIMDE.
9499
Don't forget to use `-march=native` for getting the best performance.

0 commit comments

Comments
 (0)