[all-commits] [llvm/llvm-project] d2ac00: [Clang] Only emit CUDA version warnings when creat...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Tue Jul 18 11:48:29 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2ac0069a21b79efdcd32ba4cc44dc7f08a25b8b
https://github.com/llvm/llvm-project/commit/d2ac0069a21b79efdcd32ba4cc44dc7f08a25b8b
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M clang/lib/Driver/Driver.cpp
M clang/lib/Driver/ToolChains/Cuda.cpp
M clang/test/Driver/cuda-version-check.cu
Log Message:
-----------
[Clang] Only emit CUDA version warnings when creating the CUDA toolchain
This warning primarily applies to users of the CUDA langues as there may
be new features we rely on. The other two users of the toolchain are
OpenMP via `-fopenmp --offload-arch=sm_70` and a cross-compiled build
via `--target=nvptx64-nvida-cuda -march=sm_70`. Both of these do not
rely directly on things that would change significantly between CUDA
versions, and the way they are built can sometims make this warning
print many times.
This patch changees the behaiour to only check for the version when
building for CUDA offloading specifically, the other two will not have
this check.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D155606
More information about the All-commits
mailing list