The NVPTX toolchain uses target features to determine the PTX version to
use. However this isn't exposed externally like most other toolchain
specific target features are. Add this functionaliy in preparation for
using it in for OpenMP offloading.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Driver/ToolChains/Cuda.cpp | ||
---|---|---|
635 | Why std::vector. looks like this only returns 1 anyway, no? |
clang/lib/Driver/ToolChains/Cuda.cpp | ||
---|---|---|
635 | That's how the rest of these functions are used in getTargetFeatures above. If I had a different method it wouldn't be easy to insert there. |
clang/lib/Driver/ToolChains/Cuda.cpp | ||
---|---|---|
648 | Fixed in rGd91223274145. Thanks for pointing that out, it worked fined locally. |
clang/lib/Driver/ToolChains/Cuda.cpp | ||
---|---|---|
648 | Thank you for your quick action. |
Why std::vector. looks like this only returns 1 anyway, no?