QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
multigrid_helper.cuh
Go to the documentation of this file.
1 #pragma once
2 
3 namespace quda {
4 
9  template <int fineSpin, int coarseSpin>
10  struct spin_mapper {
11  // fineSpin == 1, coarseSpin == 2 identifies staggered fine -> coarse w/ spin.
12  static constexpr int spin_block_size = (fineSpin == 1 && coarseSpin == 2) ? 0 : fineSpin / coarseSpin;
13 
20  __device__ __host__ constexpr inline int operator()( int s, int parity ) const
21  { return (spin_block_size == 0) ? parity : s / spin_block_size; }
22  };
23 
24 
25 
26 }
__device__ __host__ constexpr int operator()(int s, int parity) const
static constexpr int spin_block_size
__shared__ float s[]
QudaParity parity
Definition: covdev_test.cpp:54