1 GPU Workshop Sample Code {#mainpage}
2 ========================
4 This
package contains sample code for use in the GPU workshop.
5 The code is described in more detail in the accompanying slides.
10 This sample queries the properties of the CUDA devices present in the system.
16 A simple example of a kernel to add two vectors elementwise
20 simpleMath/simpleMath.cu
22 The example demonstrates several kernels that do simple math operations
26 mappedMemory/mappedMemory.cu
28 This sample demonstrates the use of mapped variables.
32 deviceQualifier/deviceQualifier.cu
34 This sample demonstrates the `__device__` qualifier.
40 Compute blockwise sums of a vector x of length n.
46 Compute column sums of a M x N array. Each column
47 is reduced by a single thread block.
53 Compute column sums of a M x N array. Each column
54 is reduced by several thread blocks.
58 simpleRandom/simpleRandom.cu
68 simpleThrust/simpleThrust.cu
72 simpleArrayfire/simplearrayfire.cu
79 * include/mycuda_reduce.h
80 * include/mycuda_scan.h
81 * include/mycuda_random.h