[llvm-bugs] [Bug 49813] New: OpenMP offload runtime Floating point exception with 1 helper thread
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 1 15:56:24 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49813
Bug ID: 49813
Summary: OpenMP offload runtime Floating point exception with 1
helper thread
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: xw111luoye at gmail.com
CC: llvm-bugs at lists.llvm.org
Using commit df4fa53fddb61c2514e7e09fb7cdde53edced958
$ clang++ -fopenmp -fopenmp-targets=nvptx64 task.cpp
$ LIBOMP_USE_HIDDEN_HELPER_TASK=ON LIBOMP_NUM_HIDDEN_HELPER_THREADS=1 ./a.out
start
Floating point exception
source code:
#include <iostream>
int main()
{
int a[128];
#pragma omp target enter data map(alloc: a[:128])
{
std::cout << "start" << std::endl;
#pragma omp target update to(a[:128]) nowait
#pragma omp taskwait
std::cout << "after taskwait" << std::endl;
}
#pragma omp target exit data map(delete: a[:128])
}
--
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/20210401/ac515108/attachment-0001.html>
More information about the llvm-bugs
mailing list