I’m not fully familiar with what a stack trace is, and it is hard for me to find where the error began. Here is the closest approximation that I could find. If you would like the entire output, I can try to obtain that as well. My apologies if this is not what you asked for. Thank you for your continued assistance!

[1539/2035] Building NVCC (Device) object caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_piecewise_linear_transform_op.cu.obj
FAILED: caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_piecewise_linear_transform_op.cu.obj
cmd.exe /C "cd /D C:\Users\user\pytorch\build\caffe2\CMakeFiles\torch_cuda.dir\operators && D:\Users\user\Anaconda3\Library\bin\cmake.exe -E make_directory C:/Users/user/pytorch/build/caffe2/CMakeFiles/torch_cuda.dir/operators/. && D:\Users\user\Anaconda3\Library\bin\cmake.exe -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=C:/Users/user/pytorch/build/caffe2/CMakeFiles/torch_cuda.dir/operators/./torch_cuda_generated_piecewise_linear_transform_op.cu.obj -D generated_cubin_file:STRING=C:/Users/user/pytorch/build/caffe2/CMakeFiles/torch_cuda.dir/operators/./torch_cuda_generated_piecewise_linear_transform_op.cu.obj.cubin.txt -P C:/Users/user/pytorch/build/caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_piecewise_linear_transform_op.cu.obj.Release.cmake"
piecewise_linear_transform_op.cu
piecewise_linear_transform_op.cu
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(204): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(233): note: see reference to class template instantiation 'thrust::cuda_cub::__scan_by_key::ScanByKeyAgent<KeysInputIt,ValuesInputIt,ValuesOutputIt,EqualityOp,ScanOp,Size,T,Inclusive>::PtxPlan<Arch>' being compiled
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(567): note: see reference to class template instantiation 'thrust::cuda_cub::__scan_by_key::ScanByKeyAgent<KeysInputIt,ValuesInputIt,ValuesOutputIt,EqualityOp,ScanOp,Size,T,Inclusive>' being compiled
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(204): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(210): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(210): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(217): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(217): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(223): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(232): note: see reference to class template instantiation 'thrust::cuda_cub::__scan_by_key::ScanByKeyAgent<KeysInputIt,ValuesInputIt,ValuesOutputIt,EqualityOp,ScanOp,Size,T,Inclusive>::PtxPlan<Arch>::TempStorage' being compiled
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(223): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(224): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(224): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(225): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
D:/CUDA/CUDA 10.1/Development/include\thrust/system/cuda/detail/scan_by_key.h(225): error C2993: 'KeysInputIt': illegal type for non-type template parameter '__formal'
CMake Error at torch_cuda_generated_piecewise_linear_transform_op.cu.obj.Release.cmake:281 (message):
  Error generating file
  C:/Users/user/pytorch/build/caffe2/CMakeFiles/torch_cuda.dir/operators/./torch_cuda_generated_piecewise_linear_transform_op.cu.obj


[1540/2035] Building NVCC (Device) object caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_normalize_ops.cu.obj
normalize_ops.cu
normalize_ops.cu
[1541/2035] Building NVCC (Device) object caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_prelu_op.cu.obj
prelu_op.cu
prelu_op.cu
[1542/2035] Building NVCC (Device) object caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_pool_op.cu.obj
pool_op.cu
pool_op.cu
[1543/2035] Building NVCC (Device) object caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_perplexity_op.cu.obj
perplexity_op.cu
perplexity_op.cu
[1544/2035] Building NVCC (Device) object caffe2/CMakeFiles/torch_cuda.dir/operators/torch_cuda_generated_pow_op.cu.obj
pow_op.cu
pow_op.cu
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "setup.py", line 737, in <module>
    build_deps()
  File "setup.py", line 316, in build_deps
    cmake=cmake)
  File "C:\Users\user\pytorch\tools\build_pytorch_libs.py", line 62, in build_caffe2
    cmake.build(my_env)
  File "C:\Users\user\pytorch\tools\setup_helpers\cmake.py", line 341, in build
    self.run(build_args, my_env)
  File "C:\Users\user\pytorch\tools\setup_helpers\cmake.py", line 141, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "D:\Users\user\Anaconda3\lib\subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '8']' returned non-zero exit status 1.

(base) C:\Users\user\pytorch>