Download GPUmat User Guide

Transcript
Contents
Contents
1 Introduction
1.1 About GPUs . . . . . .
1.2 System requirements . .
1.3 Credits and licensing . .
1.4 How to install . . . . .
1.5 Terminology . . . . . .
1.6 Documentation overview
2
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
9
9
10
10
10
12
12
2 Quick start
2.1 Matrix addition example . . .
2.2 Matrix multiplication example
2.3 FFT calculation example . . .
2.4 GPUmat compiler . . . . . .
2.5 Variable assignment . . . . .
2.6 Performance analysis . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
14
18
20
21
22
22
24
3 GPUmat overview
3.1 Starting the GPU environment . . . . . . . . . . . . .
3.2 Creating a GPU variable . . . . . . . . . . . . . . . .
3.3 Performing calculations on the GPU . . . . . . . . . .
3.4 Porting existing Matlab code . . . . . . . . . . . . .
3.5 Converting a GPU variable into a Matlab variable . .
3.6 Indexed references . . . . . . . . . . . . . . . . . . .
3.7 GPUmat functions . . . . . . . . . . . . . . . . . . .
3.8 GPU memory management . . . . . . . . . . . . . .
3.9 Low level GPU memory management . . . . . . . . .
3.9.1 Memory management using the GPU classes .
3.9.2 Memory management using low level functions
3.10 Complex numbers . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
26
27
28
33
34
36
37
39
40
41
42
43
43
.
.
.
.
.
.
.
.
.
.
.
.
2