QMCPACK
ompReductionComplex.hpp
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2020 QMCPACK developers.
6 //
7 // File developed by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
8 //
9 // File created by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 
13 #ifndef QMCPLUSPLUS_OMPREDUCTION_H
14 #define QMCPLUSPLUS_OMPREDUCTION_H
15 
16 #include <complex>
17 #include "config.h"
18 
19 #if !defined(OPENMP_NO_COMPLEX) && !defined(OPENMP_NO_UDR)
20 PRAGMA_OFFLOAD("omp declare reduction(+: std::complex<float>: omp_out += omp_in)")
21 PRAGMA_OFFLOAD("omp declare reduction(+: std::complex<double>: omp_out += omp_in)")
22 #endif
23 
24 #endif // QMCPLUSPLUS_OMPREDUCTION_H