2017-03-18 84 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

你會注意到它們包含在評論中,對吧?

它們是自動文檔系統的文本鍵,用於標識「接下來是函數參數」。

您的摘錄方式也令人困惑,因爲註釋部分適用於註釋之後的函數原型,而不適用於註釋之前的函數原型。