On 11/11/2024 09:42, Tobias Burnus wrote:
Currently, for GCN, only one offload ISA is supported; this might lead
to errors when multiple different AMD GPUs are installed on the same system,
at least when using the "wrong" device/device number.

In case of the testsuite, this occurs for instance
with libgomp.c-c++-common/icv-9.c which iterates all devices.

In order to be more helpful, this patch also outputs the device
number:

libgomp: GCN fatal error: GCN code object ISA 'gfx90a' does not match GPU ISA 'gfx906' of device 1. Try to recompile with '-foffload-options=- march=gfx906'. OK for mainline?

Tobias

PS: I increased the buffer size to ensure the new ' of device '
and device numbers <= 99 and ISA names like 'gfx10-3-generic'
and GPU ISA names like gfx1103 will fit.


I think I'd prefer

  libgomp: GCN fatal error: GCN code object ISA 'gfx90a' does not match
  GPU ISA 'gfx906' (device 1).
  Try to recompile with '-foffload-options=-march=gfx906',
  or use ROCR_VISIBLE_DEVICES to disable incompatible devices.

So, brackets instead of "of", and explain how to fix both possible issues. Disabling the device will also allow host-fallback to work, which might be the right thing for some end-users.

Andrew

Reply via email to