繁体   English   中英

cudaGetDeviceProperties() 返回零

[英]cudaGetDeviceProperties() returns zeros

我有一台配备 NVIDIA GeForce GTX 760M 显卡的笔记本电脑。
我安装了 CUDA 10.1 更新 2 Windows。
我的 IDE 是 Visual Studio 2019。
和操作系统 Windows 10。

我想使用cudaGetDeviceProperties()函数获取有关我的视频卡的信息。 但是这个函数不会向结构返回任何数据。

cudaDeviceProp cudaDeviceInfo{};
auto res = cudaGetDeviceProperties(&cudaDeviceInfo, 0);

CudaDevInfo
我究竟做错了什么?
如何让 cudaGetDeviceProperties() 函数工作?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM