2017-03-18 80 views
0
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 
*/ 

正如你在上面看到的,cuda解释中有很多“\ p”,我只是想知道它是什么意思?谢谢!cuda的解释有很多' p'

+0

我明白了,谢谢 – sutongkui

回答

5

你会注意到它们包含在评论中,对吧?

它们是自动文档系统的文本键,用于标识“接下来是函数参数”。

您的摘录方式也令人困惑,因为注释部分适用于注释之后的函数原型,而不适用于注释之前的函数原型。