У CUDA действительно нет Calloc ()-как вызов API?C++

Программы на C++. Форум разработчиков
Anonymous
У CUDA действительно нет Calloc ()-как вызов API?

Сообщение 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().
  • Is there really no API functionality for allocating a buffer initialized to all-zeros?
  • Есть ли что -то лучше, чем я могу сделать, чем вызовать cudamalloc () , а затем cudamemset () ?


Подробнее здесь: https://stackoverflow.com/questions/212 ... e-api-call

Вернуться в «C++»