How to run detectron2 using rtx 3090 and with cuda 11.x on ubuntu? #2974
Unanswered
mobassir94
asked this question in
Q&A
Replies: 1 comment
-
You can try my repository for building packages and PyPI simple index and see if it works for you: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi @ppwwyyxx i am having similar issue with rtx 3090,
my log file :
python -m pip install -e detectron2
Obtaining file:///home/apsisdev/detectron2
Requirement already satisfied: termcolor>=1.1 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (1.1.0)
Requirement already satisfied: Pillow>=7.1 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (8.0.1)
Requirement already satisfied: yacs>=0.1.6 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (0.1.8)
Requirement already satisfied: tabulate in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (0.8.9)
Requirement already satisfied: cloudpickle in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (1.6.0)
Requirement already satisfied: matplotlib in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (3.3.2)
Requirement already satisfied: tqdm>4.29.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (4.50.2)
Requirement already satisfied: tensorboard in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (2.5.0)
Requirement already satisfied: fvcore<0.1.6,>=0.1.5 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (0.1.5.post20210423)
Requirement already satisfied: iopath<0.1.9,>=0.1.7 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (0.1.8)
Requirement already satisfied: pycocotools>=2.0.2 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (2.0.2)
Requirement already satisfied: future in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (0.18.2)
Requirement already satisfied: pydot in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (1.4.2)
Requirement already satisfied: omegaconf==2.1.0.dev22 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from detectron2==0.4) (2.1.0.dev22)
Requirement already satisfied: PyYAML in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from yacs>=0.1.6->detectron2==0.4) (5.3.1)
Requirement already satisfied: kiwisolver>=1.0.1 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from matplotlib->detectron2==0.4) (1.3.0)
Requirement already satisfied: numpy>=1.15 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from matplotlib->detectron2==0.4) (1.19.2)
Requirement already satisfied: cycler>=0.10 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from matplotlib->detectron2==0.4) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from matplotlib->detectron2==0.4) (2.8.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from matplotlib->detectron2==0.4) (2.4.7)
Requirement already satisfied: certifi>=2020.06.20 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from matplotlib->detectron2==0.4) (2020.12.5)
Requirement already satisfied: absl-py>=0.4 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (0.12.0)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (0.4.4)
Requirement already satisfied: requests<3,>=2.21.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (2.24.0)
Requirement already satisfied: wheel>=0.26; python_version >= "3" in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (0.35.1)
Requirement already satisfied: protobuf>=3.6.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (3.15.8)
Requirement already satisfied: werkzeug>=0.11.15 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (1.0.1)
Requirement already satisfied: grpcio>=1.24.3 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (1.37.0)
Requirement already satisfied: setuptools>=41.0.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (50.3.1.post20201107)
Requirement already satisfied: google-auth<2,>=1.6.3 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (1.29.0)
Requirement already satisfied: markdown>=2.6.8 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (3.3.4)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (0.6.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from tensorboard->detectron2==0.4) (1.8.0)
Requirement already satisfied: portalocker in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from iopath<0.1.9,>=0.1.7->detectron2==0.4) (2.3.0)
Requirement already satisfied: cython>=0.27.3 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from pycocotools>=2.0.2->detectron2==0.4) (0.29.21)
Requirement already satisfied: antlr4-python3-runtime==4.8 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from omegaconf==2.1.0.dev22->detectron2==0.4) (4.8)
Requirement already satisfied: six in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from cycler>=0.10->matplotlib->detectron2==0.4) (1.15.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.4) (1.3.0)
Requirement already satisfied: idna<3,>=2.5 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.4) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.4) (1.25.11)
Requirement already satisfied: chardet<4,>=3.0.2 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.4) (3.0.4)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.4) (4.2.1)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.4) (0.2.8)
Requirement already satisfied: rsa<5,>=3.1.4; python_version >= "3.6" in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard->detectron2==0.4) (4.7.2)
Requirement already satisfied: oauthlib>=3.0.0 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->detectron2==0.4) (3.1.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in ./anaconda3/envs/pydetectron2/lib/python3.8/site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard->detectron2==0.4) (0.4.8)
Installing collected packages: detectron2
Running setup.py develop for detectron2
ERROR: Command errored out with exit status 1:
command: /home/apsisdev/anaconda3/envs/pydetectron2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/apsisdev/detectron2/setup.py'"'"'; file='"'"'/home/apsisdev/detectron2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/apsisdev/detectron2/
Complete output (92 lines):
running develop
running egg_info
writing detectron2.egg-info/PKG-INFO
writing dependency_links to detectron2.egg-info/dependency_links.txt
writing requirements to detectron2.egg-info/requires.txt
writing top-level names to detectron2.egg-info/top_level.txt
reading manifest file 'detectron2.egg-info/SOURCES.txt'
writing manifest file 'detectron2.egg-info/SOURCES.txt'
running build_ext
building 'detectron2.C' extension
Emitting ninja build file /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/6] /bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.o
/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[2/6] /bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.o
/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[3/6] /bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.o
/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[4/6] /bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.o
/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[5/6] /bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.o
/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/deformable/deform_conv_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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[6/6] /bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/cuda_version.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/cuda_version.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/cuda_version.o
/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/csrc/cuda_version.o.d -DWITH_CUDA -I/home/apsisdev/detectron2/detectron2/layers/csrc -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/TH -I/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/include/THC -I/include -I/home/apsisdev/anaconda3/envs/pydetectron2/include/python3.8 -c -c /home/apsisdev/detectron2/detectron2/layers/csrc/cuda_version.cu -o /home/apsisdev/detectron2/build/temp.linux-x86_64-3.8/home/apsisdev/detectron2/detectron2/layers/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'"'"'' -O3 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1667, in _run_ninja_build
subprocess.run(
File "/home/apsisdev/anaconda3/envs/pydetectron2/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
ERROR: Command errored out with exit status 1: /home/apsisdev/anaconda3/envs/pydetectron2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/apsisdev/detectron2/setup.py'"'"'; file='"'"'/home/apsisdev/detectron2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
when i run :
python -c 'import torch; print(torch.config.show())'
i get,
PyTorch built with:
i am reopening this issue as this one has closed : #2909
Beta Was this translation helpful? Give feedback.
All reactions