Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile segmented_reduce in epic_ops. #13

Closed
OolongQian opened this issue May 8, 2024 · 1 comment
Closed

Failed to compile segmented_reduce in epic_ops. #13

OolongQian opened this issue May 8, 2024 · 1 comment

Comments

@OolongQian
Copy link

Dear Haoran:

Recently I am reproducing GAPartNet. When compiling epic_ops repository, I find segmented_reduce operator fails to compile. The compilation output is shown below.

  • r.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = double; index_t = int; int num_channels = 4; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:677: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = double; index_t = long int; int num_channels = 1; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:227: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = double; index_t = long int; int num_channels = 2; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:385: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = double; index_t = long int; int num_channels = 3; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:543: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = double; index_t = long int; int num_channels = 4; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:701: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = int; int num_channels = 1; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:205: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = int; int num_channels = 2; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:361: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = int; int num_channels = 3; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:517: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = int; int num_channels = 4; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:673: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = long int; int num_channels = 1; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:226: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = long int; int num_channels = 2; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:383: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = long int; int num_channels = 3; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:540: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu: In instantiation of ‘void epic_ops::reduce::segmented_reduce_cuda_impl(at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int64_t) [with scalar_t = float; index_t = long int; int num_channels = 4; int64_t = long int]’:
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:173:697: required from here
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:83:19: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    83 | auto values_ptr = reinterpret_cast<array_t<scalar_t, num_channels>>(
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:85:6: warning: ‘T
    at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    85 | auto segment_offsets_begin_ptr = segment_offsets_begin.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/src/epic_ops/cuda/reduce_cuda.cu:86:6: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
    86 | auto segment_offsets_end_ptr = segment_offsets_end.data<index_t>();
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:244:1: note: declared here
    244 | T * data() const {
    | ^ ~~
    [16/17] Install the project...
    -- Install configuration: "Release"
    -- Installing: /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/epic_ops/libepic_ops.so
    -- Set runtime path of "/home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops/epic_ops/libepic_ops.so" to ""
    running develop
    /home/qian/anaconda3/envs/ga/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 Replace easy_install with pip install pypa/setuptools#917 for details.
    easy_install.initialize_options(self)
    /home/qian/anaconda3/envs/ga/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()
    running egg_info
    writing epic_ops.egg-info/PKG-INFO
    writing dependency_links to epic_ops.egg-info/dependency_links.txt
    writing top-level names to epic_ops.egg-info/top_level.txt
    reading manifest file 'epic_ops.egg-info/SOURCES.txt'
    writing manifest file 'epic_ops.egg-info/SOURCES.txt'
    running build_ext
    Creating /home/qian/anaconda3/envs/ga/lib/python3.8/site-packages/epic-ops.egg-link (link to .)
    epic-ops 0.1.0+8af5e3c is already the active version in easy-install.pth
    Installed /home/qian/Desktop/workspace/GAPartNet-ckpt/dependencies/epic_ops
    Processing dependencies for epic-ops==0.1.0+8af5e3c
    Finished processing dependencies for epic-ops==0.1.0+8af5e3

Moreover, when running train.sh, the exception RuntimeError: Voxelize was not compiled with CUDA support is thrown.

If I run epic_ops/reduce.py, AttributeError epic_ops object has no attribute 'segmented_reduce' will be thrown.

I am looking forward to your kind reply.

Best Regards

@OolongQian
Copy link
Author

Sorry. This issue is not well formulated. I will further look into it. I close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant