GPU Workshop Sample Code
 All Data Structures Namespaces Files Functions Variables Macros Pages
README.md
Go to the documentation of this file.
1 GPU Workshop Sample Code {#mainpage}
2 ========================
3 
4 This package contains sample code for use in the GPU workshop.
5 The code is described in more detail in the accompanying slides.
6 
7 #### DevQuery
8 devQuery/devQuery.cu
9 
10 This sample queries the properties of the CUDA devices present in the system.
11 
12 
13 #### VecAdd
14 vecAdd/vecAdd.cu
15 
16 A simple example of a kernel to add two vectors elementwise
17 
18 
19 #### SimpleMath
20 simpleMath/simpleMath.cu
21 
22 The example demonstrates several kernels that do simple math operations
23 
24 
25 #### MappedMemory
26 mappedMemory/mappedMemory.cu
27 
28 This sample demonstrates the use of mapped variables.
29 
30 
31 #### DeviceQualifier
32 deviceQualifier/deviceQualifier.cu
33 
34 This sample demonstrates the `__device__` qualifier.
35 
36 
37 #### Reduce1
38 reduce1/reduce1.cu
39 
40 Compute blockwise sums of a vector x of length n.
41 
42 
43 #### Reduce2
44 reduce2/reduce2.cu
45 
46 Compute column sums of a M x N array. Each column
47 is reduced by a single thread block.
48 
49 
50 #### Reduce3
51 reduce3/reduce3.cu
52 
53 Compute column sums of a M x N array. Each column
54 is reduced by several thread blocks.
55 
56 
57 #### SimpleRandom
58 simpleRandom/simpleRandom.cu
59 
60 
61 #### SimpleMatlab
62 
63 
64 #### OptionPricing
65 
66 
67 #### SimpleThrust
68 simpleThrust/simpleThrust.cu
69 
70 
71 #### SimpleArrayfire
72 simpleArrayfire/simplearrayfire.cu
73 
74 
75 #### Mycuda
76 Utilities and macros
77 
78 * include/mycuda.h
79 * include/mycuda_reduce.h
80 * include/mycuda_scan.h
81 * include/mycuda_random.h
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98