[llvm-bugs] [Bug 49698] New: OpenMP declare mapper causes segmentation fault
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 23 08:13:33 PDT 2021
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: unassignedbugs at nondot.org
Reporter: jtramm at anl.gov
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210323/b79267e6/attachment.html>
More information about the llvm-bugs
mailing list