10 Commits

Author SHA1 Message Date
Fabian Ritter
d893c5ad35
[Clang][HIP] Reapply: Deprecate the AMDGCN_WAVEFRONT_SIZE macros (#115507)
So far, these macros can be used in contexts where no meaningful
wavefront size is available. We therefore deprecate these macros, to
replace them with a more resilient interface to access wavefront size
information where it is available.

Reapplies #112849 with a fix for the non-hermetic clang test that failed
on Mac after the revert in #115499.

For SWDEV-491529.
2024-11-11 08:55:46 +01:00
Fabian Ritter
e734de1f5a
Revert "[Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros" (#115499)
Reverts llvm/llvm-project#112849 due to test failure on Mac, reported by
@nico
2024-11-08 16:25:18 +01:00
Fabian Ritter
e5c6d1f4e6
[Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (#112849)
So far, these macros can be used in contexts where no meaningful
wavefront size is available. We therefore deprecate these macros, to
replace them with a more resilient interface to access wavefront size
information where it is available.

For SWDEV-491529.
2024-11-08 14:24:34 +01:00
Alex Voicu
f425db8732
[clang][docs] Add preliminary documentation for SPIR-V support in the HIPAMD ToolChain (#96657)
This is mostly stealing from #75357, and updating it to reflect the
pivot towards AMDGCN flavoured SPIR-V and the slightly different set of
limitations. As we bring up more functionality it will be updated
accordingly. With thanks to @yxsamliu.
2024-06-28 14:57:27 +01:00
Yaxun (Sam) Liu
2bf48892ab
[HIP] document difference with CUDA (#86838) 2024-04-10 11:16:00 -04:00
David Spickett
0217d2e089 [clang][AMDGPU] Remove trialing whitespace in doc
Added by f2a78e68eee53646327f71c475c7f18a28b7f576.

Wouldn't normally bother but it's showing up in some CI checks,
just want to reduce the noise.
2024-01-31 10:29:48 +00:00
Joseph Huber
f2a78e68ee
[AMDGPU] Do not emit arch dependent macros with unspecified cpu (#80035)
Summary:
Currently, the AMDGPU toolchain accepts not passing `-mcpu` as a means
to create a sort of "generic" IR. The resulting IR will not contain any
target dependent attributes and can then be inserted into another
program via `-mlink-builtin-bitcode` to inherit its attributes.

However, there are a handful of macros that can leak incorrect
information when compiling for an unspecified architecture. Currently,
things like the wavefront size will default to 64, which is actually
variable. We should not expose these macros unless it is known.
2024-01-30 13:05:29 -06:00
Yaxun (Sam) Liu
10079a23c5
[HIP] Document func ptr and virtual func (#68126)
Document clang support for function pointers and virtual functions with
HIP
2023-10-18 14:14:04 -04:00
Yaxun (Sam) Liu
932c63550a [HIP] link HIP runtime library without --hip-link
When doing combined compilation/link for HIP source
files, clang should link the HIP runtime library
automatically without --hip-link.

Reviewed by: Siu Chi Chan, Joseph Huber

Differential Revision: https://reviews.llvm.org/D156426
2023-08-04 18:29:47 -04:00
Yaxun (Sam) Liu
795e934e15 [HIP] Start document HIP support by clang
start with example usage, predefined macros, and path setting.

Reviewed by: Brian Sumner, Siu Chi Chan, Matt Arsenault, Ronan Keryell

Differential Revision: https://reviews.llvm.org/D154123
2023-07-25 09:36:58 -04:00