I'm using a CUDA 9.2, and the nvcc did not support -arch=sm_20 option. I simply fixed the issue by replacing sm_20 to sm_70 in CMakeLists.txt file.