[PATCH] D89832: [CUDA] Extract CUDA version from cuda.h if version.txt is not found

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 20 15:53:38 PDT 2020


tra created this revision.
tra added reviewers: jlebar, yaxunl, emankov.
Herald added subscribers: dexonsmith, bixia.
Herald added a project: clang.
tra requested review of this revision.

This is a follow-up to D89752 <https://reviews.llvm.org/D89752>,

If CUDA version can not be determined based on version.txt file, attempt to find CUDA_VERSION macro in cuda.h.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89832

Files:
  clang/include/clang/Basic/DiagnosticDriverKinds.td
  clang/lib/Driver/ToolChains/Cuda.cpp
  clang/lib/Driver/ToolChains/Cuda.h
  clang/test/Driver/Inputs/CUDA_111/usr/local/cuda/include/cuda.h
  clang/test/Driver/cuda-version-check.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89832.299498.patch
Type: text/x-patch
Size: 7889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201020/2eb83419/attachment.bin>


More information about the cfe-commits mailing list