]> git.ipfire.org Git - thirdparty/gcc.git/commit
[GCN] Handle generic ISA names in libgomp's plugin-gcn.c
authorTobias Burnus <tburnus@baylibre.com>
Fri, 7 Feb 2025 12:20:25 +0000 (13:20 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Fri, 7 Feb 2025 12:20:25 +0000 (13:20 +0100)
commit8561e4e2903ae0b4aff1ed1dc9e9871c89df6b43
tree4ff3260f5f2ff1e6d4faa9c35012b8091a765ab4
parentbad9a7303a4b4ec8192e2ab5da49ab1a9cc86347
[GCN] Handle generic ISA names in libgomp's plugin-gcn.c

libgomp/ChangeLog:

* plugin/plugin-gcn.c (ELFABIVERSION_AMDGPU_HSA_V6,
EF_AMDGPU_GENERIC_VERSION_V, EF_AMDGPU_GENERIC_VERSION_OFFSET,
GET_GENERIC_VERSION): New #define.
(elf_gcn_isa_is_generic): New.
(isa_matches_agent): Accept all generic code objects on the first
go; extend the diagnostic and handle runtime-failed case.
(create_and_finalize_hsa_program): Call it also after loading
the code failed, pass the status.
libgomp/plugin/plugin-gcn.c