Applied same module state techniques to CUDA runtime.