当试图在Google Colab上分别使用Yolo的Dlib和DarkNet进行面部识别和对象检测时,我会遇到与CUDA相关的错误,我希望有人可以帮助我解决这个问题!它曾经可以运行,但是一周后,我运行了整个笔记本并给了这个错误

问题描述 投票:0回答:0
Cudnn版本:9.2.1

OOPENCV版本:4.5.4

当我运行代码时,我会在dlib中获得以下错误:

RuntimeError: Error while calling cudaOccupancyMaxPotentialBlockSize(&num_blocks, &num_threads, K) in file /root/.cache/uv/sdists-v7/pypi/dlib/19.24.2/.../cuda_utils.h:186. code: 222, reason: the provided PTX was compiled with an unsupported toolchain.

相似,在darknet中,我得到了这个错误:

CUDA status Error: file: ./src/blas_kernels.cu: func: add_bias_gpu() line: 121 CUDA Error: the provided PTX was compiled with an unsupported toolchain. Darknet error location: ./src/blas_kernels.cu, add_bias_gpu(), line #121

我还注意到了这样的警告:

Cuda-version:12050(12040)警告:cuda-version高于驱动程序!

从我的理解中,这可能是由于CUDA工具包与我的NVIDIA驱动程序之间的不匹配。我怀疑我的驾驶员可能无法完全支持CUDA 12.5,这可以解释PTX工具链问题。我如何在GoogleColab
中解决此问题
双重检查了我的CUDA和驱动程序版本,并使用NVCC和NVIDIA-SMI.

通过适当的GPU体系结构标志(例如-gencode Arch = Compute_75,code = sm_75)。 verized正确检测到我的GPU。
	

got解决方案?我也有同样的问题。几天前 抱歉,不能写评论

google-colaboratory
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.