英伟达
直播中

李斌

7年用户 1374经验值
私信 关注
[问答]

无法运行CUDA示例代码

我不确定这个问题是否适合这个问题,但我被引导到Dev论坛的vGPU论坛。
我有一台P40(GRID 5.2,Windows驱动程序386.09),戴尔R740xd,VMWare ESXi 6.5和Horizo​​n 7.1。
我能够在C ++中编译示例CUDA代码(Windows 10. Visual Studio 2015),但在运行时,我得到了一个cudaErrorInsufficientDriver(35)。
有没有人知道是否有一个我缺少的设置使这项工作?
系统似乎识别GPU,使用Tensorflow,我可以使用GPU进行处理。
谢谢,
-Ryan

以上来自于谷歌翻译


以下为原文

I'm not sure if this is the right place for this question, but I was directed to the vGPU forums from the Dev forums.

I have a P40 (GRID 5.2, Windows Driver 386.09), with Dell R740xd, VMWare ESXi 6.5 and Horizon 7.1.

I am able to compile the sample CUDA code fine in C++ (Windows 10. Visual Studio 2015), but at runtime, I am getting a cudaErrorInsufficientDriver(35).

Does anyone know if there is a setting that I'm missing to make this work?

The system seems to recognize the GPU, and using Tensorflow, I am able to use the GPU's for processing.

Thanks,

-Ryan

回帖(1)

杨季赟

2018-9-11 16:47:40
将启用CUDA的配置文件分配给vGPU。
如果成功获得许可,请检查许可。
请参阅:http://images.nvidia.com/content/grid/pdf/161207-GRID-Packaging-and-Licensing-Guide.pdf
检查nvidia-smi报告的“计算模式”。
使用Cuda-Z(http://cuda-z.sourceforge.net/)进行测试。
“cudaErrorInsufficientDriver” - 这表示安装的NVIDIA CUDA驱动程序早于CUDA运行时库。
这不是受支持的配置。
用户应安装更新的NVIDIA显示驱动程序以允许应用程序运行。
检查项目与驱动程序CUDA运行时库(驱动程序386.09具有CUDA版本9.0.284)或CUDA Toolkit运行时库的链接。
使用CUDA Toolkit 9.0(https://developer.nvidia.com/cuda-toolkit-archive)代替CUDA Toolkit 9.1。

以上来自于谷歌翻译


以下为原文



  • Assign CUDA enabled profile to vGPU. Check license if it is successfully acquired. See: http://images.nvidia.com/content/grid/pdf/161207-GRID-Packaging-and-Licensing-Guide.pdf
  • Check "compute mode" reported by nvidia-smi. Test with Cuda-Z (http://cuda-z.sourceforge.net/).
  • "cudaErrorInsufficientDriver" - This indicates that the installed NVIDIA CUDA driver is older than the CUDA runtime library. This is not a supported configuration. Users should install an updated NVIDIA display driver to allow the application to run. Check linking of your project to driver CUDA runtime library (driver 386.09 has CUDA version 9.0.284) or CUDA Toolkit runtime library. Use CUDA Toolkit 9.0 (https://developer.nvidia.com/cuda-toolkit-archive) instead CUDA Toolkit 9.1.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分