Slides - Par Lab
Slides - Par Lab
Slides - Par Lab
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