[PATCH] D141861: [nvptx-arch] Dynamically load the CUDA runtime if not found during the build
Shilei Tian via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 16 10:00:26 PST 2023
tianshilei1992 accepted this revision.
tianshilei1992 added a comment.
This revision is now accepted and ready to land.
Yeah, otherwise I suppose there will be some errors when compiling OpenMP program when there is no CUDA installed.
================
Comment at: clang/tools/nvptx-arch/NVPTXArch.cpp:89
int main() {
+ // Attempt to load the NVPTX driver runtime.
----------------
unrelated: I always prefer:
```
int main(int argc, char *argv[]) {
return 0;
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141861/new/
https://reviews.llvm.org/D141861
More information about the cfe-commits
mailing list