[root@localhost pytorch]# source activate py35
(py35) [root@localhost pytorch]# export CMAKE_PREFIX_PATH="/root/miniconda3/bin:/usr/lib64"
(py35) [root@localhost pytorch]# python setup.py install
…
[100%] Generating lib/libnccl.so
Compiling src/libwrap.cu                      > /opt/pytorch/third_party/build/nccl/obj/libwrap.o
nvcc fatal   : redefinition of keyword ‘code’
make[3]: *** [/opt/pytorch/third_party/build/nccl/obj/libwrap.o] 错误 1
make[2]: *** [lib/libnccl.so] 错误 2
make[1]: *** [CMakeFiles/nccl.dir/all] 错误 2
But for pytorch 20180617, it works fine