[libc] Partially implement 'quick_exit' for the GPU
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 20 Feb 2023 19:42:08 +0000 (13:42 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 22 Feb 2023 19:10:16 +0000 (13:10 -0600)
commitf7b7c698ebcbee359e7451b31dfeb818e62b671f
tree4db37fb2437f7169feb31888cae57a015f6456f1
parent2893d55f8f61edb2c253b960cab1107ea6c163c2
[libc] Partially implement 'quick_exit' for the GPU

This patch adds a partial implementation of `quick_exit` for the GPU
target. This is mainly done to test object libraries for the GPU and
will be expanded later. This will simply cause the threads to terminate
on the GPU without returning an error code. This functionality will be
added later to facilitate unit tests.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D144421
libc/src/__support/OSUtil/gpu/CMakeLists.txt [new file with mode: 0644]
libc/src/__support/OSUtil/gpu/quick_exit.cpp [new file with mode: 0644]
libc/src/__support/OSUtil/gpu/quick_exit.h [new file with mode: 0644]
libc/src/__support/OSUtil/quick_exit.h