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
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
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-
** 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
** 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
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://
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
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
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