xla
xla copied to clipboard
[PJRT C API] Add some tests for PJRT C API implementation.
[PJRT C API] Add some tests for PJRT C API implementation.
- pjrt_c_api_test contains a basic set of tests.
- A plugin can run the tests in pjrt_c_api_test via RegisterTestCApiFactory. Added a GPU PJRT plugin pjrt_c_api_gpu.h/cc and its test pjrt_c_api_test_gpu.cc as an example.