1 #ifndef _QUDA_INTERNAL_H 2 #define _QUDA_INTERNAL_H 9 #if ((defined(QMP_COMMS) || defined(MPI_COMMS)) && !defined(MULTI_GPU)) 10 #error "MULTI_GPU must be enabled to use MPI or QMP" 13 #if (!defined(QMP_COMMS) && !defined(MPI_COMMS) && defined(MULTI_GPU)) 14 #error "MPI or QMP must be enabled to use MULTI_GPU" 21 #define TEX_ALIGN_REQ (512*2) //Fermi, factor 2 comes from even/odd 22 #define ALIGNMENT_ADJUST(n) ( (n+TEX_ALIGN_REQ-1)/TEX_ALIGN_REQ*TEX_ALIGN_REQ) 53 template<
typename T >
struct fixedMaxValue{
static constexpr
float value = 0.0f; };
54 template<>
struct fixedMaxValue<short>{
static constexpr
float value = 32767.0f; };
55 template<>
struct fixedMaxValue<short2>{
static constexpr
float value = 32767.0f; };
56 template<>
struct fixedMaxValue<short4>{
static constexpr
float value = 32767.0f; };
57 template<>
struct fixedMaxValue<char>{
static constexpr
float value = 127.0f; };
58 template<>
struct fixedMaxValue<char2>{
static constexpr
float value = 127.0f; };
59 template<>
struct fixedMaxValue<char4>{
static constexpr
float value = 127.0f; };
62 static constexpr
float value = 3.402823e+38f;
65 static constexpr
float value = 3.0518509476e-5f;
68 static constexpr
float value = 3.0518509476e-5f;
71 static constexpr
float value = 3.0518509476e-5f;
74 static constexpr
float value = 7.874015748031e-3f;
77 static constexpr
float value = 7.874015748031e-3f;
80 static constexpr
float value = 7.874015748031e-3f;
96 #endif // _QUDA_INTERNAL_H
cudaDeviceProp deviceProp
QudaInvertParam inv_param
bool canReuseResidentGauge(QudaInvertParam *inv_param)
std::complex< double > Complex
Main header file for the QUDA library.