You are right, I updated my anaconda previous week and probably it has updated cmake too. The current error that I get is: (I can send the whole log to you if it helps)

[1900/1939] Building NVCC (Device) object caffe2/CMakeFiles/cuda_distrib…ATen/test/cuda_distributions_test_generated_cuda_distributions_test.cu.o
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced
/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/aten/src/ATen/test/cuda_distributions_test.cu(117): warning: variable “dim_block” was declared but never referenced


[1912/1939] Building NVCC (Device) object modules/detectron/CMakeFiles/c…gpu.dir/caffe2_detectron_ops_gpu_generated_group_spatial_softmax_op.cu.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File “build_libtorch.py”, line 23, in 
rerun_cmake=True, cmake_only=False, cmake=CMake())
File “/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/tools/build_pytorch_libs.py”, line 64, in build_caffe2
cmake.build(my_env)
File “/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/tools/setup_helpers/cmake.py”, line 329, in build
self.run(build_args, my_env)
File “/c/bb04na2a/vol/bigdisk/plx/rl/pytorch/tools/setup_helpers/cmake.py”, line 133, in run
check_call(command, cwd=self.build_dir, env=env)
File “/bigdisk/plx/rl/anaconda3/lib/python3.7/subprocess.py”, line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘–build’, ‘.’, ‘–target’, ‘install’, ‘–config’, ‘Release’, ‘–’, ‘-j’, ‘160’]’ returned non-zero exit status 1.
(base) machine01>
(base) machine01>