moving CUDA detection and common setting from src/CMakeLists.txt to CMakeLists.txt
removing an outdated TODO
fixing CUDA crash issue by introducing copies of opts_init fields within a cuda-enabled functor