And you would still insist on the libflang_rt.cuda_${CUDAToolkit_VERSION_MAJOR} sources to reside in a subdirectory of “flang_rt”? That is, the following directory layout?
lib/runtime and include/flang-rt/runtime for libflang_rt.runtime{.a/.so}
lib/quadmath for libflang_rt.quadmath.a
lib/runtime/CUDA and include/flang-rt/runtime/CUDA for libflang_rt.cuda_${CUDAToolkit_VERSION_MAJOR}{.a/.so}
Whouldn’t it be more consistent to do the following?
lib/runtime and include/flang-rt/runtime for libflang_rt.runtime{.a/.so}
lib/quadmath for libflang_rt.quadmath{.a/.so}
lib/cuda and include/flang-rt/cuda for libflang_rt.cuda_${CUDAToolkit_VERSION_MAJOR}{.a/.so}
+1 for consistency with compiler_rt since flang shares a lot of the same driver code. The CUDA libraries should probably go somewhere special, long-term I’d like to use standard paths for the device build with the GPU triple.