[all-commits] [llvm/llvm-project] 53d474: [Clang][OpenMP][NVPTX] Fixed failure in openmp-off...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Tue Apr 13 10:23:07 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 53d474abc92c42bed5d0cab5c79ee9ea5666aad1
https://github.com/llvm/llvm-project/commit/53d474abc92c42bed5d0cab5c79ee9ea5666aad1
Author: Shilei Tian <tianshilei1992 at gmail.com>
Date: 2021-04-13 (Tue, 13 Apr 2021)
Changed paths:
M clang/lib/Driver/ToolChains/Cuda.cpp
Log Message:
-----------
[Clang][OpenMP][NVPTX] Fixed failure in openmp-offload-gpu.c if the system has CUDA
https://lists.llvm.org/pipermail/openmp-dev/2021-March/003940.html reports
test failure in `openmp-offload-gpu.c`. The failure is, when using `-S` in the
clang driver, it still reports bitcode library doesn't exist. However, it is not
exposed in my local run and Phabiractor test. The reason it escaped from Phabricator
test is, the test machine doesn't have CUDA, so `LibDeviceFile` is empty. In this
case, the check of `OPT_S` will be hit, and we get "expected" result. However, if
the test machine has CUDA, `LibDeviceFile` will not be empty, then the check will
not be done, and it just proceeds, trying to add the bitcode library. The reason
it escaped from my local run is, I didn't build ALL targets, so this case was
marked UNSUPPORTED.
Reviewed By: kkwli0
Differential Revision: https://reviews.llvm.org/D98902
More information about the All-commits
mailing list