Part 3 : Use with CMake
When the PhoenixHPCProxy projet is found :
1 |
find_package(PhoenixHPCProxy REQUIRED) |
Two functions can be used :
- phoenix_hpc_proxy_call : to only call phoenix_hpc_proxy and compile the proxy library on the fly
- phoenix_hpc_proxy_full : to create all libraries for all architectures, call phoenix_hpc_proxy and compile the proxy library on the fly. All generated architectures are :
- anyarch : library to be used for any architectures (kind of security if the other architectures are not found)
- sse : library to be used for sse architecture
- sse2 : library to be used for sse2 architecture
- ssse3 : library to be used for ssse3 architecture
- sse4.1 : library to be used for sse4.1 architecture
- sse4.2 : library to be used for sse4.2 architecture
- avx : library to be used for avx architecture
- avx2 : library to be used for avx2 architecture
- avx512f : library to be used for avx512f architecture
- avx512wb : library to be used for avx512wb architecture