mmisiur:

error MSB6006: “cmd.exe” exited with code 1.


Would you please run the building process inside VS (only caffe2_gpu is enough and make sure you choose Release and x64) ? Alternatively, you can use Ninja, which is quite simple to use. And then you can see the internal error.
pip install ninja
set CMAKE_GENERATOR=Ninja