手动安装VLLM出现的问题:fatal error: cuda_fp8.h: No such file or directory

部署运行你感兴趣的模型镜像

1. nvcc fatal : Unsupported gpu architecture ‘compute_86’

# vim ~/.bashrc
export TORCH_CUDA_ARCH_LIST="8.0"  # 因为是CUDA11.0,对应的算力为8.0
# source  ~/.bashrc

需要这个的原因,可能是下面的nvidia-cuda-toolkit残留,导致被判定为cuda11.0了,不过设置了后,问题也不出现了

2.fatal error: cuda_fp8.h: No such file or directory

解决办法是:
在这里插入图片描述
因为系统上 nvidia-cuda-toolkit 也 存在 NVCC 在 /usr/bin下面

which nvcc
dpkg -L nvidia-cuda-toolkit

如果上面两个命令都有nvcc路径,并且不一致,就是不行的,需要卸载nvidia-cuda-toolkit

sudo apt-get remove --purge nvidia-cuda-toolkit

3. pip 安装中 git下载失败的问题

Cloning into ‘cutlass-src’…
remote: Enumerating objects: 27428, done.
remote: Counting objects: 16% (1/6)
remote: Counting objects: 33% (2/6)
remote: Counting objects: 50% (3/6)
remote: Counting objects: 66% (4/6)
remote: Counting objects: 83% (5/6)
remote: Counting objects: 100% (6/6)
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 16% (1/6)
remote: Compressing objects: 33% (2/6)
remote: Compressing objects: 50% (3/6)
remote: Compressing objects: 66% (4/6)
remote: Compressing objects: 83% (5/6)
remote: Compressing objects: 100% (6/6)
remote: Compressing objects: 100% (6/6), done.
Receiving objects: 0% (1/27428)
Receiving objects: 1% (275/27428)
Receiving objects: 2% (549/27428), 188.01 KiB | 358.00 KiB/s
Receiving objects: 2% (565/27428), 316.01 KiB | 276.00 KiB/s
Receiving objects: 2% (620/27428), 428.01 KiB | 258.00 KiB/s
。。。
Receiving objects: 22% (6143/27428), 14.37 MiB | 142.00 KiB/s
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 39 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Had to git clone more than once: 3 times.
CMake Error at cutlass-subbuild/cutlass-populate-prefix/tmp/cutlass-populate-gitclone.cmake:50 (message):
Failed to clone repository: ‘https://github.com/nvidia/cutlass.git’

设置GIT_CURL_VERBOSE=1就行,此处是禁用 HTTP/2

MAX_JOBS=8 GIT_CURL_VERBOSE=1 pip install -e .

您可能感兴趣的与本文相关的镜像

PyTorch 2.5

PyTorch 2.5

PyTorch
Cuda

PyTorch 是一个开源的 Python 机器学习库,基于 Torch 库,底层由 C++ 实现,应用于人工智能领域,如计算机视觉和自然语言处理

Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/4] c++ -MMD -MF /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o.d -pthread -B /home/lixing/anaconda3/envs/Navagent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 FAILED: /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o c++ -MMD -MF /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o.d -pthread -B /home/lixing/anaconda3/envs/Navagent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp:14: /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory 5 | #include <cuda_runtime_api.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. [2/4] /usr/local/cuda-11.8/bin/nvcc -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.cu -o /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 [3/4] /usr/local/cuda-11.8/bin/nvcc -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 FAILED: /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o /usr/local/cuda-11.8/bin/nvcc -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): error: a pointer to a bound function may only be used to call the function /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero detected during: instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator==(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=size_t, one_sided=false, <unnamed>=0]" (61): here instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator!=(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=size_t, one_sided=false, <unnamed>=0]" /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h(77): here /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero detected during: instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator==(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=std::size_t, one_sided=true, <unnamed>=0]" (61): here instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator!=(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=std::size_t, one_sided=true, <unnamed>=0]" /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/core/qualified_name.h(73): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(261): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(65): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(762): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(872): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(331): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(436): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(544): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(649): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here 1 error detected in the compilation of "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu". [4/4] c++ -MMD -MF /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o.d -pthread -B /home/lixing/anaconda3/envs/Navagent/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/lixing/anaconda3/envs/Navagent/include/python3.8 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp -o /tmp/tmpqk_oqt3m.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘at::Tensor groundingdino::ms_deform_attn_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:30:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 30 | if (value.type().is_cuda()) | ^ In file included from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:222:30: note: declared here 222 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘std::vector<at::Tensor> groundingdino::ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:52:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 52 | if (value.type().is_cuda()) | ^ In file included from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:222:30: note: declared here 222 | DeprecatedTypeProperties & type() const { | ^~~~ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 138, in run self._create_wheel_file(bdist_wheel) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 341, in _create_wheel_file files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 264, in _run_build_commands self._run_build_subcommands() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 291, in _run_build_subcommands self.run_command(name) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command super().run_command(command) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command cmd_obj.run() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 98, in run _build_ext.run(self) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run self.build_extensions() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions build_ext.build_extensions(self) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions self._build_extensions_serial() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 263, in build_extension _build_ext.build_extension(self, ext) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension objects = self.compiler.compile( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 658, in unix_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1909, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension /home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/dist.py:973: _DebuggingTips: Problem in editable installation. !! ******************************************************************************** An error happened while installing `groundingdino` in editable mode. The following steps are recommended to help debug this problem: - Try to install the project normally, without using the editable mode. Does the error still persist? (If it does, try fixing the problem before attempting the editable mode). - If you are using binary extensions, make sure you have all OS-level dependencies installed (e.g. compilers, toolchains, binary libraries, ...). - Try the latest version of setuptools (maybe the error was already fixed). - If you (or your project dependencies) are using any setuptools extension or customization, make sure they support the editable mode. After following the steps above, if the problem still persists and you think this is related to how setuptools handles editable installations, please submit a reproducible example (see https://stackoverflow.com/help/minimal-reproducible-example) to: https://github.com/pypa/setuptools/issues See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details. ******************************************************************************** !! cmd_obj.run() Traceback (most recent call last): File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable return hook(wheel_directory, config_settings, metadata_directory) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/build_meta.py", line 459, in build_editable return self._build_with_temp_dir( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir self.run_setup() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/build_meta.py", line 318, in run_setup exec(code, locals()) File "<string>", line 200, in <module> File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/__init__.py", line 117, in setup return distutils.core.setup(**attrs) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup return run_commands(dist) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands dist.run_commands() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands self.run_command(cmd) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command super().run_command(command) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command cmd_obj.run() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 138, in run self._create_wheel_file(bdist_wheel) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 341, in _create_wheel_file files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 264, in _run_build_commands self._run_build_subcommands() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 291, in _run_build_subcommands self.run_command(name) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command super().run_command(command) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command cmd_obj.run() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 98, in run _build_ext.run(self) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run self.build_extensions() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions build_ext.build_extensions(self) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions self._build_extensions_serial() File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial self.build_extension(ext) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 263, in build_extension _build_ext.build_extension(self, ext) File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension objects = self.compiler.compile( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 658, in unix_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/home/lixing/anaconda3/envs/Navagent/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1909, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building editable for groundingdino Failed to build groundingdino ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (groundingdino) (Navagent) lixing@DESKTOP-2PJK7EV:~/vlm/Grounded-Segment-Anything$
09-14
Downloading yapf-0.43.0-py3-none-any.whl (256 kB) Downloading platformdirs-4.4.0-py3-none-any.whl (18 kB) Downloading tomli-2.2.1-py3-none-any.whl (14 kB) Building wheels for collected packages: groundingdino Building editable for groundingdino (pyproject.toml) ... error error: subprocess-exited-with-error × Building editable for groundingdino (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [234 lines of output] Building wheel groundingdino-0.1.0 Compiling with CUDA running editable_wheel creating /tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info writing /tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info/PKG-INFO writing dependency_links to /tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info/dependency_links.txt writing requirements to /tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info/requires.txt writing top-level names to /tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info/top_level.txt writing manifest file '/tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file '/tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino.egg-info/SOURCES.txt' creating '/tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino-0.1.0.dist-info' creating /tmp/pip-wheel-tkrx641j/.tmp-21te75oc/groundingdino-0.1.0.dist-info/WHEEL running build_py running build_ext /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py:458: UserWarning: There are no g++ version bounds defined for CUDA version 12.6 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building 'groundingdino._C' extension creating /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py:2059: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST']. warnings.warn( Emitting ninja build file /tmp/tmpnjc2erkj.build-temp/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/4] /usr/local/cuda-12.6/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.o.d -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/home/lixing/anaconda3/envs/vlm/include/python3.10 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.cu -o /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 [2/4] c++ -MMD -MF /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o.d -pthread -B /home/lixing/anaconda3/envs/vlm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/lixing/anaconda3/envs/vlm/include -fPIC -O2 -isystem /home/lixing/anaconda3/envs/vlm/include -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/home/lixing/anaconda3/envs/vlm/include/python3.10 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++17 FAILED: /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o c++ -MMD -MF /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o.d -pthread -B /home/lixing/anaconda3/envs/vlm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/lixing/anaconda3/envs/vlm/include -fPIC -O2 -isystem /home/lixing/anaconda3/envs/vlm/include -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/home/lixing/anaconda3/envs/vlm/include/python3.10 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++17 In file included from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:3, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp:14: /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContextLight.h:6:10: fatal error: cuda_runtime_api.h: No such file or directory 6 | #include <cuda_runtime_api.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. [3/4] /usr/local/cuda-12.6/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o.d -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/home/lixing/anaconda3/envs/vlm/include/python3.10 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 FAILED: /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o /usr/local/cuda-12.6/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o.d -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/home/lixing/anaconda3/envs/vlm/include/python3.10 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(65): error: no suitable conversion function from "const at::DeprecatedTypeProperties" to "c10::ScalarType" exists [&] { const auto& the_type = value.type(); constexpr const char* at_dispatch_name = "ms_deform_attn_forward_cuda"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu", static_cast<uint32_t>(65), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { ms_deformable_im2col_cuda(at::cuda::getCurrentCUDAStream(), value.data<scalar_t>() + n * im2col_step_ * per_value_size, spatial_shapes.data<int64_t>(), level_start_index.data<int64_t>(), sampling_loc.data<scalar_t>() + n * im2col_step_ * per_sample_loc_size, attn_weight.data<scalar_t>() + n * im2col_step_ * per_attn_weight_size, batch_n, spatial_size, num_heads, channels, num_levels, num_query, num_point, columns.data<scalar_t>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu", static_cast<uint32_t>(65), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { ms_deformable_im2col_cuda(at::cuda::getCurrentCUDAStream(), value.data<scalar_t>() + n * im2col_step_ * per_value_size, spatial_shapes.data<int64_t>(), level_start_index.data<int64_t>(), sampling_loc.data<scalar_t>() + n * im2col_step_ * per_sample_loc_size, attn_weight.data<scalar_t>() + n * im2col_step_ * per_attn_weight_size, batch_n, spatial_size, num_heads, channels, num_levels, num_query, num_point, columns.data<scalar_t>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu", static_cast<uint32_t>(65), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }() ^ /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): error: no suitable conversion function from "const at::DeprecatedTypeProperties" to "c10::ScalarType" exists [&] { const auto& the_type = value.type(); constexpr const char* at_dispatch_name = "ms_deform_attn_backward_cuda"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu", static_cast<uint32_t>(135), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { ms_deformable_col2im_cuda(at::cuda::getCurrentCUDAStream(), grad_output_g.data<scalar_t>(), value.data<scalar_t>() + n * im2col_step_ * per_value_size, spatial_shapes.data<int64_t>(), level_start_index.data<int64_t>(), sampling_loc.data<scalar_t>() + n * im2col_step_ * per_sample_loc_size, attn_weight.data<scalar_t>() + n * im2col_step_ * per_attn_weight_size, batch_n, spatial_size, num_heads, channels, num_levels, num_query, num_point, grad_value.data<scalar_t>() + n * im2col_step_ * per_value_size, grad_sampling_loc.data<scalar_t>() + n * im2col_step_ * per_sample_loc_size, grad_attn_weight.data<scalar_t>() + n * im2col_step_ * per_attn_weight_size); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu", static_cast<uint32_t>(135), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { ms_deformable_col2im_cuda(at::cuda::getCurrentCUDAStream(), grad_output_g.data<scalar_t>(), value.data<scalar_t>() + n * im2col_step_ * per_value_size, spatial_shapes.data<int64_t>(), level_start_index.data<int64_t>(), sampling_loc.data<scalar_t>() + n * im2col_step_ * per_sample_loc_size, attn_weight.data<scalar_t>() + n * im2col_step_ * per_attn_weight_size, batch_n, spatial_size, num_heads, channels, num_levels, num_query, num_point, grad_value.data<scalar_t>() + n * im2col_step_ * per_value_size, grad_sampling_loc.data<scalar_t>() + n * im2col_step_ * per_sample_loc_size, grad_attn_weight.data<scalar_t>() + n * im2col_step_ * per_attn_weight_size); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu", static_cast<uint32_t>(135), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }() ^ 2 errors detected in the compilation of "/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu". [4/4] c++ -MMD -MF /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o.d -pthread -B /home/lixing/anaconda3/envs/vlm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/lixing/anaconda3/envs/vlm/include -fPIC -O2 -isystem /home/lixing/anaconda3/envs/vlm/include -fPIC -DWITH_CUDA -I/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/TH -I/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/home/lixing/anaconda3/envs/vlm/include/python3.10 -c -c /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp -o /tmp/tmpnjc2erkj.build-temp/home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++17 In file included from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘at::Tensor groundingdino::ms_deform_attn_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:30:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 30 | if (value.type().is_cuda()) | ^ In file included from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/core/Tensor.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/Tensor.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:6, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/extension.h:5, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:225:30: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘std::vector<at::Tensor> groundingdino::ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:52:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 52 | if (value.type().is_cuda()) | ^ In file included from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/core/Tensor.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/Tensor.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:6, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/torch/extension.h:5, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13, from /home/lixing/vlm/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/csrc/vision.cpp:3: /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:225:30: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^~~~ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2209, in _run_ninja_build subprocess.run( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 139, in run self._create_wheel_file(bdist_wheel) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands self._run_build_subcommands() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands self.run_command(name) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command self.distribution.run_command(command) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/dist.py", line 1104, in run_command super().run_command(command) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 99, in run _build_ext.run(self) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run self.build_extensions() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 900, in build_extensions build_ext.build_extensions(self) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 484, in build_extensions self._build_extensions_serial() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 510, in _build_extensions_serial self.build_extension(ext) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 264, in build_extension _build_ext.build_extension(self, ext) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 565, in build_extension objects = self.compiler.compile( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 713, in unix_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1869, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2225, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension /home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/dist.py:1021: _DebuggingTips: Problem in editable installation. !! ******************************************************************************** An error happened while installing `groundingdino` in editable mode. The following steps are recommended to help debug this problem: - Try to install the project normally, without using the editable mode. Does the error still persist? (If it does, try fixing the problem before attempting the editable mode). - If you are using binary extensions, make sure you have all OS-level dependencies installed (e.g. compilers, toolchains, binary libraries, ...). - Try the latest version of setuptools (maybe the error was already fixed). - If you (or your project dependencies) are using any setuptools extension or customization, make sure they support the editable mode. After following the steps above, if the problem still persists and you think this is related to how setuptools handles editable installations, please submit a reproducible example (see https://stackoverflow.com/help/minimal-reproducible-example) to: https://github.com/pypa/setuptools/issues See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details. ******************************************************************************** !! cmd_obj.run() Traceback (most recent call last): File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2209, in _run_ninja_build subprocess.run( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 303, in build_editable return hook(wheel_directory, config_settings, metadata_directory) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/build_meta.py", line 476, in build_editable return self._build_with_temp_dir( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir self.run_setup() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) File "<string>", line 200, in <module> File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup return distutils.core.setup(**attrs) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/dist.py", line 1104, in run_command super().run_command(command) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 139, in run self._create_wheel_file(bdist_wheel) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 340, in _create_wheel_file files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 263, in _run_build_commands self._run_build_subcommands() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 290, in _run_build_subcommands self.run_command(name) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command self.distribution.run_command(command) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/dist.py", line 1104, in run_command super().run_command(command) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 99, in run _build_ext.run(self) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run self.build_extensions() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 900, in build_extensions build_ext.build_extensions(self) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 484, in build_extensions self._build_extensions_serial() File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 510, in _build_extensions_serial self.build_extension(ext) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 264, in build_extension _build_ext.build_extension(self, ext) File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 565, in build_extension objects = self.compiler.compile( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 713, in unix_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1869, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/home/lixing/anaconda3/envs/vlm/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2225, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building editable for groundingdino Failed to build groundingdino error: failed-wheel-build-for-install × Failed to build installable wheels for some pyproject.toml based projects ╰─> groundingdino
09-12
F:\Anaconda3\envs\chris_kg_hanli\include\cuda_fp16.hpp(65): fatal error C1083: 无法打开包括文件: “nv/target”: No such file or directory ninja: build stopped: subcommand failed. Traceback (most recent call last): File "H:\25zzj\flash-attention\setup.py", line 548, in run urllib.request.urlretrieve(wheel_url, wheel_filename) File "F:\Anaconda3\envs\chris_kg_hanli\lib\urllib\request.py", line 241, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "F:\Anaconda3\envs\chris_kg_hanli\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "F:\Anaconda3\envs\chris_kg_hanli\lib\urllib\request.py", line 525, in open response = meth(req, response) File "F:\Anaconda3\envs\chris_kg_hanli\lib\urllib\request.py", line 634, in http_response response = self.parent.error( File "F:\Anaconda3\envs\chris_kg_hanli\lib\urllib\request.py", line 563, in error return self._call_chain(*args) File "F:\Anaconda3\envs\chris_kg_hanli\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "F:\Anaconda3\envs\chris_kg_hanli\lib\urllib\request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\torch\utils\cpp_extension.py", line 2096, in _run_ninja_build subprocess.run( File "F:\Anaconda3\envs\chris_kg_hanli\lib\subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '3']' returned non-zero exit status 2. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "H:\25zzj\flash-attention\setup.py", line 588, in <module> setup( File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\__init__.py", line 115, in setup return distutils.core.setup(**attrs) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\core.py", line 186, in setup return run_commands(dist) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\core.py", line 202, in run_commands dist.run_commands() File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_commands self.run_command(cmd) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\dist.py", line 1102, in run_command super().run_command(command) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\dist.py", line 1021, in run_command cmd_obj.run() File "H:\25zzj\flash-attention\setup.py", line 565, in run super().run() File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\command\bdist_wheel.py", line 370, in run self.run_command("build") File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\cmd.py", line 357, in run_command self.distribution.run_command(command) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\dist.py", line 1102, in run_command super().run_command(command) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\dist.py", line 1021, in run_command cmd_obj.run() File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\cmd.py", line 357, in run_command self.distribution.run_command(command) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\dist.py", line 1102, in run_command super().run_command(command) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\dist.py", line 1021, in run_command cmd_obj.run() File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\command\build_ext.py", line 96, in run _build_ext.run(self) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 368, in run self.build_extensions() File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\torch\utils\cpp_extension.py", line 871, in build_extensions build_ext.build_extensions(self) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 484, in build_extensions self._build_extensions_serial() File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 510, in _build_extensions_serial self.build_extension(ext) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\command\build_ext.py", line 261, in build_extension _build_ext.build_extension(self, ext) File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 565, in build_extension objects = self.compiler.compile( File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\torch\utils\cpp_extension.py", line 843, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\torch\utils\cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects _run_ninja_build( File "F:\Anaconda3\envs\chris_kg_hanli\lib\site-packages\torch\utils\cpp_extension.py", line 2112, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for flash_attn Running setup.py clean for flash_attn Failed to build flash_attn error: failed-wheel-build-for-install × Failed to build installable wheels for some pyproject.toml based projects ╰─> flash_attn
最新发布
10-29
(pytorch_env) PS E:\PyTorch_Build\pytorch> # 1. 将 Windows SDK 的库路径添加到当前的 LIB 环境变量中 (pytorch_env) PS E:\PyTorch_Build\pytorch> # 这个路径是标准路径,通常不会变 (pytorch_env) PS E:\PyTorch_Build\pytorch> $env:LIB = "$env:LIB;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64" (pytorch_env) PS E:\PyTorch_Build\pytorch> (pytorch_env) PS E:\PyTorch_Build\pytorch> # 2. 验证路径是否添加成功 (pytorch_env) PS E:\PyTorch_Build\pytorch> echo $env:LIB ;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64 (pytorch_env) PS E:\PyTorch_Build\pytorch> (pytorch_env) PS E:\PyTorch_Build\pytorch> # 3. 重新尝试编译(继续从上次的地方开始) (pytorch_env) PS E:\PyTorch_Build\pytorch> cmake --build build --target install --config Release -j 4 [1/352] Building CXX object caffe2\CMakeFiles\cuda_reportM...r\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_reportMemoryUsage_test.dir/__/aten/src/ATen/test/cuda_reportMemoryUsage_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp E:\PyTorch_Build\pytorch\torch/headeronly/macros/Macros.h(3): fatal error C1083: 无法打开包括文件: “cassert”: No such file or directory [2/352] Building CXX object caffe2\CMakeFiles\cuda_allocat...\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_allocatorTraceTracker_test.dir/__/aten/src/ATen/test/cuda_allocatorTraceTracker_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\__\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp E:\PyTorch_Build\pytorch\c10/core/Allocator.h(3): fatal error C1083: 无法打开包括文件: “array”: No such file or directory [4/352] Linking CXX shared library bin\shm.dll FAILED: [code=4294967295] bin/shm.dll lib/shm.lib C:\WINDOWS\system32\cmd.exe /C "cd . && E:\PyTorch_Build\pytorch\pytorch_env\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_dll --msvc-ver=1944 --intdir=caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64" lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib" lib\kineto.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib" lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib" cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK: command "C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64 lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib lib\kineto.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 1104) with the following output: onnx.lib(helper.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(convert.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(implementation.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(inliner.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(shape_inference.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(schema.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(printer.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(parser.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(function.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(data_type_utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(attr_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(status.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(path.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(model_helpers.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(ir_pb_converter.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(interned_strings.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(assertions.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(checker.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx_onnx_torch-ml.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx-data_onnx_torch.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) LINK : fatal error LNK1104: 无法打开文件“msvcprt.lib” ninja: build stopped: subcommand failed. (pytorch_env) PS E:\PyTorch_Build\pytorch> # 搜索 psapi.lib 文件 (pytorch_env) PS E:\PyTorch_Build\pytorch> dir "C:\Program Files (x86)\Windows Kits\10\Lib\" -Recurse -Filter psapi.lib | Format-List FullName FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\arm\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\arm64\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86\Psapi.Lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x86\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\arm64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x64\psapi.lib FullName : C:\Program Files (x86)\Windows Kits\10\Lib\10.0.26100.0\um\x86\psapi.lib (pytorch_env) PS E:\PyTorch_Build\pytorch> (pytorch_env) PS E:\PyTorch_Build\pytorch> $env:LIB = "$env:LIB;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\arm\Psapi.Lib" (pytorch_env) PS E:\PyTorch_Build\pytorch> cmake --build build --target install --config Release -j 4 [1/352] Building CXX object caffe2\CMakeFiles\cuda_allocat...\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_allocatorTraceTracker_test.dir/__/aten/src/ATen/test/cuda_allocatorTraceTracker_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\__\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_allocatorTraceTracker_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_allocatorTraceTracker_test.cpp E:\PyTorch_Build\pytorch\c10/core/Allocator.h(3): fatal error C1083: 无法打开包括文件: “array”: No such file or directory [2/352] Building CXX object caffe2\CMakeFiles\cuda_reportM...r\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.ob FAILED: [code=2] caffe2/CMakeFiles/cuda_reportMemoryUsage_test.dir/__/aten/src/ATen/test/cuda_reportMemoryUsage_test.cpp.obj C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\cl.exe /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=1 -DEXPORT_AOTI_FUNCTIONS -DFMT_HEADER_ONLY=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTORCH_CUDA_USE_NVTX3 -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -DXNN_LOG_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE=1 -D_UCRT_LEGACY_INFINITY -IE:\PyTorch_Build\pytorch\build\aten\src -IE:\PyTorch_Build\pytorch\aten\src -IE:\PyTorch_Build\pytorch\build -IE:\PyTorch_Build\pytorch -IE:\PyTorch_Build\pytorch\nlohmann -IE:\PyTorch_Build\pytorch\moodycamel -IE:\PyTorch_Build\pytorch\third_party\mimalloc\include -IE:\PyTorch_Build\pytorch\build\caffe2\aten\src -IE:\PyTorch_Build\pytorch\aten\src\ATen\.. -IE:\PyTorch_Build\pytorch\third_party\miniz-3.0.2 -IE:\PyTorch_Build\pytorch\torch\csrc\api -IE:\PyTorch_Build\pytorch\torch\csrc\api\include -IE:\PyTorch_Build\pytorch\c10\.. -IE:\PyTorch_Build\pytorch\third_party\pthreadpool\include -IE:\PyTorch_Build\pytorch\third_party\cpuinfo\include -IE:\PyTorch_Build\pytorch\third_party\ittapi\include -IE:\PyTorch_Build\pytorch\third_party\FP16\include -IE:\PyTorch_Build\pytorch\third_party\fmt\include -IE:\PyTorch_Build\pytorch\build\third_party\ideep\mkl-dnn\include -IE:\PyTorch_Build\pytorch\third_party\ideep\mkl-dnn\src\..\include -IE:\PyTorch_Build\pytorch\third_party\onnx -IE:\PyTorch_Build\pytorch\build\third_party\onnx -IE:\PyTorch_Build\pytorch\third_party\flatbuffers\include -IE:\PyTorch_Build\pytorch\c10\cuda\..\.. -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\protobuf\src -external:IE:\PyTorch_Build\pytorch\third_party\XNNPACK\include -external:IE:\PyTorch_Build\pytorch\torch\include -external:IE:\PyTorch_Build\pytorch\cmake\..\third_party\eigen -external:IE:\PyTorch_Build\pytorch\third_party\ideep\include -external:IE:\PyTorch_Build\pytorch\INTERFACE -external:IE:\PyTorch_Build\pytorch\third_party\nlohmann\include -external:IE:\PyTorch_Build\pytorch\third_party\concurrentqueue -external:I"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\include" -external:IE:\PyTorch_Build\pytorch\third_party\NVTX\c\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest\include -external:IE:\PyTorch_Build\pytorch\third_party\googletest\googletest -external:W0 /DWIN32 /D_WINDOWS /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /Zc:preprocessor /Zc:preprocessor /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD /permissive- /EHsc /bigobj -openmp:experimental /utf-8 /showIncludes /Focaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\__\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp.obj /Fdcaffe2\CMakeFiles\cuda_reportMemoryUsage_test.dir\ /FS -c E:\PyTorch_Build\pytorch\aten\src\ATen\test\cuda_reportMemoryUsage_test.cpp E:\PyTorch_Build\pytorch\torch/headeronly/macros/Macros.h(3): fatal error C1083: 无法打开包括文件: “cassert”: No such file or directory [4/352] Linking CXX shared library bin\shm.dll FAILED: [code=4294967295] bin/shm.dll lib/shm.lib C:\WINDOWS\system32\cmd.exe /C "cd . && E:\PyTorch_Build\pytorch\pytorch_env\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_dll --msvc-ver=1944 --intdir=caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:"E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64" lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib" lib\kineto.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib" lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib" "E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib" cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK: command "C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo caffe2\torch\lib\libshm_windows\CMakeFiles\shm.dir\core.cpp.obj /out:bin\shm.dll /implib:lib\shm.lib /pdb:bin\shm.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099 /INCREMENTAL:NO -LIBPATH:E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64 lib\torch.lib lib\c10.lib /WHOLEARCHIVE:lib\torch_cuda.lib /WHOLEARCHIVE:lib\torch_cpu.lib lib\XNNPACK.lib lib\microkernels-prod.lib lib\pthreadpool.lib lib\libittnotify.lib C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x64\libomp.lib lib\kineto.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\extras\CUPTI\lib64\cupti.lib lib\dnnl.lib sleef\lib\sleef.lib /WHOLEARCHIVE:lib\onnx.lib lib\onnx_proto.lib lib\libprotobuf.lib /WHOLEARCHIVE:lib\Caffe2_perfkernels_avx2.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ lib\c10_cuda.lib lib\c10.lib lib\cpuinfo.lib lib\mimalloc.lib psapi.lib shell32.lib user32.lib advapi32.lib bcrypt.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\curand.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cudart_static.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cufft.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusolver.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cusparse.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublas.lib E:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\lib\x64\cublasLt.lib cudadevrt.lib cudart.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST:EMBED,ID=2" failed (exit code 1104) with the following output: onnx.lib(helper.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(convert.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(implementation.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(inliner.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(tensor_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(shape_inference.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(schema.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(printer.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(parser.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(function.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(data_type_utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(utils.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(old.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(defs.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(attr_proto_util.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(status.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(path.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(model_helpers.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(ir_pb_converter.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(interned_strings.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(assertions.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx.lib(checker.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx_onnx_torch-ml.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) onnx_proto.lib(onnx-data_onnx_torch.pb.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(core.cpp.obj 中) LINK : fatal error LNK1104: 无法打开文件“msvcprt.lib” ninja: build stopped: subcommand failed. (pytorch_env) PS E:\PyTorch_Build\pytorch>
09-01
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值