This is an archive of the discontinued LLVM Phabricator instance.

[libc] Instantiate and sanity check rpc class
ClosedPublic

Authored by JonChesterfield on Jun 22 2023, 4:05 PM.

Details

Summary

CMake plumbing cargo culted from other tests.
Minor changes to Process to allow statically allocating a buffer.

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 22 2023, 4:05 PM
JonChesterfield requested review of this revision.Jun 22 2023, 4:05 PM

The CMake looks good, losing protected is fine since these are pretty harmless methods. This will run on x64 as it stands, so you should try a non-GPU build of libc and see if it still runs and passes.

I had a previous attempt to move the integration tests to the same location but the unit test suite dos not handle multiple threads gracefully.

jhuber6 accepted this revision.Jun 22 2023, 5:56 PM

Test passes for me, doesn't run on non-GPU builds because we don't make the RPC dependency, so I think it's good. It might be nice to check the RPC against a CPU client at some point. It is supposed to be a generic solution after all.

This revision is now accepted and ready to land.Jun 22 2023, 5:56 PM
JonChesterfield added a comment.EditedJun 22 2023, 6:05 PM

This test doesn't need anything other than the header. If I delete the string after depends it still runs on the gpu, i.e. an empty DEPENDS clause seems to be fine, shall we go with that instead?

Edit: seems not. Lets go with this as it gives me a place to write other tests in a similar style, and we can work out how to enable them on x64 later.

This test doesn't need anything other than the header. If I delete the string after depends it still runs on the gpu, i.e. an empty DEPENDS clause seems to be fine, shall we go with that instead?

I think it running on the GPU only is good for now, we can enable it on the CPU in a separate patch

This revision was automatically updated to reflect the committed changes.