[PATCH] D96877: [libomptarget] Try a fallback devicertl if the preferred one is missing

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 10:02:46 PST 2021


JonChesterfield created this revision.
JonChesterfield added reviewers: jdoerfert, ye-luo, tianshilei1992, ABataev, grokos.
JonChesterfield requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.

[libomptarget] Try a fallback devicertl if the preferred one is missing

Clang may be used with a cuda version that is newer than the clang release.
This may fail in various ways, but there is also a credible chance it will
work OK, for sufficiently small version slip.

As discussed in the weekly call, this change adds a fallback path to clang
which looks for a devicertl library that doesn't have a specific cuda version
encoded in the name, specifically 'libomptarget-nvptx-unknown.bc'. It also
warns about this, and recommends the user specify a devicertl they expect to
work manually.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96877

Files:
  clang/include/clang/Basic/DiagnosticDriverKinds.td
  clang/lib/Driver/ToolChains/CommonArgs.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96877.324341.patch
Type: text/x-patch
Size: 4347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210217/28d1a953/attachment.bin>


More information about the cfe-commits mailing list