[Parser] Outer loops work with cuda-mode as well