Issue 1:
Building from latest source with

python setup.py install

Error Output:

[1853/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCReduceApplyUtils.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCReduceApplyUtils.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCReduceApplyUtils.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCReduceApplyUtils.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCReduceApplyUtils.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

16 errors detected in the compilation of "/tmp/tmpxft_000035eb_00000000-6_THCReduceApplyUtils.cpp1.ii".
CMake Error at caffe2_gpu_generated_THCReduceApplyUtils.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCReduceApplyUtils.cu.o

[1854/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathCompareChar.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathCompareChar.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathCompareChar.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathCompareChar.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathCompareChar.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(123): warning: parsing restarts here after previous syntax error

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_000035d8_00000000-6_THCTensorMathCompareChar.cpp1.ii".
Compilation terminated.
CMake Error at caffe2_gpu_generated_THCTensorMathCompareChar.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathCompareChar.cu.o

[1855/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathCompareTShort.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathCompareTShort.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathCompareTShort.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathCompareTShort.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathCompareTShort.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(123): warning: parsing restarts here after previous syntax error

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_000035cf_00000000-6_THCTensorMathCompareTShort.cpp1.ii".
Compilation terminated.
CMake Error at caffe2_gpu_generated_THCTensorMathCompareTShort.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathCompareTShort.cu.o

[1856/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathPointwiseHalf.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathPointwiseHalf.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathPointwiseHalf.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathPointwiseHalf.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathPointwiseHalf.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(123): warning: parsing restarts here after previous syntax error

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_000035e3_00000000-6_THCTensorMathPointwiseHalf.cpp1.ii".
Compilation terminated.
CMake Error at caffe2_gpu_generated_THCTensorMathPointwiseHalf.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathPointwiseHalf.cu.o

[1858/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCTensorIndex.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCTensorIndex.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCTensorIndex.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCTensorIndex.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCTensorIndex.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(123): warning: parsing restarts here after previous syntax error

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_0000360c_00000000-6_THCTensorIndex.cpp1.ii".
Compilation terminated.
CMake Error at caffe2_gpu_generated_THCTensorIndex.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCTensorIndex.cu.o

[1860/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathReduceChar.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathReduceChar.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathReduceChar.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathReduceChar.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorMathReduceChar.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(123): warning: parsing restarts here after previous syntax error

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_000035f6_00000000-6_THCTensorMathReduceChar.cpp1.ii".
Compilation terminated.
CMake Error at caffe2_gpu_generated_THCTensorMathReduceChar.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorMathReduceChar.cu.o

[1861/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorSortHalf.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorSortHalf.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorSortHalf.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorSortHalf.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorSortHalf.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(123): warning: parsing restarts here after previous syntax error

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00003604_00000000-6_THCTensorSortHalf.cpp1.ii".
Compilation terminated.
CMake Error at caffe2_gpu_generated_THCTensorSortHalf.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorSortHalf.cu.o

[1862/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCStorage.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCStorage.cu.o
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCStorage.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCStorage.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCStorage.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

3 errors detected in the compilation of "/tmp/tmpxft_00003654_00000000-6_THCStorage.cpp1.ii".
CMake Error at caffe2_gpu_generated_THCStorage.cu.o.Release.cmake:279 (message):
Error generating file
/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCStorage.cu.o

[1864/2737] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/data_channels/DataChannelGloo.cpp.o
ninja: build stopped: subcommand failed.
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-cuda --use-nnpack --use-mkldnn --use-qnnpack caffe2'

Summary

-- General:
-- CMake version : 3.12.2
-- CMake command : /home/zand/anaconda3/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 7.3.0
-- BLAS : MKL
-- CXX flags : -fvisibility-inlines-hidden -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-stringop-overflow
-- Build type : Release
-- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;MAGMA_V2;USE_C11_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1
-- CMAKE_PREFIX_PATH : /home/zand/anaconda3/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /home/zand/Developers/pytorch/torch/lib/tmp_install
--
-- TORCH_VERSION : 1.0.0
-- CAFFE2_VERSION : 1.0.0
-- BUILD_ATEN_MOBILE : OFF
-- BUILD_ATEN_ONLY : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 3.6.4
-- Python executable : /home/zand/anaconda3/bin/python
-- Pythonlibs version : 3.6.4
-- Python library : /home/zand/anaconda3/lib/libpython3.6m.so.1.0
-- Python includes : /home/zand/anaconda3/include/python3.6m
-- Python site-packages: lib/python3.6/site-packages
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : ON
-- USE_ASAN : OFF
-- USE_CUDA : 1
-- CUDA static link : 0
-- USE_CUDNN : ON
-- CUDA version : 10.0
-- cuDNN version : 7.3.1
-- CUDA root directory : /usr/local/cuda
-- CUDA library : /usr/lib/x86_64-linux-gnu/libcuda.so
-- cudart library : /usr/local/cuda/lib64/libcudart_static.a;-pthread;dl;/usr/lib/x86_64-linux-gnu/librt.so
-- cublas library : /usr/local/cuda/lib64/libcublas.so
-- cufft library : /usr/local/cuda/lib64/libcufft.so
-- curand library : /usr/local/cuda/lib64/libcurand.so
-- cuDNN library : /usr/local/cuda/lib64/libcudnn.so.7
-- nvrtc : /usr/local/cuda/lib64/libnvrtc.so
-- CUDA include path : /usr/local/cuda/include
-- NVCC executable : /usr/local/cuda/bin/nvcc
-- CUDA host compiler : /usr/bin/cc
-- USE_TENSORRT : OFF
-- USE_ROCM : OFF
-- USE_EIGEN_FOR_BLAS :
-- USE_FBGEMM : 0
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL : ON
-- USE_MKLDNN : ON
-- USE_MOBILE_OPENGL : OFF
-- USE_NCCL : ON
-- USE_SYSTEM_NCCL : OFF
-- USE_NNPACK : 1
-- USE_NUMPY : ON
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_QNNPACK : 1
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : ON
-- USE_MPI : ON
-- USE_GLOO : ON
-- USE_GLOO_IBVERBS : OFF
-- Public Dependencies : Threads::Threads;caffe2::mkl;caffe2::mkldnn
-- Private Dependencies : qnnpack;nnpack;cpuinfo;/usr/lib/x86_64-linux-gnu/libnuma.so;fp16;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so;gloo;aten_op_header_gen;onnxifi_loader;rt;gcc_s;gcc;dl
-- Configuring done
CMake Warning (dev) at cmake/Dependencies.cmake:846 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "nccl_external" of target "gloo_cuda" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

CUDNN_LIB_DIR
THD_SO_VERSION

-- Found CUDA: /usr/local/cuda (found suitable version "10.0", minimum required is "7.0")
-- Caffe2: CUDA detected: 10.0
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 10.0
-- Found CUDNN: /usr/local/cuda/include
-- Found cuDNN: v7.3.1 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so.7)
-- Autodetected CUDA architecture(s): 6.1;6.1
-- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61
-- Found NCCL: /usr/include
-- Determining NCCL version from the header file: /usr/include/nccl.h
-- NCCL_MAJOR_VERSION: 2
-- Found NCCL (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnccl.so)
-- Could NOT find CUB (missing: CUB_INCLUDE_DIR)
-- MPI include path: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include/usr/lib/x86_64-linux-gnu/openmpi/include
-- MPI libraries: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
CMake Warning (dev) at third_party/gloo/cmake/Cuda.cmake:133 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable CUDA_ROOT is set to:

/usr/local/cuda

For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
third_party/gloo/cmake/Dependencies.cmake:44 (include)
third_party/gloo/CMakeLists.txt:52 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- CUDA detected: 10.0
CMake Warning at cmake/Dependencies.cmake:872 (message):
mobile opengl is only used in android or ios builds.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)

CMake Warning at cmake/Dependencies.cmake:948 (message):
Metal is only used in ios builds.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)

Issue 2:
Hi all,

After running python setup.py install on Ubuntu 16.04 LTS(CUDA 9.1), I encounter the following error:

/home/ubuntu/pytorch/aten/src/THCUNN/LookupTable.cu(25): warning: function "__shfl(int, int, int)"

/usr/local/cuda/include/sm_30_intrinsics.hpp(152): here was declared deprecated ("__shfl() is deprecated in favor of __shfl_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")

/home/ubuntu/pytorch/aten/src/THCUNN/LookupTable.cu(42): warning: function "__any"

/usr/local/cuda/include/device_atomic_functions.h(180): here was declared deprecated ("__any() is deprecated in favor of __any_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")

[ 35%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_MSECriterion.cu.o

[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_MultiLabelMarginCriterion.cu.o

[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_MultiMarginCriterion.cu.o

[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_PReLU.cu.o

[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_RReLU.cu.o

[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_Sigmoid.cu.o

[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SmoothL1Criterion.cu.o

[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SoftMarginCriterion.cu.o

[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SoftMax.cu.o

[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SoftPlus.cu.o

[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SoftShrink.cu.o

[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SparseLinear.cu.o

[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialAdaptiveAveragePooling.cu.o

[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialAdaptiveMaxPooling.cu.o

[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialAveragePooling.cu.o

[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialClassNLLCriterion.cu.o

[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialConvolutionLocal.cu.o

[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialConvolutionMM.cu.o

[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialCrossMapLRN.cu.o

[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialDepthwiseConvolution.cu.o

[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialDilatedConvolution.cu.o

[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialDilatedMaxPooling.cu.o

[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialFractionalMaxPooling.cu.o

[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialFullConvolution.cu.o

[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialFullDilatedConvolution.cu.o

[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialGridSamplerBilinear.cu.o

[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialMaxPooling.cu.o

[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialMaxUnpooling.cu.o

[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialReflectionPadding.cu.o

[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialReplicationPadding.cu.o

[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialSubSampling.cu.o

[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialUpSamplingBilinear.cu.o

[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_SpatialUpSamplingNearest.cu.o

[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_Sqrt.cu.o

[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_Square.cu.o

[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_Tanh.cu.o

[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_TemporalConvolution.cu.o

[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_TemporalMaxPooling.cu.o

[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_TemporalReflectionPadding.cu.o

[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_TemporalReplicationPadding.cu.o

[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_TemporalRowConvolution.cu.o

[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_TemporalUpSamplingLinear.cu.o

[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_TemporalUpSamplingNearest.cu.o

[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_Threshold.cu.o

[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricAdaptiveAveragePooling.cu.o

[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricAdaptiveMaxPooling.cu.o

[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricAveragePooling.cu.o

[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricConvolution.cu.o

[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricDilatedConvolution.cu.o

[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricDilatedMaxPooling.cu.o

[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricFractionalMaxPooling.cu.o

[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricFullConvolution.cu.o

[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricFullDilatedConvolution.cu.o

[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricGridSamplerBilinear.cu.o

[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricMaxPooling.cu.o

[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricMaxUnpooling.cu.o

[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricReplicationPadding.cu.o

[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricUpSamplingNearest.cu.o

[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCUNN/ATen_generated_VolumetricUpSamplingTrilinear.cu.o

[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir//THCS/ATen_generated_THCSTensor.cu.o

[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/__/THCS/ATen_generated_THCSparse.cu.o

[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/cuda/ATen_generated_CUDAHalf.cu.o

[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/cuda/detail/ATen_generated_IndexUtils.cu.o

[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Distributions.cu.o

[ 51%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Embedding.cu.o

/home/ubuntu/pytorch/aten/src/TH/THStorage.h(26): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

17 errors detected in the compilation of "/tmp/tmpxft_0000539b_00000000-6_Distributions.cpp1.ii".

CMake Error at ATen_generated_Distributions.cu.o.Release.cmake:279 (message):

Error generating file

/home/ubuntu/pytorch/aten/build/src/ATen/CMakeFiles/ATen.dir/native/cuda/./ATen_generated_Distributions.cu.o

src/ATen/CMakeFiles/ATen.dir/build.make:1148: recipe for target 'src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Distributions.cu.o' failed

make[2]: *** [src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Distributions.cu.o] Error 1

make[2]: *** Waiting for unfinished jobs....

/home/ubuntu/pytorch/aten/src/ATen/native/cuda/Embedding.cu(37): warning: function "__any"

/usr/local/cuda/include/device_atomic_functions.h(180): here was declared deprecated ("__any() is deprecated in favor of __any_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning).")

CMakeFiles/Makefile2:201: recipe for target 'src/ATen/CMakeFiles/ATen.dir/all' failed

make[1]: *** [src/ATen/CMakeFiles/ATen.dir/all] Error 2

Makefile:129: recipe for target 'all' failed

make: *** [all] Error 2

PyTorch GitHub Issues Guidelines

We like to limit our issues to bug reports and feature requests. If you have a question or would like help and support, please visit our forums: https://discuss.pytorch.org/

If you are submitting a feature request, please preface the title with [feature request].

PyTorch version:

How you installed PyTorch (conda, pip, source): source

Python version: 3.6.4

CUDA/cuDNN version: 9.1

GPU models and configuration: K80

GCC version (if compiling from source): 5.4.0 20160609

CMake version: cmake version 3.9.4

In addition, including the following information will also be very helpful for us to diagnose the problem:

A script to reproduce the bug. Please try to provide as minimal of a test case as possible.

Error messages and/or stack traces of the bug

Context around what you are trying to do

Just wondering if anyone knows how I can fix this.

Thanks