30.07.2015 Views

Slides - Par Lab

Slides - Par Lab

Slides - Par Lab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Explicit versus implicit parallelism" SAXPY in Thrust// C++ functor replaces __global__ functionstruct saxpy {float a;saxpy(float _a) : a(_a) {}};__host__ __device__float operator()(float x, float y) {return a * x + y;}transform(x.begin(), x.end(), y.begin(), y.begin(),saxpy(a));© 2011 NVIDIA Corporation 62/73

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

Saved successfully!

Ooh no, something went wrong!