1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-22 18:57:40 +02:00

Added AVX2 detection to autoconfig script.

Fixed minor SIMD bug in tests.
This commit is contained in:
Francois Coppens 2023-01-30 17:35:11 +01:00
parent 9a779f2a94
commit 2e45927e04
2 changed files with 3 additions and 1 deletions

View File

@ -223,6 +223,8 @@ AC_RUN_IFELSE(
int simd=1;
#if defined(__AVX512F__)
simd=8;
#elif defined(__AVX2__)
simd=4;
#elif defined(__AVX__)
simd=4;
#elif defined(__SSE2__)

View File

@ -418,7 +418,7 @@ The tests for the kernels are executed on datasets that are extracted from a run
#+begin_src c :tangle (eval c_test)
const uint64_t Dim = 21;
const uint64_t LDS = (1 + (Dim) / SIMD_LENGTH) * SIMD_LENGTH;
const uint64_t LDS = (1+(Dim-1)/SIMD_LENGTH)*SIMD_LENGTH;
const double breakdown = 1e-3;
const double tolerance = 1e-3;
double res[441];