CUDA 8.0中的NVCC警告 [英] nvcc warning in cuda 8.0

查看:209
本文介绍了CUDA 8.0中的NVCC警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试执行nvcc时收到此警告。

I am getting this warning when I try to execute nvcc.

我有cuda工具包8.0,我的系统中有Nvidia GTX 480。

I have cuda toolket 8.0 I have Nvidia GTX 480 in my system.

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

有人可以解释这个警告吗?

Can anyone explain this warning?

请让我知道是否需要更多信息。

Please let me know if you need more information.

推荐答案

这是CUDA开发团队(即NVIDIA)让CUDA开发人员使用的方法(即您)知道计算能力(cc)2.x设备将不再受支持。

This is the CUDA development teams (i.e. NVIDIA) way of letting CUDA developers (i.e. you) know that compute capability (cc) 2.x devices won't be supported for much longer.

可以合理地假设下一个主要CUDA版本将 drop 支持计算功能2.x设备,包括您的GTX480。因此,CUDA 8.0可能是最后一个支持该设备的CUDA工具包。

It's reasonable to assume that the next major CUDA release will drop support for compute capability 2.x devices, including your GTX 480. Therefore, CUDA 8.0 is likely the last CUDA toolkit that will support that device.

即使未指定目标体系结构,也会发生警告,因为CUDA 8的默认目标体系结构是cc 2.0。

The warning occurs even if no target architecture is specified, because the default target architecture for CUDA 8 is cc 2.0.

如果仅打算将cc3设备作为目标.0或更高,您可以通过指定适合您设备的适当体系结构来消除编译输出中的警告,例如

If you only intend to target devices of cc3.0 or higher, you can eliminate the warning from your compile output by specifying an appropriate architecture to match your devices, e.g.

nvcc -arch=sm_30 ...

例如针对cc 3.0及更高版本的设备。正如警告消息本身所指示的那样,您还可以指定一个命令行开关来禁止显示警告。

for example to target cc 3.0 and higher devices. As the warning message itself indicates, you can also specify a command line switch to suppress the warning.

当支持cc 1时,在CUDA 6.x时间表中发生了类似的事情。 .x设备已弃用。 CUDA 7.0中的支持被取消。

Something similar happened in the CUDA 6.x timeframe when support for cc 1.x devices was deprecated. Support was dropped in CUDA 7.0.

这篇关于CUDA 8.0中的NVCC警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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