P. 1
CUDA C Programming Guide

CUDA C Programming Guide

|Views: 306|Likes:
Published by georgehova748

More info:

Published by: georgehova748 on Aug 18, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/06/2012

pdf

text

original

Warp vote functions are only supported by devices of compute capability 1.2 and
higher (see Section 4.1 for the definition of a warp).

int __all(int predicate);

evaluates predicate for all threads of the warp and returns non-zero if and only if
predicate evaluates to non-zero for all of them.

int __any(int predicate);

evaluates predicate for all threads of the warp and returns non-zero if and only if
predicate evaluates to non-zero for any of them.

unsigned int __ballot(int predicate);

evaluates predicate for all threads of the warp and returns an integer whose Nth
bit is set if and only if predicate evaluates to non-zero for the Nth thread of the
warp. This function is only supported by devices of compute capability 2.x.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->