[Openmp-commits] [PATCH] D102346: [libomptarget][amdgpu] Remove majority of fatal errors
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed May 12 11:39:49 PDT 2021
JonChesterfield created this revision.
JonChesterfield added reviewers: pdhaliwal, jdoerfert, ronlieb, carlo.bertolli, ye-luo, tianshilei1992, protze.joachim.
Herald added subscribers: kerbowa, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
JonChesterfield requested review of this revision.
Herald added subscribers: openmp-commits, wdng.
Herald added a project: OpenMP.
[libomptarget][amdgpu] Remove majority of fatal errors
Replaces most calls to exit() with returning an error to the library entry
point. Minor changes to error handling for clear bugs, remove some dead code.
Each exit() call site replaced is either in a library entry point or a
function that already returns error codes on some paths. The existing handling
is not well tested but replacing exit() with a fallback path should be a strict
improvement.
Remaining two early exit points are an abort() from a callback and exit() from
within msgpack. Fixes for those are less obvious and left for a later patch.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102346
Files:
openmp/libomptarget/plugins/amdgpu/impl/data.cpp
openmp/libomptarget/plugins/amdgpu/impl/internal.h
openmp/libomptarget/plugins/amdgpu/impl/system.cpp
openmp/libomptarget/plugins/amdgpu/impl/utils.cpp
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102346.344887.patch
Type: text/x-patch
Size: 21638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210512/840031e6/attachment-0001.bin>
More information about the Openmp-commits
mailing list