https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123630

            Bug ID: 123630
           Summary: [Nvptx][OpenMP] I/O - print/write of
                    real/floating-point number segfaults
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: openmp, wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: tschwinge at gcc dot gnu.org
  Target Milestone: ---
            Target: nvptx

With nvptx offloading, the following program fails.
[It works with integer and string printing - and with gcn offloading]

!$omp target
  print *, 5.5
!$omp end target
end

_svfprintf_r () at newlib/libc/stdio/vfprintf.c:437
437             size_t decp_len = strlen (decimal_point);
(cuda-gdb) s

CUDA Exception: Warp Out-of-range Address
The exception was triggered at PC 0x7fffd72bbe90  _dtoa_r  (dtoa.c:237)

Thread 1 "a.out" received signal CUDA_EXCEPTION_5, Warp Out-of-range Address.
0x00007fffd72bbf00 in _dtoa_r<<<(1,1,1),(32,8,1)>>> () at
newlib/libc/stdlib/dtoa.c:237
237       d.d = _d;

Reply via email to