|
|
|
|
|
by dahart
2954 days ago
|
|
You can do real recursion sometimes, and real program flow. It does depend on CUDA version & chipset, but most modern ones support flow control. (https://stackoverflow.com/questions/3644809/does-cuda-suppor...) I think there are still cases where it won’t work right due to other libraries that might be involved, I’ve had recursion fail even on a new GPU with cuda 9. Even if you can use recursion, it’s not usually a good idea since you’ll run into thread divergence problems. |
|