How can I install CUDA 9 on Ubuntu 17.10

Ubuntu 17.10 comes with CUDA 8 which relies on clang 3.8 (e.g. see this blogpost). However, I'd like to install CUDA 9 and rely on GCC if possible. How can I do this?