title: how does cuda 4.0 support recursion
body: <p>I'm wondering, does cuda 4.0 support recursion using local memory or shared memory? I have to maintain a stack using global memory by myself, because the system-level recursion can't support my program (probably too many levels of recursion). When the recursion get deeper, the threads stop working.<br>
  So I really want to know how the default recursion work in CUDA, does it use local memory of shared memory? Thanks!</p>