www.nvidia.com
CUDA C Programming Guide PG-02829-001_v5.0|v
B.2.1 __device__.......................................................................................... 84
B.2.2 __constant__....................................................................................... 84
B.2.3 __shared__.......................................................................................... 84
B.2.4 __restrict__......................................................................................... 85
B.3Built-in Vector Types................................................................................... 86
B.3.1char, short, int, long, longlong, float, double................................................ 86
B.3.2 dim3..................................................................................................88
B.4Built-in Variables........................................................................................ 88
B.4.1 gridDim.............................................................................................. 88
B.4.2 blockIdx............................................................................................. 88
B.4.3 blockDim............................................................................................ 88
B.4.4 threadIdx............................................................................................ 88
B.4.5 warpSize.............................................................................................88
B.5Memory Fence Functions.............................................................................. 88
B.6Synchronization Functions............................................................................. 90
B.7Mathematical Functions................................................................................91
B.8Texture Functions....................................................................................... 91
B.8.1Texture Object API................................................................................ 91
B.8.1.1tex1Dfetch()................................................................................... 91
B.8.1.2 tex1D()......................................................................................... 91
B.8.1.3 tex2D()......................................................................................... 91
B.8.1.4 tex3D()......................................................................................... 92
B.8.1.5tex1Dlayered()................................................................................ 92
B.8.1.6tex2Dlayered()................................................................................ 92
B.8.1.7texCubemap()................................................................................. 92
B.8.1.8 texCubemapLayered()....................................................................... 92
B.8.1.9tex2Dgather()................................................................................. 92
B.8.2Texture Reference API............................................................................ 93
B.8.2.1tex1Dfetch()................................................................................... 93
B.8.2.2 tex1D()......................................................................................... 93
B.8.2.3 tex2D()......................................................................................... 94
B.8.2.4 tex3D()......................................................................................... 94
B.8.2.5tex1Dlayered()................................................................................ 94
B.8.2.6tex2Dlayered()................................................................................ 94
B.8.2.7texCubemap()................................................................................. 94
B.8.2.8 texCubemapLayered()....................................................................... 94
B.8.2.9tex2Dgather()................................................................................. 95
B.9Surface Functions....................................................................................... 95
B.9.1Surface Object API................................................................................ 95
B.9.1.1surf1Dread()................................................................................... 95
B.9.1.2 surf1Dwrite.................................................................................... 95
B.9.1.3surf2Dread()................................................................................... 95
B.9.1.4surf2Dwrite().................................................................................. 96