unsupported cuda_architecture of CUDA9 for GROMACS_5.1.5 compiling


I’m trying to compile GROMACS 5.1.5 for GPU usage to run on CENTOS 6.9. The GPUs are NVIDIA TITAN X with installed CUDA 9.0. However, it is ending up with following error. I know compute_20 is no longer supported in cuda 9.0 but i didn’t get how to disable it and make TITAN_X working. Could anyone please help to make it work?

nvcc fatal : Unsupported gpu architecture ‘compute_20’
nvcc fatal : Unsupported gpu architecture ‘compute_20’
CMake Error at libgromacs_generated_pmalloc_cuda.cu.o.Release.cmake:207 (message):