[OpenMP] Don't throw cudalib not found error if only front-end is required.
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Tue, 26 Sep 2017 15:36:20 +0000 (15:36 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Tue, 26 Sep 2017 15:36:20 +0000 (15:36 +0000)
commit5a3608ccfaa95dab801df9e651967168d8555719
tree70bea5819f1f4a56f1c1e32dd7a24c50b433b605
parent9801d7fd9ff3dcecddbfc68b17951a4286b08703
[OpenMP] Don't throw cudalib not found error if only front-end is required.

Summary: If we only use the compiler front-end, do not throw an error about the cuda device library not being found. This allows the front-end to be run on systems where no Cuda installation is found.

Reviewers: Hahnfeld, ABataev, carlo.bertolli, caomhin, tra

Reviewed By: tra

Subscribers: hfinkel, tra, cfe-commits

Differential Revision: https://reviews.llvm.org/D37914

llvm-svn: 314217
clang/lib/Driver/ToolChains/Cuda.cpp
clang/test/Driver/openmp-offload-gpu.c