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

2021-04-26 Thread Mehdi Chinoune
If a package require another package to fuction, then it should be marked as a required dependency. Or maybe you should merge both packages in one package called gcc-offload as they are both required to build/run offloaded programs. -- You received this bug notification because you are a member

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

2021-04-26 Thread Matthias Klose
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

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

2021-04-26 Thread Tobias Burnus
Regarding "So installing gcc-10-offload-amdgcn will just make gcc build binaries for amdgcn target which can't run on nvptx target." GCC can compile a program for multiple GPUs at the same time. Which of them is used (nvptx or gcn or none/host fallback) is chosen at runtime. Hence, installing gcc-

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

2021-04-23 Thread Mehdi Chinoune
** Changed in: gcc-10 (Ubuntu) Status: Invalid => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878760 Title: gcc-10 is selecting amdgcn target by default To manage notifications

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

2021-03-09 Thread Matthias Klose
** Changed in: gcc-10 (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878760 Title: gcc-10 is selecting amdgcn target by default To manage notifications

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

2020-05-15 Thread Matthias Klose
no, you still can run this for nvptx -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878760 Title: gcc-10 is selecting amdgcn target by default To manage notifications about this bug go to: https://

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

2020-05-15 Thread chinoune
Binaries built for different gpu architectures are not compatible. So installing gcc-10-offload-amdgcn will just make gcc build binaries for amdgcn target which can't run on nvptx target. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu

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

2020-05-15 Thread Matthias Klose
yes, this is the current design. Another workaround would be to install gcc-10-offload-amdgcn. ** Changed in: gcc-10 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net

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

2020-05-15 Thread chinoune
Error message: lto-wrapper: fatal error: could not find accel/amdgcn-amdhsa/mkoffload in /usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/ (consider using ‘-B’) compilation terminate