Ori*_*ent 2 cuda
是否可以通过指针获取分配的内存缓冲区的大小?
我发现的只是cudaPointerGetAttributes函数和cudaPointerAttributes结构,但后者没有字段size或有用的东西来定义大小。
cudaPointerGetAttributes
cudaPointerAttributes
size
ter*_*era 5
是的。cuMemGetAddressRange()驱动程序 API允许您从 CUDA 分配中检索任何设备指针的基地址和大小。
cuMemGetAddressRange()
归档时间:
6 年,8 月 前
查看次数:
1066 次
最近记录:
4 年,4 月 前