Bug#1021660: gcc-12-offload-nvptx: offloading to nvidia via nvptx fails with cuda version 11 (default in sid)

2022-10-13 Thread Giacomo Mulas
On Thu, 13 Oct 2022, Thomas Schwinge wrote: It does work, but only for the code that GCC/nvptx generates in that 'gcc-12' invocation, but not for the support libraries that it linkes in, which are built for sm_30. Does this mean then that the support libraries of gcc-11-offload-nvptx include

Bug#1021660: gcc-12-offload-nvptx: offloading to nvidia via nvptx fails with cuda version 11 (default in sid)

2022-10-13 Thread Thomas Schwinge
Hi! (Tom added in CC; for your information, this is about .) On 2022-10-13T12:38:17+0200, Giacomo Mulas wrote: > On Thu, 13 Oct 2022, Thomas Schwinge wrote: > >> Aha, that's a legit question to wonder about: the reason is that GCC 11 >> defaulted to sm_35 code

Bug#1021660: gcc-12-offload-nvptx: offloading to nvidia via nvptx fails with cuda version 11 (default in sid)

2022-10-13 Thread Giacomo Mulas
On Thu, 13 Oct 2022, Thomas Schwinge wrote: Aha, that's a legit question to wonder about: the reason is that GCC 11 defaulted to sm_35 code generation (which CUDA 11 still does support): , just then GCC 12 again reverted to sm_30:

Bug#1021660: gcc-12-offload-nvptx: offloading to nvidia via nvptx fails with cuda version 11 (default in sid)

2022-10-13 Thread Thomas Schwinge
Hi Giacomo! On 2022-10-13T12:20:19+0200, Giacomo Mulas wrote: > On Thu, 13 Oct 2022, Thomas Schwinge wrote: > >> Debian need to update nvptx-tools to a version that includes >> >> "as: Deal with CUDA 11.0, "Support for Kepler 'sm_30' and

Bug#1021660: gcc-12-offload-nvptx: offloading to nvidia via nvptx fails with cuda version 11 (default in sid)

2022-10-13 Thread Giacomo Mulas
On Thu, 13 Oct 2022, Thomas Schwinge wrote: Debian need to update nvptx-tools to a version that includes "as: Deal with CUDA 11.0, "Support for Kepler 'sm_30' and 'sm_32' architecture based products is dropped" ok, but I am puzzled by

Bug#1021660: gcc-12-offload-nvptx: offloading to nvidia via nvptx fails with cuda version 11 (default in sid)

2022-10-13 Thread Thomas Schwinge
reassign 1021660 nvptx-tools stop Hi! On 2022-10-12T17:19:02+0200, Giacomo Mulas wrote: > the nvptx plugin for gcc-12 currently available for sid mandates a > cuda level sm_30, which is no longer available in cuda 11 (the one > now in sid). This means that even a trivial example code like

Bug#1021660: gcc-12-offload-nvptx: offloading to nvidia via nvptx fails with cuda version 11 (default in sid)

2022-10-12 Thread Giacomo Mulas
Package: gcc-12-offload-nvptx Version: 12.2.0-5 Severity: grave Justification: renders package unusable for nvidia Dear Maintainer, the nvptx plugin for gcc-12 currently available for sid mandates a cuda level sm_30, which is no longer available in cuda 11 (the one now in sid). This means that