30.04.2014 Views

Segmented Scan - Nvidia

Segmented Scan - Nvidia

Segmented Scan - Nvidia

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.

<strong>Scan</strong> Implementation in CUDA<br />

• In the following examples:<br />

— all pointers assumed to point to CUDA __shared__ memory<br />

— The following variable definitions are assumed (for brevity):<br />

int i = threadIdx.x;<br />

int lane = I & (warpSize - 1);<br />

int warp = i / warpSize ;<br />

int n = blockDim.x;

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

Saved successfully!

Ooh no, something went wrong!