Error in installing pytorch 20180621

[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

Could you run python setup.py clean first and then re-run the build command?