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-10-offload-amdgcn in addition to gcc-10-offload- nvptx should work – you will get a binary which runs on nvptx (and gcn, but that won't affect you). Alternatively, you can explicitly specify: -foffload=disable (no offloading, i.e. always uses the host fallback) and -foffload=nvptx-none (i.e. compile for nvptx [and host fallback], only) -- 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://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1878760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs