如何获得cuda版本? [英] How to get the cuda version?

查看:474
本文介绍了如何获得cuda版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何快速命令或脚本来检查所安装的CUDA的版本?
在安装目录下找到4.0的手册,但不确定实际安装的版本是否。
谢谢!

Is there any quick command or script to check for the version of the installed CUDA? Found the manual of 4.0 under the installation directory, but not sure whether the actual installed version is that or not. Thanks!

推荐答案

正如Jared在注释中提到的,从命令行:

As Jared mentions in a comment, from the command line:

nvcc --version

给出CUDA编译器版本(与工具包版本匹配)。

gives the CUDA compiler version (which matches the toolkit version).

从应用程式程式码中,您可以使用

From application code, you can query the runtime API version with

cudaRuntimeGetVersion()

或驱动程序API版本

cudaDriverGetVersion()



< deviceQuery是一个SDK示例应用程序,用于查询上述内容以及设备功能。

As Daniel points out, deviceQuery is an SDK sample app that queries the above, along with device capabilities.

这篇关于如何获得cuda版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆