On 20/01/2020 10:42, Jakub Jelinek wrote:
:(
Another option would be to build offloading code by GCN multiple times, once
for each incompatible ISA the user is asking for, so that one can have then
binaries that will work on different hw.
Because e.g. with the distro vendor hat, it is hard to guess what device
will the users have if we were to enable gcn offloading and ship binaries
with the offloading support in the distro.  For PTX it is easy, we can just
emit sm_30 as the lowest ISA supported (the default anyway) and be done with it.

Indeed, fat binaries would be a good solution.

Presumably it's possible, but I'm not sure how we'd go about getting the offload mechanism to launch the backend multiple times? Having got that far, the libgomp and mkoffload changes to select the right variant would probably be fairly straight-forward.

Andrew

Reply via email to