This fixes issues with various return types(bool/int) and was already
in place for nvptx headers, adjusted to work for amdgcn. This does
not affect hip as the change is guarded with OPENMP_AMDGCN.
Similar to D85879.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks very similar to the cuda workaround. Any chance we can #include to use the same code in both?
Comment Actions
can we add a test to https://github.com/llvm/llvm-project/blob/main/clang/test/Headers/hip-header.hip just to make sure these functions are still available for HIP? Thanks.
Comment Actions
Looks like the __OPENMP_AMDGCN__ guard is sound to me, but can't really argue against having more tests
clang/test/Headers/hip-header.hip | ||
---|---|---|
21 | where is this macro used and how does it affect HIP? Thanks. |
clang/test/Headers/hip-header.hip | ||
---|---|---|
21 | For testing purposes we can enable certain return types for isnan. |
where is this macro used and how does it affect HIP? Thanks.