<h2 dir="auto">Building from latest source with</h2>
<p dir="auto"><code class="notranslate">python setup.py install</code></p>
<h2 dir="auto">Error Output:</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. &amp;&amp; /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 &quot;THDescBuff&quot; is undefined

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

16 errors detected in the compilation of &quot;/tmp/tmpxft_000035eb_00000000-6_THCReduceApplyUtils.cpp1.ii&quot;.
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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &quot;THDescBuff&quot; is undefined

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

Error limit reached.
100 errors detected in the compilation of &quot;/tmp/tmpxft_000035d8_00000000-6_THCTensorMathCompareChar.cpp1.ii&quot;.
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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &quot;THDescBuff&quot; is undefined

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

Error limit reached.
100 errors detected in the compilation of &quot;/tmp/tmpxft_000035cf_00000000-6_THCTensorMathCompareTShort.cpp1.ii&quot;.
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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &quot;THDescBuff&quot; is undefined

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

Error limit reached.
100 errors detected in the compilation of &quot;/tmp/tmpxft_000035e3_00000000-6_THCTensorMathPointwiseHalf.cpp1.ii&quot;.
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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. &amp;&amp; /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 &quot;THDescBuff&quot; is undefined

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

Error limit reached.
100 errors detected in the compilation of &quot;/tmp/tmpxft_0000360c_00000000-6_THCTensorIndex.cpp1.ii&quot;.
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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &quot;THDescBuff&quot; is undefined

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

Error limit reached.
100 errors detected in the compilation of &quot;/tmp/tmpxft_000035f6_00000000-6_THCTensorMathReduceChar.cpp1.ii&quot;.
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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &quot;THDescBuff&quot; is undefined

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

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

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class &quot;at::TensorImpl&quot;
/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 &quot;;&quot;

/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 &quot;TH_CPP_API&quot; has already been defined

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

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

Error limit reached.
100 errors detected in the compilation of &quot;/tmp/tmpxft_00003604_00000000-6_THCTensorSortHalf.cpp1.ii&quot;.
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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. &amp;&amp; /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 &quot;TH_CPP_API&quot; is undefined

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

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

3 errors detected in the compilation of &quot;/tmp/tmpxft_00003654_00000000-6_THCStorage.cpp1.ii&quot;.
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'"><pre class="notranslate"><code class="notranslate">[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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. &amp;&amp; /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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. &amp;&amp; /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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. &amp;&amp; /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 &amp;&amp; /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. &amp;&amp; /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'
</code></pre></div>
<h2 dir="auto">Summary</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- 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 &quot;cmake --help-policy CMP0046&quot; for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target &quot;nccl_external&quot; of target &quot;gloo_cuda&quot; 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"><pre class="notranslate"><code class="notranslate">-- 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
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- Found CUDA: /usr/local/cuda (found suitable version &quot;10.0&quot;, minimum required is &quot;7.0&quot;) 
-- 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 &lt;PackageName&gt;_ROOT variables.
  Run &quot;cmake --help-policy CMP0074&quot; 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)"><pre class="notranslate"><code class="notranslate">-- 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 &lt;PackageName&gt;_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)
</code></pre></div>
<p dir="auto">Hi all,</p>
<p dir="auto">After running <code class="notranslate">python setup.py install</code>  on Ubuntu 16.04 LTS(CUDA 9.1), I encounter the following error:</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/THCUNN/LookupTable.cu(25): warning: function "__shfl(int, int, int)"<br>
/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).")</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/THCUNN/LookupTable.cu(42): warning: function "__any"<br>
/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).")</p>
<p dir="auto">[ 35%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_MSECriterion.cu.o<br>
[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_MultiLabelMarginCriterion.cu.o<br>
[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_MultiMarginCriterion.cu.o<br>
[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_PReLU.cu.o<br>
[ 36%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_RReLU.cu.o<br>
[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_Sigmoid.cu.o<br>
[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SmoothL1Criterion.cu.o<br>
[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SoftMarginCriterion.cu.o<br>
[ 37%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SoftMax.cu.o<br>
[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SoftPlus.cu.o<br>
[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SoftShrink.cu.o<br>
[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SparseLinear.cu.o<br>
[ 38%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialAdaptiveAveragePooling.cu.o<br>
[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialAdaptiveMaxPooling.cu.o<br>
[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialAveragePooling.cu.o<br>
[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialClassNLLCriterion.cu.o<br>
[ 39%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialConvolutionLocal.cu.o<br>
[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialConvolutionMM.cu.o<br>
[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialCrossMapLRN.cu.o<br>
[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialDepthwiseConvolution.cu.o<br>
[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialDilatedConvolution.cu.o<br>
[ 40%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialDilatedMaxPooling.cu.o<br>
[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialFractionalMaxPooling.cu.o<br>
[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialFullConvolution.cu.o<br>
[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialFullDilatedConvolution.cu.o<br>
[ 41%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialGridSamplerBilinear.cu.o<br>
[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialMaxPooling.cu.o<br>
[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialMaxUnpooling.cu.o<br>
[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialReflectionPadding.cu.o<br>
[ 42%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialReplicationPadding.cu.o<br>
[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialSubSampling.cu.o<br>
[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_SpatialUpSamplingBilinear.cu.o<br>
[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_SpatialUpSamplingNearest.cu.o<br>
[ 43%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_Sqrt.cu.o<br>
[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_Square.cu.o<br>
[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_Tanh.cu.o<br>
[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_TemporalConvolution.cu.o<br>
[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_TemporalMaxPooling.cu.o<br>
[ 44%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_TemporalReflectionPadding.cu.o<br>
[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_TemporalReplicationPadding.cu.o<br>
[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_TemporalRowConvolution.cu.o<br>
[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_TemporalUpSamplingLinear.cu.o<br>
[ 45%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_TemporalUpSamplingNearest.cu.o<br>
[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_Threshold.cu.o<br>
[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricAdaptiveAveragePooling.cu.o<br>
[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_VolumetricAdaptiveMaxPooling.cu.o<br>
[ 46%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricAveragePooling.cu.o<br>
[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_VolumetricConvolution.cu.o<br>
[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricDilatedConvolution.cu.o<br>
[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_VolumetricDilatedMaxPooling.cu.o<br>
[ 47%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricFractionalMaxPooling.cu.o<br>
[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_VolumetricFullConvolution.cu.o<br>
[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricFullDilatedConvolution.cu.o<br>
[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_VolumetricGridSamplerBilinear.cu.o<br>
[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricMaxPooling.cu.o<br>
[ 48%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_VolumetricMaxUnpooling.cu.o<br>
[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricReplicationPadding.cu.o<br>
[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCUNN/ATen_generated_VolumetricUpSamplingNearest.cu.o<br>
[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/<strong>/THCUNN/ATen_generated_VolumetricUpSamplingTrilinear.cu.o<br>
[ 49%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/</strong>/THCS/ATen_generated_THCSTensor.cu.o<br>
[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/__/THCS/ATen_generated_THCSparse.cu.o<br>
[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/cuda/ATen_generated_CUDAHalf.cu.o<br>
[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/cuda/detail/ATen_generated_IndexUtils.cu.o<br>
[ 50%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Distributions.cu.o<br>
[ 51%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Embedding.cu.o<br>
/home/ubuntu/pytorch/aten/src/TH/THStorage.h(26): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">/home/ubuntu/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined</p>
<p dir="auto">17 errors detected in the compilation of "/tmp/tmpxft_0000539b_00000000-6_Distributions.cpp1.ii".<br>
CMake Error at ATen_generated_Distributions.cu.o.Release.cmake:279 (message):<br>
Error generating file<br>
/home/ubuntu/pytorch/aten/build/src/ATen/CMakeFiles/ATen.dir/native/cuda/./ATen_generated_Distributions.cu.o</p>
<p dir="auto">src/ATen/CMakeFiles/ATen.dir/build.make:1148: recipe for target 'src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Distributions.cu.o' failed<br>
make[2]: *** [src/ATen/CMakeFiles/ATen.dir/native/cuda/ATen_generated_Distributions.cu.o] Error 1<br>
make[2]: *** Waiting for unfinished jobs....<br>
/home/ubuntu/pytorch/aten/src/ATen/native/cuda/Embedding.cu(37): warning: function "__any"<br>
/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).")</p>
<p dir="auto">CMakeFiles/Makefile2:201: recipe for target 'src/ATen/CMakeFiles/ATen.dir/all' failed<br>
make[1]: *** [src/ATen/CMakeFiles/ATen.dir/all] Error 2<br>
Makefile:129: recipe for target 'all' failed<br>
make: *** [all] Error 2</p>
<h2 dir="auto">PyTorch GitHub Issues Guidelines</h2>
<p dir="auto">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: <a href="https://discuss.pytorch.org/" rel="nofollow">https://discuss.pytorch.org/</a></p>
<p dir="auto">If you are submitting a feature request, please preface the title with [feature request].</p>
<p dir="auto">PyTorch version:</p>
<ul dir="auto">
<li>How you installed PyTorch (conda, pip, source): source</li>
<li>Python version: 3.6.4</li>
<li>CUDA/cuDNN version: 9.1</li>
<li>GPU models and configuration: K80</li>
<li>GCC version (if compiling from source): 5.4.0 20160609</li>
<li>CMake version: cmake version 3.9.4</li>
</ul>
<p dir="auto">In addition, including the following information will also be very helpful for us to diagnose the problem:</p>
<ul dir="auto">
<li>A script to reproduce the bug. Please try to provide as minimal of a test case as possible.</li>
<li>Error messages and/or stack traces of the bug</li>
<li>Context around what you are trying to do</li>
</ul>
<p dir="auto">Just wondering if anyone knows how I can fix this.</p>
<p dir="auto">Thanks</p>