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

            Bug ID: 49698
           Summary: OpenMP declare mapper causes segmentation fault
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 24686
  --> https://bugs.llvm.org/attachment.cgi?id=24686&action=edit
reproducer

The use of an OpenMP declare mapper for performing deep copies on a multi-level
object hierarchy appears to result in a segmentation fault. The seg fault
occurs on the host after after copying data from host -> device -> host.

Compiler Version: 13.0.0 (https://github.com/llvm/llvm-project.git
d70185ec4821f7960c4fe10961479d97e816da68)

Platform: Intel host + NVIDIA V100 GPU target

Compilation:

clang++ -Wall -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda -Xopenmp-target
-march=sm_70 main.cpp

Runtime Behavior:

>$ ./a.out
Original data hierarchy:
Object C Contents:
        Object B Contents:
                Object A Contents:
                        data1 = 1  data2 = 2
                Object A Contents:
                        data1 = 1  data2 = 2
        Object B Contents:
                Object A Contents:
                        data1 = 1  data2 = 2
                Object A Contents:
                        data1 = 1  data2 = 2
Object C Contents:
        Object B Contents:
                Object A Contents:
                        data1 = 1  data2 = 2
                Object A Contents:
                        data1 = 1  data2 = 2
        Object B Contents:
                Object A Contents:
                        data1 = 1  data2 = 2
                Object A Contents:
                        data1 = 1  data2 = 2
Sending data to device...
Calling foo()...
foo() complete!
Sending data back to host...
Modified Data Hierarchy:
Object C Contents:
        Object B Contents:
                Object A Contents:
Segmentation fault

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to