1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-14 22:07:05 +01:00

Hadrons: fast A2A matrix contraction kernels

This commit is contained in:
2018-11-06 19:49:09 +00:00
parent 9734e3ee58
commit 88d9922e4f
3 changed files with 234 additions and 31 deletions

View File

@ -39,12 +39,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
#include <omp.h>
// complex reductions
#pragma omp declare reduction(ComplexPlus: Grid::Complex: omp_out += omp_in)
#pragma omp declare reduction(GridVComplexPlus: Grid::vComplex: omp_out += omp_in)
#pragma omp declare reduction(ComplexDPlus: Grid::ComplexD: omp_out += omp_in)
#pragma omp declare reduction(GridVComplexDPlus: Grid::vComplexD: omp_out += omp_in)
#pragma omp declare reduction(ComplexFPlus: Grid::ComplexF: omp_out += omp_in)
#pragma omp declare reduction(GridVComplexFPlus: Grid::vComplexF: omp_out += omp_in)
#pragma omp declare reduction(ComplexPlus:Grid::ComplexD, Grid::vComplexD, Grid::ComplexF, Grid::vComplexF: omp_out += omp_in)
#define PARALLEL_FOR_LOOP _Pragma("omp parallel for schedule(static)")
#define PARALLEL_FOR_LOOP_INTERN _Pragma("omp for schedule(static)")