cudatoolkit: fix multiple outputs (close #2466)