Backport: Merge topic 'cuda-12-fixes'
5d048134 Fix compile issues when using cuda 12
Acked-by: Kitware Robot kwrobot@kitware.com Merge-request: !2960 (merged) (cherry picked from commit f8af0b17)
1.9.0 is already past is life-time but some users need this.
Edited by Vicente Bolea