Your message dated Tue, 26 Nov 2024 12:35:00 +0000
with message-id <e1tfums-006sl6...@fasolo.debian.org>
and subject line Bug#1088094: fixed in nvptx-tools 0.20240810-2
has caused the Debian Bug report #1088094,
regarding gcc-13-offload-nvptx: offload to nvptx-none broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1088094: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088094
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-13-offload-nvptx
Version: 13.3.0-8
Severity: grave
Justification: renders package unusable

Dear Maintainer,

Any attempt to compile code that offloads to nvptx-none fails with the
following error:

gmulas@capitanata:~/mintest$ gcc -fopenmp -O3 -ggdb -fcf-protection=check 
-foffload=default -foffload=nvptx-none="-O3 -ggdb -fopt-info -lm -latomic 
-mgomp" -o mintest mintest.c 
mintest.c:5:9: optimized: basic block part vectorized using 16 byte vectors
collect2: fatal error: ld terminated with signal 11 [Errore di segmentazione], 
core dumped
compilation terminated.
nvptx mkoffload: fatal error: x86_64-linux-gnu-accel-nvptx-none-gcc-13 returned 
1 exit status
compilation terminated.
lto-wrapper: fatal error: 
/usr/libexec/gcc/x86_64-linux-gnu/13//accel/nvptx-none/mkoffload returned 1 
exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

This occurs with any gcc (or g++) version installable on debian sid, so I
suspect it is connected to some update on the nvptx-tools side, but since it
is reproduced using gcc I am initially reporting the bug on
gcc-13-offload-nvptx. If/when you can trace it to some other package, of
course feel free to move the bug where it belongs. This is rather critical,
since it makes it impossible to compile any code that offloads to nvptx. I
attach a minimal test code that reproduces it. It compiles and runs
flawlessly on a debian stable machine.

Thanks in advance, best regards
Giacomo Mulas

#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
void saxpy(float a, float* x, float* y, int sz) {
#pragma omp target teams distribute parallel for simd \
   num_teams(3) map(to:x[0:sz]) map(tofrom:y[0:sz])
   for (int i = 0; i < sz; i++) {
      if (omp_is_initial_device()) {
         printf("Running on host\n");    
      } else {
         int nthreads= omp_get_num_threads();
         int nteams= omp_get_num_teams(); 
         printf("Running on device with %d teams (fixed) in total and %d 
threads in each team\n",nteams,nthreads);
      }
      printf("Thread %d %i\n", omp_get_thread_num(), i );
      y[i] = a * x[i] + y[i];
   }
}
int main(int argc, char** argv) {
   float a = 2.0;
   int sz = 16;
   float *x = (float *) calloc( sz, sizeof *x );
   float *y = (float *) calloc( sz, sizeof *y );
   //Set values
   int num_devices = omp_get_num_devices();
   printf("Number of available devices %d\n", num_devices);
   saxpy( a, x, y, sz );
   return 0;
}


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (401, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.9-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc-13-offload-nvptx depends on:
ii  gcc-13                 13.3.0-8
ii  gcc-13-base            13.3.0-8
ii  libc6                  2.40-3
ii  libc6-dev              2.40-3
ii  libgmp10               2:6.3.0+dfsg-2+b2
ii  libgomp-plugin-nvptx1  14.2.0-8
ii  libmpc3                1.3.1-1+b3
ii  libmpfr6               4.2.1-1+b2
ii  libzstd1               1.5.6+dfsg-1+b1
ii  nvptx-tools            0.20240810-1
ii  zlib1g                 1:1.3.dfsg+really1.3.1-1+b1

gcc-13-offload-nvptx recommends no packages.

gcc-13-offload-nvptx suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: nvptx-tools
Source-Version: 0.20240810-2
Done: Matthias Klose <d...@debian.org>

We believe that the bug you reported is fixed in the latest version of
nvptx-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1088...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <d...@debian.org> (supplier of updated nvptx-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 26 Nov 2024 11:55:46 +0100
Source: nvptx-tools
Architecture: source
Version: 0.20240810-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <d...@debian.org>
Closes: 1048610 1088093 1088094 1088095
Changes:
 nvptx-tools (0.20240810-2) unstable; urgency=medium
 .
   * Fix libiberty include path. Closes: #1088093, #1088094, #1088095.
   * Fix the clean target. Closes: #1048610.
   * Bump debhelper version.
Checksums-Sha1:
 73e6547f9226ab035ed982b8fb3c631651d46f0f 1926 nvptx-tools_0.20240810-2.dsc
 b2e58671f51c8d4c4488cbb6eb14e53132f463ab 5028 
nvptx-tools_0.20240810-2.debian.tar.xz
 f485417aa120c610a89ab3a4b1594f333dda9523 6940 
nvptx-tools_0.20240810-2_source.buildinfo
Checksums-Sha256:
 df3f13fb35cd6596414dbd322aea80701095df3d4ea998071bf74786f8a9eca3 1926 
nvptx-tools_0.20240810-2.dsc
 5005589dca522bf879ad168f2a7e1d40ae0658ee11335e53ca9c6450946624ce 5028 
nvptx-tools_0.20240810-2.debian.tar.xz
 caaff20e4ff825642c40ae274caa8d38dafcd461f7e10b676413b54921af830f 6940 
nvptx-tools_0.20240810-2_source.buildinfo
Files:
 3d8fc8a907f063a625e8ac36a73b476c 1926 devel optional 
nvptx-tools_0.20240810-2.dsc
 bbce1d18b37de2f5d32908d199bac743 5028 devel optional 
nvptx-tools_0.20240810-2.debian.tar.xz
 0837b84ca73d864fd3d476ecea9663b4 6940 devel optional 
nvptx-tools_0.20240810-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmdFvPQQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9b92D/43fBqmNm+IMaFr2VCoLeirX46mxsR1u0bw
Yv7YYY4T7FUN3cmnL++dJbVetA3t+9qTDLTtfmNfKeXHeqIg5A5XWipm7Psbf239
YzdLEWcH6uM6Y5lfbdBS7TPsCcqPGs20q5qVInLfzowdeHB+7tYaKXZshbxdQJBB
0mQO9e3WYu+FKWo7K9/aqgviU1+dPldjFVryUSpeOkPP2g3QSFohh/kw5FZ9YWLt
0GsysE3/zI6vnq0mVk8kMCGdazKltdgjJABRRBQa/ACa/0J3XRob+gUgMCH1VmS9
omELhsM1Dc6UuHNNN6V26u5s4J+h7rGsSchr8kcLbvMSD70B8zqGrwOwWm1Tq049
SnR1aN4x/bG12/5szkTamDPd8mHg12+yAXX/nqsT2jmgwstpCBAUYjOZHgzXEzXA
bMMAltOJSHKeguzkQUNkopS1+/WIzrsokALlzMR/7lh+kJnnSLO5cCn/laSroE0t
BIIYVhcfat4fzttqxKSoYjhN3vr8TZjIOQdWpz4iTcTzVEbRYz1/uIgo60qEOf/4
Q88wcgLBKHHh6Z8lAOx6gsqOeWXwwyeoTU38IgLNqi43mZJLuNujKA9HfdF2/VID
WPeC5t9v98lKXddXWNia5gkGa6FGWiMZcQsUSYe9xiTdQO7V7kDNCHcUsSEb6Zt0
Iwtv1OP4NQ==
=Lt2F
-----END PGP SIGNATURE-----

Attachment: pgpRmDyGnj5Jc.pgp
Description: PGP signature


--- End Message ---

Reply via email to