[OpenMP] Implement __assert_fail in the new device runtime
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 16 Sep 2021 12:51:12 +0000 (08:51 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Sat, 18 Sep 2021 01:25:28 +0000 (21:25 -0400)
commitb266bcb13557f6a9fcf58a2d2be271a631aee72f
treee8e7cb5d9505ab39554279f9a613c8550f596547
parentc30d7730ebde18d61b33ae1de9ded69dac6ea6be
[OpenMP] Implement __assert_fail in the new device runtime

This patch implements the `__assert_fail` function in the new device
runtime. This allows users and developers to use the standars assert
function inside of the device.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D109886
openmp/libomptarget/DeviceRTL/include/Debug.h
openmp/libomptarget/DeviceRTL/src/Debug.cpp