pytorch3d
pytorch3d copied to clipboard
Error "RuntimeError: Error compiling objects for extension"
🐛 Bugs / Unexpected behaviors
The system I used is:
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
The environment is as below:
# Name Version Build Channel
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
aiofiles 22.1.0 py38h06a4308_0
aiohttp 3.9.0 pypi_0 pypi
aiosignal 1.3.1 pypi_0 pypi
aiosqlite 0.18.0 py38h06a4308_0
anyio 3.5.0 py38h06a4308_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py38h7f8727e_0
asttokens 2.0.5 pyhd3eb1b0_0
async-timeout 4.0.3 pypi_0 pypi
attrs 23.1.0 py38h06a4308_0
babel 2.11.0 py38h06a4308_0
backcall 0.2.0 pyhd3eb1b0_0
beautifulsoup4 4.12.2 py38h06a4308_0
blas 1.0 mkl
bleach 4.1.0 pyhd3eb1b0_0
brotli-python 1.0.9 py38h6a678d5_7
bzip2 1.0.8 h7b6447c_0
ca-certificates 2023.08.22 h06a4308_0
certifi 2023.11.17 py38h06a4308_0
cffi 1.16.0 py38h5eee18b_0
charset-normalizer 2.0.4 pyhd3eb1b0_0
comm 0.1.2 py38h06a4308_0
contourpy 1.1.1 pypi_0 pypi
cryptography 41.0.3 py38hdda0065_0
cuda-cudart 12.1.105 0 nvidia
cuda-cupti 12.1.105 0 nvidia
cuda-libraries 12.1.0 0 nvidia
cuda-nvrtc 12.1.105 0 nvidia
cuda-nvtx 12.1.105 0 nvidia
cuda-opencl 12.3.101 0 nvidia
cuda-runtime 12.1.0 0 nvidia
cycler 0.12.1 pypi_0 pypi
cyrus-sasl 2.1.28 h52b45da_1
dbus 1.13.18 hb2f20db_0
debugpy 1.6.7 py38h6a678d5_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
entrypoints 0.4 py38h06a4308_0
executing 0.8.3 pyhd3eb1b0_0
expat 2.5.0 h6a678d5_0
ffmpeg 4.3 hf484d3e_0 pytorch
filelock 3.9.0 py38h06a4308_0
fontconfig 2.14.1 h4c34cd2_2
fonttools 4.45.0 pypi_0 pypi
freetype 2.12.1 h4a9f257_0
frozenlist 1.4.0 pypi_0 pypi
fsspec 2023.10.0 pypi_0 pypi
fvcore 0.1.5.post20221221 pypi_0 pypi
giflib 5.2.1 h5eee18b_3
glib 2.69.1 he621ea3_2
gmp 6.2.1 h295c915_3
gmpy2 2.1.2 py38heeb90bb_0
gnutls 3.6.15 he1e5248_0
gst-plugins-base 1.14.1 h6a678d5_1
gstreamer 1.14.1 h5eee18b_1
icu 73.1 h6a678d5_0
idna 3.4 py38h06a4308_0
imageio 2.33.0 pypi_0 pypi
importlib-metadata 6.0.0 py38h06a4308_0
importlib-resources 6.1.1 pypi_0 pypi
importlib_metadata 6.0.0 hd3eb1b0_0
importlib_resources 6.1.0 py38h06a4308_0
intel-openmp 2023.1.0 hdb19cb5_46306
iopath 0.1.10 pypi_0 pypi
ipykernel 6.25.0 py38h2f386ee_0
ipython 8.12.2 py38h06a4308_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 8.0.4 py38h06a4308_0
jedi 0.18.1 py38h06a4308_1
jinja2 3.1.2 py38h06a4308_0
jpeg 9e h5eee18b_1
json5 0.9.6 pyhd3eb1b0_0
jsonschema 4.19.2 py38h06a4308_0
jsonschema-specifications 2023.7.1 py38h06a4308_0
jupyter 1.0.0 py38h06a4308_8
jupyter_client 7.4.9 py38h06a4308_0
jupyter_console 6.6.3 py38h06a4308_0
jupyter_core 5.5.0 py38h06a4308_0
jupyter_events 0.8.0 py38h06a4308_0
jupyter_server 1.23.4 py38h06a4308_0
jupyter_server_fileid 0.9.0 py38h06a4308_0
jupyter_server_ydoc 0.8.0 py38h06a4308_1
jupyter_ydoc 0.2.4 py38h06a4308_0
jupyterlab 3.6.3 py38h06a4308_0
jupyterlab_pygments 0.2.2 py38h06a4308_0
jupyterlab_server 2.25.1 py38h06a4308_0
jupyterlab_widgets 3.0.9 py38h06a4308_0
kiwisolver 1.4.5 pypi_0 pypi
krb5 1.20.1 h143b758_1
lame 3.100 h7b6447c_0
lazy-loader 0.3 pypi_0 pypi
lcms2 2.12 h3be6417_0
ld_impl_linux-64 2.38 h1181459_1
lerc 3.0 h295c915_0
libclang 14.0.6 default_hc6dbbc7_1
libclang13 14.0.6 default_he11475f_1
libcublas 12.1.0.26 0 nvidia
libcufft 11.0.2.4 0 nvidia
libcufile 1.8.1.2 0 nvidia
libcups 2.4.2 h2d74bed_1
libcurand 10.3.4.101 0 nvidia
libcusolver 11.4.4.55 0 nvidia
libcusparse 12.0.2.55 0 nvidia
libdeflate 1.17 h5eee18b_1
libedit 3.1.20221030 h5eee18b_0
libffi 3.4.4 h6a678d5_0
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libiconv 1.16 h7f8727e_2
libidn2 2.3.4 h5eee18b_0
libjpeg-turbo 2.0.0 h9bf148f_0 pytorch
libllvm14 14.0.6 hdb19cb5_3
libnpp 12.0.2.50 0 nvidia
libnvjitlink 12.1.105 0 nvidia
libnvjpeg 12.1.1.14 0 nvidia
libpng 1.6.39 h5eee18b_0
libpq 12.15 hdbd6064_1
libsodium 1.0.18 h7b6447c_0
libstdcxx-ng 11.2.0 h1234567_1
libtasn1 4.19.0 h5eee18b_0
libtiff 4.5.1 h6a678d5_0
libunistring 0.9.10 h27cfd23_0
libuuid 1.41.5 h5eee18b_0
libwebp 1.3.2 h11a3e52_0
libwebp-base 1.3.2 h5eee18b_0
libxcb 1.15 h7f8727e_0
libxkbcommon 1.0.1 h5eee18b_1
libxml2 2.10.4 hf1b16e4_1
lightning-utilities 0.10.0 pypi_0 pypi
llvm-openmp 14.0.6 h9e868ea_0
lz4-c 1.9.4 h6a678d5_0
markupsafe 2.1.1 py38h7f8727e_0
matplotlib 3.7.4 pypi_0 pypi
matplotlib-inline 0.1.6 py38h06a4308_0
mistune 2.0.4 py38h06a4308_0
mkl 2023.1.0 h213fc3f_46344
mkl-service 2.4.0 py38h5eee18b_1
mkl_fft 1.3.8 py38h5eee18b_0
mkl_random 1.2.4 py38hdb19cb5_0
mpc 1.1.0 h10f8cd9_1
mpfr 4.0.2 hb69a4c5_1
mpmath 1.3.0 py38h06a4308_0
multidict 6.0.4 pypi_0 pypi
mysql 5.7.24 h721c034_2
nbclassic 1.0.0 py38h06a4308_0
nbclient 0.8.0 py38h06a4308_0
nbconvert 7.10.0 py38h06a4308_0
nbformat 5.9.2 py38h06a4308_0
ncurses 6.4 h6a678d5_0
nest-asyncio 1.5.6 py38h06a4308_0
nettle 3.7.3 hbbd107a_1
networkx 3.1 py38h06a4308_0
notebook 6.5.4 py38h06a4308_1
notebook-shim 0.2.3 py38h06a4308_0
numpy 1.24.3 py38hf6e8229_1
numpy-base 1.24.3 py38h060ed82_1
nvidiacub 1.10.0 0 bottler
opencv-python 4.8.1.78 pypi_0 pypi
openh264 2.1.1 h4ff587b_0
openjpeg 2.4.0 h3ad879b_0
openssl 3.0.12 h7f8727e_0
packaging 23.2 pypi_0 pypi
pandocfilters 1.5.0 pyhd3eb1b0_0
parso 0.8.3 pyhd3eb1b0_0
pcre 8.45 h295c915_0
pexpect 4.8.0 pyhd3eb1b0_3
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 10.0.1 py38ha6cbd5a_0
pip 23.3 py38h06a4308_0
pkgutil-resolve-name 1.3.10 py38h06a4308_0
platformdirs 3.10.0 py38h06a4308_0
plotly 5.18.0 pypi_0 pypi
ply 3.11 py38_0
portalocker 2.8.2 pypi_0 pypi
prometheus_client 0.14.1 py38h06a4308_0
prompt-toolkit 3.0.36 py38h06a4308_0
prompt_toolkit 3.0.36 hd3eb1b0_0
psutil 5.9.0 py38h5eee18b_0
ptyprocess 0.7.0 pyhd3eb1b0_2
pure_eval 0.2.2 pyhd3eb1b0_0
pycparser 2.21 pyhd3eb1b0_0
pygments 2.15.1 py38h06a4308_1
pyopenssl 23.2.0 py38h06a4308_0
pyparsing 3.1.1 pypi_0 pypi
pyqt 5.15.10 py38h6a678d5_0
pyqt5-sip 12.13.0 py38h5eee18b_0
pysocks 1.7.1 py38h06a4308_0
python 3.8.18 h955ad1f_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python-fastjsonschema 2.16.2 py38h06a4308_0
python-json-logger 2.0.7 py38h06a4308_0
pytorch 2.1.0 py3.8_cuda12.1_cudnn8.9.2_0 pytorch
pytorch-cuda 12.1 ha16c6d3_5 pytorch
pytorch-lightning 2.1.2 pypi_0 pypi
pytorch-mutex 1.0 cuda pytorch
pytz 2023.3.post1 py38h06a4308_0
pywavelets 1.4.1 pypi_0 pypi
pyyaml 6.0.1 py38h5eee18b_0
pyzmq 23.2.0 py38h6a678d5_0
qt-main 5.15.2 h53bd1ea_10
qtconsole 5.5.0 py38h06a4308_0
qtpy 2.4.1 py38h06a4308_0
readline 8.2 h5eee18b_0
referencing 0.30.2 py38h06a4308_0
requests 2.31.0 py38h06a4308_0
rfc3339-validator 0.1.4 py38h06a4308_0
rfc3986-validator 0.1.1 py38h06a4308_0
rpds-py 0.10.6 py38hb02cf49_0
scikit-image 0.21.0 pypi_0 pypi
scipy 1.10.1 pypi_0 pypi
send2trash 1.8.2 py38h06a4308_0
setuptools 68.0.0 py38h06a4308_0
sip 6.7.12 py38h6a678d5_0
six 1.16.0 pyhd3eb1b0_1
sniffio 1.2.0 py38h06a4308_1
soupsieve 2.5 py38h06a4308_0
sqlite 3.41.2 h5eee18b_0
stack_data 0.2.0 pyhd3eb1b0_0
sympy 1.11.1 py38h06a4308_0
tabulate 0.9.0 pypi_0 pypi
tbb 2021.8.0 hdb19cb5_0
tenacity 8.2.3 pypi_0 pypi
termcolor 2.3.0 pypi_0 pypi
terminado 0.17.1 py38h06a4308_0
tifffile 2023.7.10 pypi_0 pypi
tinycss2 1.2.1 py38h06a4308_0
tk 8.6.12 h1ccaba5_0
tomli 2.0.1 py38h06a4308_0
torchaudio 2.1.0 py38_cu121 pytorch
torchmetrics 1.2.0 pypi_0 pypi
torchtriton 2.1.0 py38 pytorch
torchvision 0.16.0 py38_cu121 pytorch
tornado 6.3.3 py38h5eee18b_0
tqdm 4.66.1 pypi_0 pypi
traitlets 5.7.1 py38h06a4308_0
typing-extensions 4.7.1 py38h06a4308_0
typing_extensions 4.7.1 py38h06a4308_0
urllib3 1.26.18 py38h06a4308_0
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py38_1
websocket-client 0.58.0 py38h06a4308_4
wheel 0.41.2 py38h06a4308_0
widgetsnbextension 4.0.5 py38h06a4308_0
xz 5.4.2 h5eee18b_0
y-py 0.5.9 py38h52d8a92_0
yacs 0.1.8 pypi_0 pypi
yaml 0.2.5 h7b6447c_0
yarl 1.9.3 pypi_0 pypi
ypy-websocket 0.8.2 py38h06a4308_0
zeromq 4.3.4 h2531618_0
zipp 3.17.0 pypi_0 pypi
zlib 1.2.13 h5eee18b_0
zstd 1.5.5 hc292b87_0
I installed pytorch3d-0.7.5
with the command line "pip install -e .", but get the error as below:
46 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/./global.h:47: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
47 | #pragma clang diagnostic ignored "-Weverything"
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/warnings.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/./global.h:49: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
49 | #pragma clang diagnostic pop
|
[55/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/rasterize_points/rasterize_points_cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[56/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/points_to_volumes/points_to_volumes_cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/points_to_volumes/points_to_volumes_cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/points_to_volumes/points_to_volumes_cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[57/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[58/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/sample_farthest_points/sample_farthest_points_cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/sample_farthest_points/sample_farthest_points_cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/sample_farthest_points/sample_farthest_points_cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[59/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_gradients.device.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_gradients.instantiate.h:9,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:46: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
46 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:47: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
47 | #pragma clang diagnostic ignored "-Weverything"
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_gradients.device.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_gradients.instantiate.h:9,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:49: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
49 | #pragma clang diagnostic pop
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_gradients.device.h:13,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_gradients.instantiate.h:9,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././commands.h:29: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
29 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././commands.h:30: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
30 | #pragma clang diagnostic ignored "-Weverything"
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././commands.h:31: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
31 | #pragma clang diagnostic pop
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././commands.h:32,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_gradients.device.h:13,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_gradients.instantiate.h:9,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_gradients.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_gradients.device.h: In instantiation of ‘void pulsar::Renderer::calc_gradients(pulsar::CamInfo, const float*, float, const float3*, const float*, const float*, const float*, uint, const float*, const float*, const pulsar::Renderer::DrawInfo*, const pulsar::Renderer::IntersectInfo*, bool, bool, bool, bool, bool, float*, float*, float3*, pulsar::CamGradInfo*, float*, int*, int, uint, uint) [with bool DEV = false; float3 = float3; uint = unsigned int]’:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_gradients.instantiate.h:45:22: required from here
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././../host/commands.h:349:8: warning: variable ‘blockDim’ set but not used [-Wunused-but-set-variable]
349 | int2 blockDim; \
| ^~~~~~~~
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././../host/commands.h:349:8: note: in definition of macro ‘GET_PARALLEL_IDS_2D’
349 | int2 blockDim; \
| ^~~~~~~~
[60/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_signature.device.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_signature.instantiate.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:46: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
46 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:47: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
47 | #pragma clang diagnostic ignored "-Weverything"
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_signature.device.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_signature.instantiate.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:49: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
49 | #pragma clang diagnostic pop
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././camera.device.h:14,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.calc_signature.device.h:13,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.calc_signature.instantiate.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.calc_signature.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./././commands.h:29: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
29 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./././commands.h:30: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
30 | #pragma clang diagnostic ignored "-Weverything"
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./././commands.h:31: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
31 | #pragma clang diagnostic pop
|
[61/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/marching_cubes/marching_cubes_cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/marching_cubes/marching_cubes_cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/marching_cubes/marching_cubes_cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[62/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.create_selector.device.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.create_selector.instantiate.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:46: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
46 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:47: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
47 | #pragma clang diagnostic ignored "-Weverything"
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.create_selector.device.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.create_selector.instantiate.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./../global.h:49: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
49 | #pragma clang diagnostic pop
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/./renderer.create_selector.device.h:13,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/renderer.create_selector.instantiate.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/renderer.create_selector.cpu.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././commands.h:29: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
29 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././commands.h:30: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
30 | #pragma clang diagnostic ignored "-Weverything"
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/host/../include/././commands.h:31: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
31 | #pragma clang diagnostic pop
|
[63/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/tensor_util.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/tensor_util.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/tensor_util.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[64/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/point_mesh/point_mesh_cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/point_mesh/point_mesh_cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/point_mesh/point_mesh_cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[65/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/renderer.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/renderer.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/renderer.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/./renderer.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/renderer.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/./../global.h:46: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
46 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/./../global.h:47: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
47 | #pragma clang diagnostic ignored "-Weverything"
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/./renderer.h:12,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/renderer.cpp:9:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/./../global.h:49: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
49 | #pragma clang diagnostic pop
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/renderer.cpp:10:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/../include/commands.h:29: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
29 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/../include/commands.h:30: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
30 | #pragma clang diagnostic ignored "-Weverything"
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/pulsar/pytorch/../include/commands.h:31: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
31 | #pragma clang diagnostic pop
|
[66/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
[67/67] c++ -MMD -MF /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ext.o.d -pthread -B /media/HDD0/lzl/anaconda3/envs/nerf-loc/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ext.cpp -o /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ext.o -std=c++17 -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
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ext.cpp:10:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/./pulsar/global.h:46: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
46 | #pragma clang diagnostic push
|
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/./pulsar/global.h:47: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
47 | #pragma clang diagnostic ignored "-Weverything"
|
In file included from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ext.cpp:10:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/./pulsar/global.h:49: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
49 | #pragma clang diagnostic pop
|
In file included from /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/Exceptions.h:14,
from /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/python.h:11,
from /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/extension.h:9,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/./pulsar/global.h:48,
from /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ext.cpp:10:
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ‘class pybind11::class_<pulsar::pytorch::Renderer, std::shared_ptr<pulsar::pytorch::Renderer> >’:
/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ext.cpp:107:70: required from here
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/pybind11/pybind11.h:1496:7: warning: ‘pybind11::class_<pulsar::pytorch::Renderer, std::shared_ptr<pulsar::pytorch::Renderer> >’ declared with greater visibility than its base ‘pybind11::detail::generic_type’ [-Wattributes]
1496 | class class_ : public detail::generic_type {
| ^~~~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2100, in _run_ninja_build
subprocess.run(
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/setup.py", line 144, in <module>
setup(
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py", line 111, in install_for_development
self.run_command('build_ext')
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 873, in build_extensions
build_ext.build_extensions(self)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 686, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2116, 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.
There is no error message, so maybe the build is running in parallel and running out of memory. You could set the environment variable PYTORCH3D_NO_NINJA to 1 and try again, with a non-parallelized build. Or, if you have many cores, you could set the environment variable MAX_JOBS to a small number.
There is no error message, so maybe the build is running in parallel and running out of memory. You could set the environment variable PYTORCH3D_NO_NINJA to 1 and try again, with a non-parallelized build. Or, if you have many cores, you could set the environment variable MAX_JOBS to a small number.
Hi @bottler, thanks for your prompt reply, but when I set PYTORCH3D_NO_NINJA to 1, I got the error below:
export PYTORCH3D_NO_NINJA=1
pip install -e .
Obtaining file:///media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5
Preparing metadata (setup.py) ... done
Requirement already satisfied: fvcore in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.5.post20221221)
Requirement already satisfied: iopath in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.10)
Requirement already satisfied: numpy in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (1.24.3)
Requirement already satisfied: yacs>=0.1.6 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.1.8)
Requirement already satisfied: pyyaml>=5.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (6.0.1)
Requirement already satisfied: tqdm in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (4.66.1)
Requirement already satisfied: termcolor>=1.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (2.3.0)
Requirement already satisfied: Pillow in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (10.0.1)
Requirement already satisfied: tabulate in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.9.0)
Requirement already satisfied: typing-extensions in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (4.7.1)
Requirement already satisfied: portalocker in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (2.8.2)
Installing collected packages: pytorch3d
Running setup.py develop for pytorch3d
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [146 lines of output]
running develop
running egg_info
writing pytorch3d.egg-info/PKG-INFO
writing dependency_links to pytorch3d.egg-info/dependency_links.txt
writing entry points to pytorch3d.egg-info/entry_points.txt
writing requirements to pytorch3d.egg-info/requires.txt
writing top-level names to pytorch3d.egg-info/top_level.txt
reading manifest file 'pytorch3d.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'LICENSE-3RD-PARTY'
writing manifest file 'pytorch3d.egg-info/SOURCES.txt'
running build_ext
building 'pytorch3d._C' extension
/usr/local/cuda/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.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__ -std=c++17 -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
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/usr/local/cuda/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [146 lines of output]
running develop
running egg_info
writing pytorch3d.egg-info/PKG-INFO
writing dependency_links to pytorch3d.egg-info/dependency_links.txt
writing entry points to pytorch3d.egg-info/entry_points.txt
writing requirements to pytorch3d.egg-info/requires.txt
writing top-level names to pytorch3d.egg-info/top_level.txt
reading manifest file 'pytorch3d.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'LICENSE-3RD-PARTY'
writing manifest file 'pytorch3d.egg-info/SOURCES.txt'
running build_ext
building 'pytorch3d._C' extension
/usr/local/cuda/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.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__ -std=c++17 -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
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/usr/local/cuda/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
I think you have a C++ implementation which is too old. What is the output of nvcc --version
and g++ --version
?
Or possibly a cub version clash.
export PYTORCH3D_NO_NINJA=1 pip install -e .
I have check my "nvcc" and "g++" as below:
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Feb__7_19:32:13_PST_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0
gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
But when I try to install pytorch3d-0.7.5, I still get the error:
export PYTORCH3D_NO_NINJA=1
pip install -e .
Obtaining file:///media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5
Preparing metadata (setup.py) ... done
Requirement already satisfied: fvcore in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.5.post20221221)
Requirement already satisfied: iopath in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.10)
Requirement already satisfied: numpy in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (1.24.3)
Requirement already satisfied: yacs>=0.1.6 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.1.8)
Requirement already satisfied: pyyaml>=5.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (6.0.1)
Requirement already satisfied: tqdm in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (4.66.1)
Requirement already satisfied: termcolor>=1.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (2.3.0)
Requirement already satisfied: Pillow in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (10.0.1)
Requirement already satisfied: tabulate in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.9.0)
Requirement already satisfied: typing-extensions in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (4.7.1)
Requirement already satisfied: portalocker in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (2.8.2)
Installing collected packages: pytorch3d
Running setup.py develop for pytorch3d
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [146 lines of output]
running develop
running egg_info
writing pytorch3d.egg-info/PKG-INFO
writing dependency_links to pytorch3d.egg-info/dependency_links.txt
writing entry points to pytorch3d.egg-info/entry_points.txt
writing requirements to pytorch3d.egg-info/requires.txt
writing top-level names to pytorch3d.egg-info/top_level.txt
reading manifest file 'pytorch3d.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'LICENSE-3RD-PARTY'
writing manifest file 'pytorch3d.egg-info/SOURCES.txt'
running build_ext
building 'pytorch3d._C' extension
/media/HDD0/lzl/cuda-12.1/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/media/HDD0/lzl/cuda-12.1/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.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__ -std=c++17 -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
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
error: command '/media/HDD0/lzl/cuda-12.1/bin/nvcc' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [146 lines of output]
running develop
running egg_info
writing pytorch3d.egg-info/PKG-INFO
writing dependency_links to pytorch3d.egg-info/dependency_links.txt
writing entry points to pytorch3d.egg-info/entry_points.txt
writing requirements to pytorch3d.egg-info/requires.txt
writing top-level names to pytorch3d.egg-info/top_level.txt
reading manifest file 'pytorch3d.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'LICENSE-3RD-PARTY'
writing manifest file 'pytorch3d.egg-info/SOURCES.txt'
running build_ext
building 'pytorch3d._C' extension
/media/HDD0/lzl/cuda-12.1/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/media/HDD0/lzl/cuda-12.1/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.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__ -std=c++17 -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
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
error: command '/media/HDD0/lzl/cuda-12.1/bin/nvcc' failed with exit code 2
I'm a confused. This failure is in the compilation of ball_query.cu . And ball_query.cu does not use CUB, which is where the error is. (It also doesn't use thrust, which itself uses CUB internally in recent versions.) So I do not understand the sequence of #include
s which got this. Something basic has gone wrong.
Facing the exactly same question qwq
Facing the exactly same question qwq
also,i successfully install it on my serve,but meet error on my local computer
Facing the exactly same question qwq
also,i successfully install it on my serve,but meet error on my local computer
how to solve?
hello,I have solved the same problem
hello,I have solved the same problem
chould yout tell me how to solve this problem please