Proper data structure is designed to solve the problems such as CUDA does not support pointer, dynamically memoryallocating and to avoid synchronization as much as possible.
同时设计了相应的数据结构,克服了CUDA没有指针、不能动态申请资源、尽量避免同步操作等问题。
2
By using a constant string, you avoid allocatingmemory, copying the string, and the transcoding process.