CUDA抱怨nvcc是一个“不受支持的工具链". [英] CUDA complains about nvcc being an "unsupported toolchain"

查看:201
本文介绍了CUDA抱怨nvcc是一个“不受支持的工具链".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在CUDA中制作了1D卷积程序-但由于某种原因,可执行文件无法运行,因为CUDA抱怨所提供的PTX是使用不受支持的工具链编译的".(此错误在第一个CUDA库函数上引发).我的程序是使用nvcc编译的,我使用的命令正好是 nvcc program.cu -o program ,而我用来运行生成的可执行文件的命令是: ./program .谷歌搜索几乎没有结果-没有任何帮助吗?

I've made a 1D convolution program in CUDA - but for some reason the executable doesn't run as CUDA complains "the provided PTX was compiled with an unsupported toolchain" (this error is thrown on the first CUDA library function). My program was compiled with nvcc, with the command I used being exactly: nvcc program.cu -o program and the command I used to run the resultant executable: ./program. Googling returns little to no results - any help?

推荐答案

此问题已解决.问题是Arch仓库中的NVIDIA驱动程序版本已过期,而同一仓库中的CUDA版本最新-(

This issue has been solved. The problem was that the NVIDIA driver version in the Arch repos was out-of-date with the newest CUDA version in the same repos - (https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html, my system had CUDA version 11.2.0, but NVIDIA Driver version 455.x.x). Downgrading the CUDA version solved the issue.

这篇关于CUDA抱怨nvcc是一个“不受支持的工具链".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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