如何在Linux机器上获取我的CUDA规范? [英] How do I get my CUDA specs on a Linux machine?

查看:108
本文介绍了如何在Linux机器上获取我的CUDA规范?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在访问一个远程机器,它有一个很好的nVidia卡CUDA计算,但我找不到一个方法来知道它使用哪个卡,什么是CUDA规范(版本等)。我在终端上使用了lspci命令,但没有nvidia卡的标志。我确定它有一个nVidia卡,并且nvcc似乎被安装。

I'm accessing a remote machine that has a good nVidia card for CUDA computing, but I can't find a way to know which card it uses and what are the CUDA specs (version, etc.). I used the "lspci" command on the terminal, but there is no sign of a nvidia card. I'm pretty sure it has a nVidia card, and nvcc seems to be installed.

但我真的想弄清楚卡和CUDA规格。任何想法?

But I really want to figure out the card and CUDA specs. Any ideas?

谢谢!

推荐答案

CUDA SDK目录已经安装,那么你可以运行 deviceQuery 示例,它会告诉你所有你需要知道和更多。可执行文件应该在 $(SDK)/ C / bin / linux / release / deviceQuery - 如果没有那么你可能需要先构建示例:

If you can find where the CUDA SDK directory has been installed then you can just run the deviceQuery example which will tell you all you need to know and more. The executable should be at $(SDK)/C/bin/linux/release/deviceQuery - if it's not there then you may need to build the samples first:

$ cd $(SDK)
$ make
$ ./C/bin/linux/release/deviceQuery

CUDA SDK目录通常命名为 NVIDIA_GPU_Computing_SDK 更新的CUDA版本)或 NVIDIA_CUDA_SDK (较旧的CUDA版本)。

The CUDA SDK directory is typically named NVIDIA_GPU_Computing_SDK (more recent CUDA versions) or just NVIDIA_CUDA_SDK (older CUDA versions).

这篇关于如何在Linux机器上获取我的CUDA规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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