Open Ronaldskp opened 1 month ago
Friend, I have also encountered the same problem. Have you solved this problem?
Friend, I have also encountered the same problem. Have you solved this problem?
yes , it's ok
朋友,我也遇到了同样的问题。你解决了吗?
好的,可以
May I ask how you solved this problem?
I'm encountering some issues with python setup.py install. I'm using GCC 12.3 and CUDA 12.1
(bp) root@s:/home/BP-Net-main/exts# python setup.py install running install /root/miniconda3/envs/bp/lib/python3.9/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() /root/miniconda3/envs/bp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: 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. ********************************************************************************
!! self.initialize_options() running bdist_egg running egg_info writing BpOps.egg-info/PKG-INFO writing dependency_links to BpOps.egg-info/dependency_links.txt writing top-level names to BpOps.egg-info/top_level.txt /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/utils/cpp_extension.py:500: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) reading manifest file 'BpOps.egg-info/SOURCES.txt' writing manifest file 'BpOps.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/utils/cpp_extension.py:425: UserWarning: There are no /root/miniconda3/envs/bp/bin/x86_64-conda-linux-gnu-c++ 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}') building 'BpOps' extension creating build creating build/temp.linux-x86_64-cpython-39 /root/miniconda3/envs/bp/bin/x86_64-conda-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/bp/include -fPIC -O2 -isystem /root/miniconda3/envs/bp/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /root/miniconda3/envs/bp/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /root/miniconda3/envs/bp/include -fPIC -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/TH -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/root/miniconda3/envs/bp/include/python3.9 -c bp_cuda.cpp -o build/temp.linux-x86_64-cpython-39/bp_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=BpOps -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 /usr/local/cuda-12.1/bin/nvcc -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/TH -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/root/miniconda3/envs/bp/include/python3.9 -c bp_cuda_kernel.cu -o build/temp.linux-x86_64-cpython-39/bp_cuda_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=BpOps -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -ccbin /root/miniconda3/envs/bp/bin/x86_64-conda-linux-gnu-cc -std=c++17 /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h: In function 'typename pybind11::detail::type_caster
::cast_op_type pybind11::detail::cast_op(make_caster&)': /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected template-name before '<' token 45 | return caster.operator typename make_caster::template cast_op_type(); | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected identifier before '<' token /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:123: error: expected primary-expression before '>' token 45 | return caster.operator typename make_caster::template cast_op_type(); | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:126: error: expected primary-expression before ')' token 45 | return caster.operator typename make_caster::template cast_op_type(); | ^ bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:138:39: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 138 | AT_DISPATCH_FLOATING_TYPES(Pc.type(), "DistF1_Cuda", ([&] { | ~~~^~ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:225:1: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^ ~~ bp_cuda_kernel.cu:138:144: warning: 'c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)' is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] 138 | AT_DISPATCH_FLOATING_TYPES(Pc.type(), "DistF1_Cuda", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/Dispatch.h:109:1: note: declared here 109 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^~~ bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:154:38: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ~~^~ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:225:1: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^ ~~ bp_cuda_kernel.cu:154:141: warning: 'c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)' is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/Dispatch.h:109:1: note: declared here 109 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^~~bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:154:1001: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:154:1023: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:154:1045: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:154:1906: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:154:1927: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:154:1948: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:169:38: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { |~~^~ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:225:1: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^ ~~ bp_cuda_kernel.cu:169:141: warning: 'c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)' is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/Dispatch.h:109:1: note: declared here 109 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^~~~~ bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:169:1001: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:1023: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:1046: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:1069: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:1092: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:169:1953: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:1974: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:1996: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:2018: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ bp_cuda_kernel.cu:169:2040: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here 247 | T data() const { | ^ ~~ error: command '/usr/local/cuda-12.1/bin/nvcc' failed with exit code 1``
Same issue. Could you please tell me how to solve the problem? THX My nvcc version is: nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Mon_Apr__3_17:16:06_PDT_2023 Cuda compilation tools, release 12.1, V12.1.105 Build cuda_12.1.r12.1/compiler.32688072_0
I am running the code in a docker container. After some simple initialization, I only installed conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia
and then executed setup.py. I think it may be a problem of too many dependencies
I am running the code in a docker container. After some simple initialization, I only installed
conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia
and then executed setup.py. I think it may be a problem of too many dependencies
I use conda, follow 'conda env create -f environment.yml'. I install pytorch again using 'pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia', but it doesn't work. Should I recreate a new conda environment where I only install pytorch? By the way, which python verson do you set?
Yes, you can try it. I use containers to completely isolate the environment. I remember it should still be python 3.8. This should not affect
Yes, you can try it. I use containers to completely isolate the environment. I remember it should still be python 3.8. This should not affect
Got it! Thanks for the quick response.
I'm encountering some issues with python setup.py install. I'm using GCC 12.3 and CUDA 12.1
(bp) root@s:/home/BP-Net-main/exts# python setup.py install running install /root/miniconda3/envs/bp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
!! self.initialize_options() /root/miniconda3/envs/bp/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !!
!! self.initialize_options() running bdist_egg running egg_info writing BpOps.egg-info/PKG-INFO writing dependency_links to BpOps.egg-info/dependency_links.txt writing top-level names to BpOps.egg-info/top_level.txt /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/utils/cpp_extension.py:500: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) reading manifest file 'BpOps.egg-info/SOURCES.txt' writing manifest file 'BpOps.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/utils/cpp_extension.py:425: UserWarning: There are no /root/miniconda3/envs/bp/bin/x86_64-conda-linux-gnu-c++ 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}') building 'BpOps' extension creating build creating build/temp.linux-x86_64-cpython-39 /root/miniconda3/envs/bp/bin/x86_64-conda-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/bp/include -fPIC -O2 -isystem /root/miniconda3/envs/bp/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /root/miniconda3/envs/bp/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /root/miniconda3/envs/bp/include -fPIC -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/TH -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/root/miniconda3/envs/bp/include/python3.9 -c bp_cuda.cpp -o build/temp.linux-x86_64-cpython-39/bp_cuda.o -g -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=BpOps -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17 /usr/local/cuda-12.1/bin/nvcc -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/TH -I/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/root/miniconda3/envs/bp/include/python3.9 -c bp_cuda_kernel.cu -o build/temp.linux-x86_64-cpython-39/bp_cuda_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=BpOps -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -ccbin /root/miniconda3/envs/bp/bin/x86_64-conda-linux-gnu-cc -std=c++17 /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h: In function 'typename pybind11::detail::type_caster<typename pybind11::detail::intrinsic_type::type>::cast_op_type pybind11::detail::cast_op(make_caster&)':
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected template-name before '<' token
45 | return caster.operator typename make_caster::template cast_op_type();
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:120: error: expected identifier before '<' token
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:123: error: expected primary-expression before '>' token
45 | return caster.operator typename make_caster::template cast_op_type();
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/pybind11/detail/../cast.h:45:126: error: expected primary-expression before ')' token
45 | return caster.operator typename make_caster::template cast_op_type();
| ^
bp_cuda_kernel.cu: In lambda function:
bp_cuda_kernel.cu:138:39: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
138 | AT_DISPATCH_FLOATING_TYPES(Pc.type(), "DistF1_Cuda", ([&] {
| () is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:154:1023: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:154:1045: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu: In lambda function:
bp_cuda_kernel.cu:154:1906: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:154:1927: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:154:1948: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu: In lambda function:
bp_cuda_kernel.cu:169:38: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| () is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:1023: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:1046: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:1069: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:1092: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu: In lambda function:
bp_cuda_kernel.cu:169:1953: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:1974: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:1996: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:2018: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
bp_cuda_kernel.cu:169:2040: warning: 'T at::Tensor::data() const [with T = float]' is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] {
| ^
/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:247:1: note: declared here
247 | T data() const {
| ^ ~~
error: command '/usr/local/cuda-12.1/bin/nvcc' failed with exit code 1``
~~~~~^~ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:225:1: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^ ~~ bp_cuda_kernel.cu:138:144: warning: 'c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)' is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] 138 | AT_DISPATCH_FLOATING_TYPES(Pc.type(), "DistF1_Cuda", ([&] { | ^/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/Dispatch.h:109:1: note: declared here 109 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^
~~bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:154:38: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { |~~~~^~ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:225:1: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^ ~~ bp_cuda_kernel.cu:154:141: warning: 'c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)' is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] 154 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LF", ([&] { | ^/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/Dispatch.h:109:1: note: declared here 109 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^
~~bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:154:1001: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data~~~~^~ /root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:225:1: note: declared here 225 | DeprecatedTypeProperties & type() const { | ^ ~~ bp_cuda_kernel.cu:169:141: warning: 'c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)' is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] 169 | AT_DISPATCH_FLOATING_TYPES(x.type(), "Conv2d_LB", ([&] { | ^/root/miniconda3/envs/bp/lib/python3.9/site-packages/torch/include/ATen/Dispatch.h:109:1: note: declared here 109 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^
~~bp_cuda_kernel.cu: In lambda function: bp_cuda_kernel.cu:169:1001: warning: 'T at::Tensor::data() const [with T = double]' is deprecated: Tensor.data