13.07.2015 Views

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

Thrust• A template library for <strong>CUDA</strong> — Mimics the C++ STL• Containers: manage memory on host <strong>and</strong> device:thrust::host_vector, thrust:device_vector• Define ranges: d_vec.begin(), support Iterators• Hides/Simplify data movement: know where data lives• Algorithms acting on ranges <strong>and</strong> support general types <strong>and</strong>operators:– Element-wise operations: for_each, transform, gather, scatter,...– Reduction: reduce, inner_product, reduce_by_key, ...– Prefix-Sums: inclusive_scan, inclusive_scan_by_key, ...– Sorting: sort, stable_sort, sort_by_keyFebruary 10, 2012 PRACE Winter School 201212

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

Saved successfully!

Ooh no, something went wrong!