完美解决error: command ‘C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.0in vcc.exe‘ failed
Posted ai52learn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了完美解决error: command ‘C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.0in vcc.exe‘ failed相关的知识,希望对你有一定的参考价值。
完美解决error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.0\\bin\\nvcc.exe' failed with exit status 1
【win10安装detectron2】
本人的编译环境:
pytorhc:1.8.1+cu111
cuda11.0
首先下载https://github.com/facebookresearch/detectron2,然后进入文件目录,然后进入命令行,然后运行
python setup.py build --force develop
然后出现了问题:
E:/。。。/detectron2-master (3)/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
E:/。。。/detectron2-master (3)/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): error: type name is not allowed
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
E:/。。。/detectron2-master (3)/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(68): warning: expression has no effect
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
E:/。。。/detectron2-master (3)/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu(58): warning: variable "cur_box" was set but never used
detected during instantiation of "void nms_rotated_cuda_kernel(int, double, const T *, unsigned long long *) [with T=float]"
(105): here
5 errors detected in the compilation of "E:/。。。/detectron2-master (3)/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu".
nms_rotated_cuda.cu
C:\\Users\\。。。\\anaconda3\\lib\\site-packages\\torch\\utils\\cpp_extension.py:369: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
C:\\Users\\。。。\\anaconda3\\lib\\site-packages\\torch\\utils\\cpp_extension.py:311: UserWarning:
!! WARNING !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (cl 19.00.24210) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 5.0 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.
See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 5 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! WARNING !!
warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
error: command 'C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.0\\\\bin\\\\nvcc.exe' failed with exit status 1
解决后再次运行命令,成功安装,
获取上述问题的解决方案:https://ai.52learn.online/19396
以上是关于完美解决error: command ‘C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.0in vcc.exe‘ failed的主要内容,如果未能解决你的问题,请参考以下文章
解决 Command "python setup.py egg_info" failed with error code 1 问题
xvfb-run: error: xauth command not found 解决方式
error: unrecognized command line option "-std=c11" 解决办法
Bug解决pymongo.errors.OperationFailure: Executor error during find command :: caused by :: Sort exce
完美解决Error: error:0308010C:digital envelope routines::unsupportedwindows&linux
在WSL中安装swool报错 error: unrecognized command line option '-V' 的解决方法