QUDA  0.9.0
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  static constexpr int spin_block_size = fineSpin / coarseSpin;
12 
18  __device__ __host__ inline int operator()( int s ) const
19  { return s / (spin_block_size > 0 ? spin_block_size : 1); }
20  };
21 
22 
23 
24 }
static constexpr int spin_block_size
__device__ __host__ int operator()(int s) const