【cuda】cudaGetDeviceProperties,cudaDeviceGetAttribute,cudaMemGetInfo
cudaGetDevicePropertiescudaError_tcudaGetDeviceProperties(cudaDeviceProp*prop,intdevice);函数接受两个参数:prop:指向cudaDeviceProp结构体的指针,用于存储获取到的GPU设备的属性信息。device:要查询的GPU设备的索引,通常从0开始。以下是一些常用的cudaDeviceProp结构体的成员