]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid registering unsupported OMP offload devices
authorRichard Biener <rguenther@suse.de>
Fri, 26 Jan 2024 11:57:10 +0000 (12:57 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 26 Jan 2024 14:36:35 +0000 (15:36 +0100)
commitc34ab549d88da13ae16edccedd4218807afefb65
tree3b809bf03f9e204a136c688ce06f9618b10fbee8
parent209ed06c3acddb25935ecdedf2b31235b71e5c39
Avoid registering unsupported OMP offload devices

The following avoids registering unsupported GCN offload devices
when iterating over available ones.  With a Zen4 desktop CPU
you will have an IGPU (unspported) which will otherwise be made
available.  This causes testcases like
libgomp.c-c++-common/non-rect-loop-1.c which iterate over all
decives to FAIL.

libgomp/
* plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
agents with unsupported ISA.
libgomp/plugin/plugin-gcn.c