www.nvidia.com
CUDA C Programming Guide PG-02829-001_v9.1|v
B.1.4.__noinline__ and __forceinline__............................................................... 93
B.2.Variable Memory Space Specifiers....................................................................93
B.2.1. __device__.......................................................................................... 94
B.2.2.__constant__........................................................................................94
B.2.3. __shared__.......................................................................................... 94
B.2.4.__managed__....................................................................................... 95
B.2.5. __restrict__......................................................................................... 95
B.3.Built-in Vector Types................................................................................... 97
B.3.1.char, short, int, long, longlong, float, double................................................ 97
B.3.2. dim3.................................................................................................. 98
B.4.Built-in Variables........................................................................................ 98
B.4.1. gridDim.............................................................................................. 98
B.4.2. blockIdx..............................................................................................98
B.4.3. blockDim.............................................................................................98
B.4.4. threadIdx............................................................................................ 98
B.4.5. warpSize............................................................................................. 99
B.5.Memory Fence Functions...............................................................................99
B.6.Synchronization Functions............................................................................ 101
B.7.Mathematical Functions...............................................................................103
B.8.Texture Functions...................................................................................... 103
B.8.1.Texture Object API............................................................................... 103
B.8.1.1.tex1Dfetch()..................................................................................103
B.8.1.2. tex1D()........................................................................................ 103
B.8.1.3.tex1DLod()....................................................................................103
B.8.1.4.tex1DGrad().................................................................................. 103
B.8.1.5. tex2D()........................................................................................ 104
B.8.1.6.tex2DLod()....................................................................................104
B.8.1.7.tex2DGrad().................................................................................. 104
B.8.1.8. tex3D()........................................................................................ 104
B.8.1.9.tex3DLod()....................................................................................104
B.8.1.10.tex3DGrad().................................................................................104
B.8.1.11.tex1DLayered()............................................................................. 105
B.8.1.12.tex1DLayeredLod().........................................................................105
B.8.1.13.tex1DLayeredGrad()....................................................................... 105
B.8.1.14.tex2DLayered()............................................................................. 105
B.8.1.15.tex2DLayeredLod().........................................................................105
B.8.1.16.tex2DLayeredGrad()....................................................................... 105
B.8.1.17.texCubemap().............................................................................. 106
B.8.1.18.texCubemapLod().......................................................................... 106
B.8.1.19.texCubemapLayered().....................................................................106
B.8.1.20.texCubemapLayeredLod()................................................................ 106
B.8.1.21.tex2Dgather()...............................................................................106
B.8.2.Texture Reference API........................................................................... 107