QUDA v0.4.0
A library for QCD on GPUs
Classes | Defines | Functions | Variables
quda/include/texture.h File Reference
#include <convert.h>

Go to the source code of this file.

Classes

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

Defines

#define MAX_TEXELS   (1<<27)
#define REG_LENGTH   (sizeof(RegType) / sizeof(((RegType*)0)->x))

Functions

__inline__ __device__ double2 fetch_double2 (texture< int4, 1 > t, int i)
template<typename RegType , typename InterType , typename StoreType >
void checkTypes ()
template<typename OutputType , typename InputType , int M>
__device__ void saveHalf (OutputType *x_o, float *norm, InputType x_i[M], int i, int stride)

Variables

texture< short2,
1, cudaReadModeNormalizedFloat > 
tex_short2_0
texture< short2,
1, cudaReadModeNormalizedFloat > 
tex_short2_1
texture< short2,
1, cudaReadModeNormalizedFloat > 
tex_short2_2
texture< short2,
1, cudaReadModeNormalizedFloat > 
tex_short2_3
texture< short2,
1, cudaReadModeNormalizedFloat > 
tex_short2_4
texture< short4,
1, cudaReadModeNormalizedFloat > 
tex_short4_0
texture< short4,
1, cudaReadModeNormalizedFloat > 
tex_short4_1
texture< short4,
1, cudaReadModeNormalizedFloat > 
tex_short4_2
texture< short4,
1, cudaReadModeNormalizedFloat > 
tex_short4_3
texture< short4,
1, cudaReadModeNormalizedFloat > 
tex_short4_4
texture< float, 1 > tex_float_0
texture< float, 1 > tex_float_1
texture< float, 1 > tex_float_2
texture< float, 1 > tex_float_3
texture< float, 1 > tex_float_4
texture< float2, 1 > tex_float2_0
texture< float2, 1 > tex_float2_1
texture< float2, 1 > tex_float2_2
texture< float2, 1 > tex_float2_3
texture< float2, 1 > tex_float2_4
texture< float4, 1 > tex_float4_0
texture< float4, 1 > tex_float4_1
texture< float4, 1 > tex_float4_2
texture< float4, 1 > tex_float4_3
texture< float4, 1 > tex_float4_4
texture< int4, 1 > tex_int4_0
texture< int4, 1 > tex_int4_1
texture< int4, 1 > tex_int4_2
texture< int4, 1 > tex_int4_3
texture< int4, 1 > tex_int4_4

Define Documentation

#define MAX_TEXELS   (1<<27)

Definition at line 55 of file texture.h.

#define REG_LENGTH   (sizeof(RegType) / sizeof(((RegType*)0)->x))

Definition at line 350 of file texture.h.


Function Documentation

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 half precision is used, in which case, RegType can be a double and InterType can be single (with StoreType short).

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

Definition at line 326 of file texture.h.

__inline__ __device__ double2 fetch_double2 ( texture< int4, 1 >  t,
int  i 
)

Definition at line 12 of file texture.h.

template<typename OutputType , typename InputType , int M>
__device__ void saveHalf ( OutputType *  x_o,
float *  norm,
InputType  x_i[M],
int  i,
int  stride 
) [inline]

Definition at line 520 of file texture.h.


Variable Documentation

texture<float2,1> tex_float2_0

Definition at line 37 of file texture.h.

texture<float2,1> tex_float2_1

Definition at line 38 of file texture.h.

texture<float2,1> tex_float2_2

Definition at line 39 of file texture.h.

texture<float2,1> tex_float2_3

Definition at line 40 of file texture.h.

texture<float2,1> tex_float2_4

Definition at line 41 of file texture.h.

texture<float4,1> tex_float4_0

Definition at line 43 of file texture.h.

texture<float4,1> tex_float4_1

Definition at line 44 of file texture.h.

texture<float4,1> tex_float4_2

Definition at line 45 of file texture.h.

texture<float4,1> tex_float4_3

Definition at line 46 of file texture.h.

texture<float4,1> tex_float4_4

Definition at line 47 of file texture.h.

texture<float,1> tex_float_0

Definition at line 31 of file texture.h.

texture<float,1> tex_float_1

Definition at line 32 of file texture.h.

texture<float,1> tex_float_2

Definition at line 33 of file texture.h.

texture<float,1> tex_float_3

Definition at line 34 of file texture.h.

texture<float,1> tex_float_4

Definition at line 35 of file texture.h.

texture<int4,1> tex_int4_0

Definition at line 49 of file texture.h.

texture<int4,1> tex_int4_1

Definition at line 50 of file texture.h.

texture<int4,1> tex_int4_2

Definition at line 51 of file texture.h.

texture<int4,1> tex_int4_3

Definition at line 52 of file texture.h.

texture<int4,1> tex_int4_4

Definition at line 53 of file texture.h.

texture<short2,1,cudaReadModeNormalizedFloat> tex_short2_0

Definition at line 19 of file texture.h.

texture<short2,1,cudaReadModeNormalizedFloat> tex_short2_1

Definition at line 20 of file texture.h.

texture<short2,1,cudaReadModeNormalizedFloat> tex_short2_2

Definition at line 21 of file texture.h.

texture<short2,1,cudaReadModeNormalizedFloat> tex_short2_3

Definition at line 22 of file texture.h.

texture<short2,1,cudaReadModeNormalizedFloat> tex_short2_4

Definition at line 23 of file texture.h.

texture<short4,1,cudaReadModeNormalizedFloat> tex_short4_0

Definition at line 25 of file texture.h.

texture<short4,1,cudaReadModeNormalizedFloat> tex_short4_1

Definition at line 26 of file texture.h.

texture<short4,1,cudaReadModeNormalizedFloat> tex_short4_2

Definition at line 27 of file texture.h.

texture<short4,1,cudaReadModeNormalizedFloat> tex_short4_3

Definition at line 28 of file texture.h.

texture<short4,1,cudaReadModeNormalizedFloat> tex_short4_4

Definition at line 29 of file texture.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines