[llvm-bugs] [Bug 51089] New: Target mapping error for target_struct_map.4.c Case 2

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 14 07:52:21 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51089

            Bug ID: 51089
           Summary: Target mapping error for target_struct_map.4.c Case 2
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: protze at itc.rwth-aachen.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 25023
  --> https://bugs.llvm.org/attachment.cgi?id=25023&action=edit
Reduced code from the Examples document

The second case in the code example target_struct_map.4.c provided in the
upcoming OpenMP Examples document leads to a runtime error.

Libomptarget message: explicit extension not allowed: host address specified is
0x00007ffd5c65cf38 (24 bytes), but device allocation maps to host at
0x00007ffd5c65cf48 (8 bytes)

The mapping of S2.p[:n] at the target data construct should only map the array,
but not the pointer S2.p. 

The map clause at the target construct should create the struct with elements
a,b,p and perform the pointer attachment for S2.p

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210714/c446c2b7/attachment-0001.html>


More information about the llvm-bugs mailing list