
CUDA C++ Programming Guide PG-02829-001_v11.5|xvi
I.4.20.8.__global__ functions and function templates....................................................... 334
I.4.20.9.__managed__ and __shared__ variables.............................................................. 335
I.4.20.10.Defaulted functions...............................................................................................335
I.4.21.C++14 Features..............................................................................................................336
I.4.21.1.Functions with deduced return type......................................................................336
I.4.21.2.Variable templates..................................................................................................337
I.4.22.C++17 Features..............................................................................................................337
I.4.22.1.Inline Variable......................................................................................................... 338
I.4.22.2.Structured Binding..................................................................................................338
I.5.Polymorphic Function Wrappers...........................................................................................338
I.6.Extended Lambdas.................................................................................................................340
I.6.1.Extended Lambda Type Traits........................................................................................ 342
I.6.2.Extended Lambda Restrictions.......................................................................................342
I.6.3.Notes on __host__ __device__ lambdas........................................................................351
I.6.4.*this Capture By Value....................................................................................................352
I.6.5.Additional Notes.............................................................................................................. 354
I.7.Code Samples........................................................................................................................ 354
I.7.1.Data Aggregation Class.................................................................................................. 354
I.7.2.Derived Class...................................................................................................................355
I.7.3.Class Template................................................................................................................355
I.7.4.Function Template...........................................................................................................356
I.7.5.Functor Class.................................................................................................................. 356
AppendixJ.Texture Fetching...........................................................................................358
J.1.Nearest-Point Sampling....................................................................................................... 358
J.2.Linear Filtering......................................................................................................................359
J.3.Table Lookup......................................................................................................................... 360
AppendixK.Compute Capabilities................................................................................... 362
K.1.Features and Technical Specifications................................................................................362
K.2.Floating-Point Standard....................................................................................................... 366
K.3.Compute Capability 3.x.........................................................................................................367
K.3.1.Architecture....................................................................................................................367
K.3.2.Global Memory............................................................................................................... 368
K.3.3.Shared Memory..............................................................................................................370
K.4.Compute Capability 5.x.........................................................................................................371
K.4.1.Architecture....................................................................................................................371
K.4.2.Global Memory............................................................................................................... 372
K.4.3.Shared Memory..............................................................................................................372
K.5.Compute Capability 6.x.........................................................................................................376