how can a __global__ function RETURN a value or BREAK out like C/C++ does
Posted
by
user1684726
on Stack Overflow
See other posts from Stack Overflow
or by user1684726
Published on 2012-09-20T03:35:08Z
Indexed on
2012/09/20
3:37 UTC
Read the original article
Hit count: 104
cuda
Recently i've been doing string comparing jobs on CUDA, and i wonder how can a global function return a value when it finds the exact string that i'm looking for.
I mean, i need the global function which contains a great amout of threads to find a certain string among a big big string-pool simultaneously, and i hope that once the exact string is caught, the global funtion can stop all the threads and return back to the main funtion, and tells me "he did it"!
B.T.W., I'm using CUDA C .How could i possibly achieve that, waiting for help.
© Stack Overflow or respective owner