[Bug 1878760] Re: gcc-10 is selecting amdgcn target by default

Matthias Klose 1878760 at bugs.launchpad.net
Mon Apr 26 11:15:45 UTC 2021


so you have two solutions:

1) install both gcc-10-offload-amdgcn and gcc-10-offload-nvptx and build
the offload support for both gpus. The resulting binary can run on both
gpus.  No, I didn't check what happens when both GPUs are present at
runtime.

2) Pass -foffload=nvptx-none to only build for nvptx GPUs.


closing this issue again

** Changed in: gcc-10 (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-10 in Ubuntu.
https://bugs.launchpad.net/bugs/1878760

Title:
  gcc-10 is selecting amdgcn target by default

Status in gcc-10 package in Ubuntu:
  Invalid

Bug description:
  While trying to offload some programs to my laptop nvidia gpu, compilation failed because gcc-10 is selecting amdgcn target by default even my laptop has not any amd graphics.
  A workaround is to use "-foffload=nvptx-none=other-flags".

  Ubuntu 20.04 x86_64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1878760/+subscriptions



More information about the foundations-bugs mailing list