[all-commits] [llvm/llvm-project] bb957a: [CUDA] Make the new driver properly ignore non-CUD...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Jul 15 14:38:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bb957a8d524cd38d6c5f7d547302258026049438
https://github.com/llvm/llvm-project/commit/bb957a8d524cd38d6c5f7d547302258026049438
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-07-15 (Fri, 15 Jul 2022)
Changed paths:
M clang/lib/Driver/Driver.cpp
M clang/test/Driver/cuda-phases.cu
Log Message:
-----------
[CUDA] Make the new driver properly ignore non-CUDA inputs
The new driver generated offloadinga actions for each active toolchain.
However, for CUDA and HIP it is possible for the toolchain to be active
but one of the files is not a valid input. This can occur if the user
compiles both a CUDA and C source file in the same compiler invocation.
This patch adds some simple logic to quit if the input is not valid as
well.
Reviewed By: tra, MaskRay
Differential Revision: https://reviews.llvm.org/D129885
More information about the All-commits
mailing list