QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Functions
texture.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Texture< OutputType, InputType >
 
class  SpinorTexture< RegType, StoreType, N >
 
class  Spinor< RegType, StoreType, N, write >
 

Functions

template<typename RegType , typename InterType , typename StoreType >
void checkTypes ()
 
template<int M, typename FloatN , typename FixedType >
__device__ float store_norm (float *norm, FloatN x[M], int i)
 

Function Documentation

◆ checkTypes()

template<typename RegType , typename InterType , typename StoreType >
void checkTypes ( )

Checks that the types are set correctly. The precision used in the RegType must match that of the InterType, and the ordering of the InterType must match that of the StoreType. The only exception is when fixed precision is used, in which case, RegType can be a double and InterType can be single (with StoreType short or char).

Parameters
RegTypeRegister type used in kernel
InterTypeIntermediate format - RegType precision with StoreType ordering
StoreTypeType used to store field in memory

Definition at line 94 of file texture.h.

References errorQuda.

◆ store_norm()

template<int M, typename FloatN , typename FixedType >
__device__ float store_norm ( float *  norm,
FloatN  x[M],
int  i 
)
inline

Definition at line 115 of file texture.h.

References quda::max_fabs().

Here is the call graph for this function: