[all-commits] [llvm/llvm-project] b19c08: [LIBOMPTARGET]Ignore empty target descriptors.
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Fri Jan 10 06:49:15 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b19c0810e56b552d31247dcff081643799fd97fb
https://github.com/llvm/llvm-project/commit/b19c0810e56b552d31247dcff081643799fd97fb
Author: Alexey Bataev <a.bataev at hotmail.com>
Date: 2020-01-10 (Fri, 10 Jan 2020)
Changed paths:
M openmp/libomptarget/src/rtl.cpp
A openmp/libomptarget/test/offloading/dynamic_module.c
Log Message:
-----------
[LIBOMPTARGET]Ignore empty target descriptors.
Summary:
If the dynamically loaded module has been compiled with -fopenmp-targets
and has no target regions, it has empty target descriptor. It leads to a
crash at the runtime if another module has at least one target region
and at least one entry in its descriptor. The runtime library is unable
to load the empty binary descriptor and terminates the execution.
Caused by a clang-offload-wrapper.
Reviewers: grokos, jdoerfert
Subscribers: caomhin, kkwli0, openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D72472
More information about the All-commits
mailing list