Itseems the gcc version 6.4.0 is incompatible with cuda version 9.0. After updating to cuda version 10.0, I am able to compile.
Reference:
https://devtalk.nvidia.com/default/topic/1028112/cuda-setup-and-installation/nvcc-bug-related-to-gcc-6-lt-tuple-gt-header-/ 268