This is an archive of the discontinued LLVM Phabricator instance.

[libc] Implement the 'abort' function on the GPU
ClosedPublic

Authored by jhuber6 on Aug 30 2023, 8:23 AM.

Details

Summary

This function implements the abort function on the GPU. The
implementation here closely mirros the exit call where we first
synchornize with the RPC server to make sure it's listening and then we
exit on the GPU.

I was unsure if this should be a simple __builtin_assert on the GPU. I
elected to go with an RPC approach to make this a more "true" abort
call. That is, it should invoke some signal handlers and exit with the
proper code according to the implemented C library on the server.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 30 2023, 8:23 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 30 2023, 8:23 AM
jhuber6 requested review of this revision.Aug 30 2023, 8:23 AM
This revision is now accepted and ready to land.Aug 30 2023, 5:03 PM
This revision was landed with ongoing or failed builds.Aug 31 2023, 6:40 AM
This revision was automatically updated to reflect the committed changes.