diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-09 09:35:09 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-09 09:38:58 +0200 |
commit | dbf2936b4af330589aee9782e435ad5dd908a047 (patch) | |
tree | 43c5f221b4292f88325950a5723b444482884f21 | |
parent | 83e6715e39f9496b3043df70b1545e0a6284619f (diff) |
cmake, hash: enable avx2 in debug mode for testing
-rw-r--r-- | hash/xxhash.cpp | 1 | ||||
-rw-r--r-- | userconfig-sthalik@Windows-GNU.cmake | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/hash/xxhash.cpp b/hash/xxhash.cpp index c720465e..c5ece41b 100644 --- a/hash/xxhash.cpp +++ b/hash/xxhash.cpp @@ -19,7 +19,6 @@ CORRADE_ALWAYS_INLINE size_t do_xxhash(const void* __restrict buf, size_t size) { #ifdef __AVX2__ return XXH3_64bits(buf, size); -#error "foo avx" #elif __SSE2__ return (size_t)XXH3_64bits(buf, size); #else diff --git a/userconfig-sthalik@Windows-GNU.cmake b/userconfig-sthalik@Windows-GNU.cmake index 10f07d63..214ec5fd 100644 --- a/userconfig-sthalik@Windows-GNU.cmake +++ b/userconfig-sthalik@Windows-GNU.cmake @@ -1,6 +1,6 @@ sets(STRING CMAKE_C_FLAGS "" - CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb -fstack-protector-all -fstack-reuse=none" + CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb -fstack-protector-all -fstack-reuse=none -mavx2" CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -ftree-vectorize -funsafe-loop-optimizations -march=haswell -mtune=native -mavx2 -flto -fipa-pta -fmerge-all-constants -static" ) |