extern __host__ cudaError_t CUDARTAPI cudaMemcpy(void *dst, const void *src, size_t count, enum cudaMemcpyKind kind);
/**
* \brief Copies memory between two devices
*
* Copies memory from one device to memory on another device. \p dst is the
* base device pointer of the destination memory and \p dstDevice is the
* destination device. \p src is the base device pointer of the source memory
* and \p srcDevice is the source device. \p count specifies the number of
*/
如上所述,有很多" \ p"在cuda解释中,我只是想知道它是什么意思?谢谢!
答案 0 :(得分:5)
您会注意到它们包含在评论中,对吧?
它们是自动文档系统的文本键,用于标识"接下来是函数参数"。
您摘录此内容的方式也令人困惑,因为注释部分适用于注释后面的函数原型,而不是注释之前的函数原型。