For the in-progress GPU libc project we are relying on overlay headers to
handle the interfacing between the libc project and the host libc.
We need this to be included on both the host and device so they agree
one what is present on the device, otherwise we will end up with random
errors. For whatever reason this was not being included on the host
although it previously worked. This patch ensures that it's included on
both.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1190–1193 | can we do something better than this NVPTX||AMDGCN checks |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1190–1193 | This is more or less "Are we one of the GPUs libc supports". This is for cross-compiling so there's no existing infrastructure. |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1190–1193 | maybe add a variable bool HasGPULibC as it is also used in other places below |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
1190–1193 | I think this is the only use right now. |
can we do something better than this NVPTX||AMDGCN checks