subprocess.CalledProcessError: Command ‘[‘ninja‘, ‘-v‘]‘ returned non-zero exit status 4294967295.

在这里插入图片描述

问题:subprocess.CalledProcessError: Command ‘[‘ninja’, ‘-v’]’ returned non-zero exit status 4294967295.

“RuntimeError: Error building extension ‘pair_wise_distance’: [1/3] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\bin\nvcc --generate-dependencies-with-compile --dependency-output cuda.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=pair_wise_distance -DTORCH_API_INCLUDE_EXTENSION_H “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include” “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include\torch\csrc\api\include” “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include\TH” “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include\THC” “-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\include” “-ID:\Program Files\anaconda3\envs\pytorch38\Include” -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -c C:\Users\DONG\AppData\Local\torch_extensions\torch_extensions\Cache\py38_cu121\pair_wise_distance\cuda.cu -o cuda.cuda.o
FAILED: cuda.cuda.o
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\bin\nvcc --generate-dependencies-with-compile --dependency-output cuda.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=pair_wise_distance -DTORCH_API_INCLUDE_EXTENSION_H “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include” “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include\torch\csrc\api\include” “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include\TH” “-ID:\Program Files\anaconda3\envs\pytorch38\lib\site-packages\torch\include\THC” “-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\include” “-ID:\Program Files\anaconda3\envs\pytorch38\Include” -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 -c C:\Users\DONG\AppData\Local\torch_extensions\torch_extensions\Cache\py38_cu121\pair_wise_distance\cuda.cu -o cuda.cuda.o
Create

解决方法:将[‘ninja’,‘-v’]改成[‘ninja’,‘–quiet’]

在这里插入图片描述

  • 23
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值