Added cuda-mode support.