Программы на C++. Форум разработчиков
1745396897
Anonymous
From looking at the CUDA 5.5 API Reference and the CUDA C Programming Guide it seems that there is no cudaCalloc(), an on-GPU equivalent of the standard C library's calloc().
[list]
[*]Is there really no API functionality for allocating a buffer initialized to all-zeros?
[*] Есть ли что -то лучше, чем я могу сделать, чем вызовать cudamalloc () , а затем cudamemset () ?
[/list]
Подробнее здесь: [url]https://stackoverflow.com/questions/21233762/does-cuda-really-not-have-a-calloc-like-api-call[/url]