ShichenLiu / SoftRas

Project page of paper "Soft Rasterizer: A Differentiable Renderer for Image-based 3D Reasoning"
MIT License
1.24k stars 156 forks source link

ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory #78

Closed pfvaldez closed 3 years ago

pfvaldez commented 3 years ago

Hello

Thank you for your work. I tried running it however I keep getting this error I am running it on a RTX 3070 machine.

import soft_renderer.cuda.load_textures as load_textures_cuda

ImportError: libcudart.so.11.0: cannot open shared object file: No such file or director

ShichenLiu commented 3 years ago

This might be due to the version difference between the cuda and the pytorch. Also, I haven't tried cuda 11, so cuda 10 is recommended.

pfvaldez commented 3 years ago

Hello Thank you for your reply. I updated the versions to sync them, unfortunately RTX 30 has no support for CUDA 10 so I have no choice but to use CUDA 11

$ nvidia-smi Thu Apr 29 19:47:24 2021
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 460.73.01 Driver Version: 460.73.01 CUDA Version: 11.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 GeForce RTX 3070 Off | 00000000:09:00.0 On | N/A | | 0% 41C P8 12W / 220W | 464MiB / 7979MiB | 1% Default | | | | N/A | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1191 G /usr/lib/xorg/Xorg 18MiB | | 0 N/A N/A 1282 G /usr/bin/gnome-shell 46MiB | | 0 N/A N/A 2370 G /usr/lib/xorg/Xorg 213MiB | | 0 N/A N/A 2530 G /usr/bin/gnome-shell 50MiB | | 0 N/A N/A 2985 G ...AAAAAAAA== --shared-files 57MiB | | 0 N/A N/A 4485 G ...AAAAAAAAA= --shared-files 72MiB | +-----------------------------------------------------------------------------+

CuDNN

$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Mon_Nov_30_19:08:53_PST_2020 Cuda compilation tools, release 11.2, V11.2.67 Build cuda_11.2.r11.2/compiler.29373293_0

PyTorch CUDA $ python Python 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

import torch torch.version.cuda '11.1'

Conda CUDA Toolkit

cudatoolkit 11.1.1 h6406543_8 conda-forge

However I get this error:

import soft_renderer.cuda.load_textures as load_textures_cuda ImportError: /home/pfvaldez/miniconda3/envs/umr/lib/python3.6/site-packages/soft_renderer-1.0.0-py3.6-linux-x86_64.egg/soft_renderer/cuda/load_textures.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E

Do you have any suggestions how to solve this?

ShichenLiu commented 3 years ago

@pfvaldez I don't have cuda 11 on my machine. But the undefined symbol issue might be because you tired to install the package with another environment? Can you try complete remove the package in /home/pfvaldez/miniconda3/envs/umr/lib/python3.6/site-packages/ and rebuild it? And for your previous issue, I think you should manually install libcudart. But I found cudatoolkit should do the trick.

pfvaldez commented 3 years ago

Hello, I tried to re install it in a new conda environment. -updated torchvision version to match torch version -Added CUDA arch 3.0, 3.2 to python3.6/site-packages/torch/utils/cpp_extension.py -Changed AT_CHECK to TORCH_CHECK to create_texture_image_cuda.cpp, load_textures_cuda.cpp, soft_rasterize_cuda.cpp, voxelization_cuda.cpp

This is what I got from my terminal:

$ python3 setup.py install
running install
running bdist_egg
running egg_info
writing soft_renderer.egg-info/PKG-INFO
writing dependency_links to soft_renderer.egg-info/dependency_links.txt
writing requirements to soft_renderer.egg-info/requires.txt
writing top-level names to soft_renderer.egg-info/top_level.txt
reading manifest file 'soft_renderer.egg-info/SOURCES.txt'
writing manifest file 'soft_renderer.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'soft_renderer.cuda.load_textures' extension
Emitting ninja build file /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o.d -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/TH -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/pfvaldez/anaconda3/envs/umr_v5/include/python3.6m -c -c /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda_kernel.cu -o /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_32,code=sm_32 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_72,code=sm_72 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o 
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o.d -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/TH -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/pfvaldez/anaconda3/envs/umr_v5/include/python3.6m -c -c /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda_kernel.cu -o /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_32,code=sm_32 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_72,code=sm_72 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal   : Unsupported gpu architecture 'compute_30'
[2/2] c++ -MMD -MF /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/pfvaldez/anaconda3/envs/umr_v5/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/TH -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/pfvaldez/anaconda3/envs/umr_v5/include/python3.6m -c -c /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp -o /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:140:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
 #pragma omp parallel for if ((end - begin) >= grain_size)

In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp: In function ‘at::Tensor load_textures(at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:27:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(image);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:28:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(faces);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:29:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(is_update);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:30:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(textures);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
    env=env)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "setup.py", line 38, in <module>
    cmdclass = {'build_ext': BuildExtension}
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
    self.run_command('bdist_egg')
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 164, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
    self.run_command(cmdname)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
    build_ext.build_extensions(self)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1359, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
ShichenLiu commented 3 years ago

You can check out #84

yudian11 commented 1 year ago

Hello, I tried to re install it in a new conda environment. -updated torchvision version to match torch version -Added CUDA arch 3.0, 3.2 to python3.6/site-packages/torch/utils/cpp_extension.py -Changed AT_CHECK to TORCH_CHECK to create_texture_image_cuda.cpp, load_textures_cuda.cpp, soft_rasterize_cuda.cpp, voxelization_cuda.cpp

This is what I got from my terminal:

$ python3 setup.py install
running install
running bdist_egg
running egg_info
writing soft_renderer.egg-info/PKG-INFO
writing dependency_links to soft_renderer.egg-info/dependency_links.txt
writing requirements to soft_renderer.egg-info/requires.txt
writing top-level names to soft_renderer.egg-info/top_level.txt
reading manifest file 'soft_renderer.egg-info/SOURCES.txt'
writing manifest file 'soft_renderer.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'soft_renderer.cuda.load_textures' extension
Emitting ninja build file /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o.d -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/TH -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/pfvaldez/anaconda3/envs/umr_v5/include/python3.6m -c -c /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda_kernel.cu -o /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_32,code=sm_32 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_72,code=sm_72 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o 
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o.d -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/TH -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/pfvaldez/anaconda3/envs/umr_v5/include/python3.6m -c -c /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda_kernel.cu -o /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_32,code=sm_32 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_53,code=sm_53 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_72,code=sm_72 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal   : Unsupported gpu architecture 'compute_30'
[2/2] c++ -MMD -MF /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/pfvaldez/anaconda3/envs/umr_v5/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/TH -I/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/pfvaldez/anaconda3/envs/umr_v5/include/python3.6m -c -c /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp -o /home/pfvaldez/Development/UMR/external/SoftRas/build/temp.linux-x86_64-3.6/soft_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:140:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
 #pragma omp parallel for if ((end - begin) >= grain_size)

In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp: In function ‘at::Tensor load_textures(at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:27:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(image);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:28:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(faces);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:29:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(is_update);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:42: 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]
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:16:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:18:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:30:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(textures);
     ^
In file included from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /home/pfvaldez/Development/UMR/external/SoftRas/soft_renderer/cuda/load_textures_cuda.cpp:1:
/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
    env=env)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "setup.py", line 38, in <module>
    cmdclass = {'build_ext': BuildExtension}
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
    self.run_command('bdist_egg')
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 164, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
    self.run_command(cmdname)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
    build_ext.build_extensions(self)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1359, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/pfvaldez/anaconda3/envs/umr_v5/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

@pfvaldez hello, can you tell me how to solve this problems, i meet the same troble, thanks