minor CUDA fixes for apps and add option for multidim