Repair kokkos/kokkos PR-derived regression 7428
harbor run -t luosuu/kokkos__kokkos-7428
harbor download luosuu/kokkos__kokkos-7428
Fix the following issue in the Kokkos repository.
Not included since https://github.com/kokkos/kokkos/pull/5178 and wasn't actually used either back then
The repository is checked out at /workspace/repo. Work only on production source code. Do not modify tests, CMake registration, CI configuration, or the grading environment. Use the existing build tree for local verification.
/workspace/repo