4 ms·
One thing that completely puzzles me: How does dynamic memory allocation/deallocation in GPU kernels work? Also, will the programmer be able to use virtual func
by iskander 16y ago
One thing that completely puzzles me: How does dynamic memory allocation/deallocation in GPU kernels work? Also, will the programmer be able to use virtual functions in CUDA kernels? If so, does the usual thinking about warp divergence apply? That is--- should all threads in a warp ideally be calling the same function address?
- tmurray 16y agoI think there's some preallocated memory for dynamic allocations from the device. As far as I know virtual functions work as well, and the usual thinking about warp divergence does apply.