let clang try that path by default, too, s.t. an explicit --cuda-path is
not needed for the nvidia-cuda-toolkit/non-free packages
try the new path *after* the default paths /usr/local/cuda{,-X.Y}
to not interfere with cuda installations from nvidia's installer
Gbp-Pq: Name update-cuda-search-path.patch
CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda");
for (const char *Ver : Versions)
CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-" + Ver);
+ CudaPathCandidates.push_back(D.SysRoot + "/usr/lib/cuda");
}
for (const auto &CudaPath : CudaPathCandidates) {