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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Right now this has two issues I'd like to ask how to resolve.
- The libc/src/__support/OSUtil/gpu/quick_exit.cpp file currently cannot include the architectures header. It's not seen as in the path. I figured it just needed to depend on the common target to use it.
- The object library is created, but not included in the final libcgpu.a. How does the logic for including object libraries in with the entrypoints work?
Comment Actions
- The headers weren't being added correctly and I fixed that.
- I was accidentally using the libc.__support.OSUtil.osutil target which is just a header library.
So this works now.