CHROMA
bicgstab_kernels_scalarsite.cc
Go to the documentation of this file.
1 #include "chromabase.h"
2 #include <cstddef>
3 
4 namespace Chroma {
5  namespace BiCGStabKernels {
6 
7  REAL64* _reduction_space;
9 
11  {
12  // Need Space for 5 innerprods, (10 doubles)
13  // and 2 norms ( 2 doubles)
14 
15 #if 0
16  QDPIO::cout << "Initing Reduction Space: There are " << qdpNumThreads() << " threads" << std::endl;
17 #endif
18  _reduction_space_un = new REAL64 [ 12*qdpNumThreads()+16 ];
19  _reduction_space = (REAL64*)((((std::ptrdiff_t)(_reduction_space_un)) + 15L)&(-16L));
20  }
21 
23  {
24  delete [] _reduction_space_un;
25  }
26 
27 
28  REAL64* getNormSpace() {
29  return _reduction_space;
30  }
31 
32 
33  }
34 }
Primary include file for CHROMA library code.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10