29.01.2013 Views

Tutorial CUDA

Tutorial CUDA

Tutorial CUDA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NVCC & PTX Virtual Machine<br />

C/C++ <strong>CUDA</strong><br />

Application<br />

EDG<br />

Open64<br />

PTX Code<br />

© NVIDIA Corporation 2008<br />

float4 me = gx[gtid];<br />

me.x += me.y * me.z;<br />

CPU Code<br />

ld.global.v4.f32 {$f1,$f3,$f5,$f7}, [$r9+0];<br />

mad.f32 $f1, $f5, $f3, $f1;<br />

EDG<br />

Separate GPU vs. CPU code<br />

Open64<br />

Generates GPU PTX<br />

assembly<br />

Parallel Thread eXecution<br />

(PTX)<br />

Virtual Machine and ISA<br />

Programming model<br />

Execution resources and<br />

state

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!