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

Error related to Ninja during compilation #6

Open
TristanGomez44 opened this issue Oct 8, 2020 · 2 comments
Open

Error related to Ninja during compilation #6

TristanGomez44 opened this issue Oct 8, 2020 · 2 comments

Comments

@TristanGomez44
Copy link

H ! I have followed the instructions to install the repo. But I have an issue when it comes to pip install -e . .
Here's what I obtain :


Obtaining file:///home/gomez-t/rubiksnet
Installing collected packages: rubiksnet
  Running setup.py develop for rubiksnet
    ERROR: Command errored out with exit status 1:
     command: /home/gomez-t/miniconda3/envs/rubiksnet/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/gomez-t/rubiksnet/setup.py'"'"'; __file__='"'"'/home/gomez-t/rubiksnet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /home/gomez-t/rubiksnet/
    Complete output (411 lines):
    running develop
    running egg_info
    writing rubiksnet.egg-info/PKG-INFO
    writing dependency_links to rubiksnet.egg-info/dependency_links.txt
    writing top-level names to rubiksnet.egg-info/top_level.txt
    reading manifest file 'rubiksnet.egg-info/SOURCES.txt'
    writing manifest file 'rubiksnet.egg-info/SOURCES.txt'
    running build_ext
    building 'rubiksnet_cuda' extension
    Emitting ninja build file /home/gomez-t/rubiksnet/build/temp.linux-x86_64-3.7/build.ninja...
    Compiling objects...
    Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
    [1/2] /home/gomez-t/cuda-10.1/bin/nvcc -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/TH -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/THC -I/home/gomez-t/cuda-10.1/include -I/home/gomez-t/miniconda3/envs/rubiksnet/include/python3.7m -c -c /home/gomez-t/rubiksnet/cuda_src/rubiks3d_kernels.cu -o /home/gomez-t/rubiksnet/build/temp.linux-x86_64-3.7/cuda_src/rubiks3d_kernels.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=rubiksnet_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
    FAILED: /home/gomez-t/rubiksnet/build/temp.linux-x86_64-3.7/cuda_src/rubiks3d_kernels.o
    /home/gomez-t/cuda-10.1/bin/nvcc -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/TH -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/THC -I/home/gomez-t/cuda-10.1/include -I/home/gomez-t/miniconda3/envs/rubiksnet/include/python3.7m -c -c /home/gomez-t/rubiksnet/cuda_src/rubiks3d_kernels.cu -o /home/gomez-t/rubiksnet/build/temp.linux-x86_64-3.7/cuda_src/rubiks3d_kernels.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=rubiksnet_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
    /usr/include/c++/7/bits/basic_string.tcc: In instantiation of ‘static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
    /usr/include/c++/7/bits/basic_string.tcc:578:28:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5042:20:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5063:24:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.tcc:656:134:   required from ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/7/bits/basic_string.h:6688:95:   required from here
    /usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’ without object
           __p->_M_set_sharable();
           ~~~~~~~~~^~
    /usr/include/c++/7/bits/basic_string.tcc: In instantiation of ‘static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
    /usr/include/c++/7/bits/basic_string.tcc:578:28:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5042:20:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5063:24:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.tcc:656:134:   required from ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/7/bits/basic_string.h:6693:95:   required from here
    /usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’ without object
    [2/2] /home/gomez-t/cuda-10.1/bin/nvcc -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/TH -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/THC -I/home/gomez-t/cuda-10.1/include -I/home/gomez-t/miniconda3/envs/rubiksnet/include/python3.7m -c -c /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu -o /home/gomez-t/rubiksnet/build/temp.linux-x86_64-3.7/cuda_src/rubiks2d_kernels.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=rubiksnet_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
    FAILED: /home/gomez-t/rubiksnet/build/temp.linux-x86_64-3.7/cuda_src/rubiks2d_kernels.o
    /home/gomez-t/cuda-10.1/bin/nvcc -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/TH -I/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/THC -I/home/gomez-t/cuda-10.1/include -I/home/gomez-t/miniconda3/envs/rubiksnet/include/python3.7m -c -c /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu -o /home/gomez-t/rubiksnet/build/temp.linux-x86_64-3.7/cuda_src/rubiks2d_kernels.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=rubiksnet_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/record_function.h(18): warning: attribute "__visibility__" does not apply here
    
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/profiler.h(97): warning: attribute "__visibility__" does not apply here
    
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/profiler.h(126): warning: attribute "__visibility__" does not apply here
    
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/enum.h(187): warning: statement is unreachable
    
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/record_function.h(18): warning: attribute "__visibility__" does not apply here
    
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/enum.h(187): warning: statement is unreachable
    
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/profiler.h(97): warning: attribute "__visibility__" does not apply here
    
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/profiler.h(126): warning: attribute "__visibility__" does not apply here
    
    /home/gomez-t/rubiksnet/cuda_src/utils.h: In function ‘void torchx::create_tensor_if_empty(at::Tensor&, const at::Tensor&, const string&)’:
    /home/gomez-t/rubiksnet/cuda_src/utils.h:341:18: 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]
             TX_CHECK_TENSOR(output);
                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    /home/gomez-t/rubiksnet/cuda_src/utils.h: In function ‘void torchx::create_tensor_if_empty(at::Tensor&, torchx::ShapeRef, const c10::TensorOptions&, const string&)’:
    /home/gomez-t/rubiksnet/cuda_src/utils.h:363:18: 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]
             TX_CHECK_TENSOR(output);
                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:43: 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]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                               ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:98: 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]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:66:1: note: declared here
     inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
     ^~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:361: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                             ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:442: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:586: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:988: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:1068: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:1211: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:1624: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:1708: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:422:1855: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_forward_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:43: 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]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                               ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:98: 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]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:66:1: note: declared here
     inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
     ^~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:374: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                          ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:449: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:530: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:675: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:1090: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:1164: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:1244: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:1388: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:1814: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:1892: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:1976: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:448:2124: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_shift_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:43: 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]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                               ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:98: 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]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:66:1: note: declared here
     inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
     ^~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:374: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                          ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:449: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:530: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:678: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:1093: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:1167: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:1247: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:1394: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:1820: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:1898: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:1982: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:477:2133: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 4; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
             AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "rubiks2d_backward_input_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:511:48: 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]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(shift_grad.type(), "rubiks2d_normalize_shift_grad_cuda", ([&] {
                                                    ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:1: note: declared here
       DeprecatedTypeProperties & type() const {
     ^ ~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:511:103: 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]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(shift_grad.type(), "rubiks2d_normalize_shift_grad_cuda", ([&] {
                                                                                                           ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:66:1: note: declared here
     inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
     ^~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:511:384: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = double; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(shift_grad.type(), "rubiks2d_normalize_shift_grad_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                    ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:511:656: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = float; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(shift_grad.type(), "rubiks2d_normalize_shift_grad_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu: In lambda function:
    /home/gomez-t/rubiksnet/cuda_src/rubiks2d_kernels.cu:511:939: warning: ‘at::GenericPackedTensorAccessor at::Tensor::packed_accessor() const & [with T = c10::Half; long unsigned int N = 2; PtrTraits = at::RestrictPtrTraits; index_t = unsigned int]’ is deprecated: packed_accessor is deprecated, use packed_accessor32 or packed_accessor64 instead [-Wdeprecated-declarations]
         AT_DISPATCH_FLOATING_TYPES_AND_HALF(shift_grad.type(), "rubiks2d_normalize_shift_grad_cuda", ([&] {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
    /home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:405:1: note: declared here
       GenericPackedTensorAccessor packed_accessor() const & {
     ^ ~~~~~~~~~~~~~
    /usr/include/c++/7/bits/basic_string.tcc: In instantiation of ‘static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
    /usr/include/c++/7/bits/basic_string.tcc:578:28:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5042:20:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5063:24:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.tcc:656:134:   required from ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/7/bits/basic_string.h:6688:95:   required from here
    /usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’ without object
           __p->_M_set_sharable();
           ~~~~~~~~~^~
    /usr/include/c++/7/bits/basic_string.tcc: In instantiation of ‘static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
    /usr/include/c++/7/bits/basic_string.tcc:578:28:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5042:20:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.h:5063:24:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’
    /usr/include/c++/7/bits/basic_string.tcc:656:134:   required from ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
    /usr/include/c++/7/bits/basic_string.h:6693:95:   required from here
    /usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits; _Alloc = std::allocator]’ without object
    ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build
        env=env)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/subprocess.py", line 512, in run
        output=stdout, stderr=stderr)
    subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "", line 1, in 
      File "/home/gomez-t/rubiksnet/setup.py", line 52, in 
        cmdclass={"build_ext": BuildExtension},
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/setuptools/command/develop.py", line 136, in install_for_development
        self.run_command('build_ext')
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
        _build_ext.run(self)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 649, in build_extensions
        build_ext.build_extensions(self)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
        _build_ext.build_extension(self, ext)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
        depends=ext.depends)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 478, in unix_wrap_ninja_compile
        with_cuda=with_cuda)
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects
        error_prefix='Error compiling objects for extension')
      File "/home/gomez-t/miniconda3/envs/rubiksnet/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
        raise RuntimeError(message)
    RuntimeError: Error compiling objects for extension
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/gomez-t/miniconda3/envs/rubiksnet/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/gomez-t/rubiksnet/setup.py'"'"'; __file__='"'"'/home/gomez-t/rubiksnet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

I Have :
Ubuntu 18.04.4
cudatoolkit=10.1
pytorch=1.6.0
torchvision=0.7.0

At the end of the log, it is mentioned that subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1. So I tried to run ninja -v which returned ninja: error: loading 'build.ninja': No such file or directory.

Does anyone know how to solve this issue ? Thank you.

@Fordacre
Copy link

Fordacre commented Dec 9, 2020

Have you solved the problem @TristanGomez44 ? I encountered the same problem when compiling the files. Thanks.

@Maojianzeng
Copy link

I encountered the same problem when compiling the files, too. Have you solved the problem? Thanks.

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

3 participants