Add SSL mutual authentication support for rdci

The RDC API is changed to pass the certificates to the gRPC.

Add the support to add all GPUs in the host to a group. Also before
add a GPU to a group, the RDC API will verify that GPU exists or not.

Add the support to fetch the temperature metrics.

Change-Id: I5857ef03fede233d16e8b2836be120f33172da93


[ROCm/rdc commit: 66e4e790c3]
This commit is contained in:
Bill(Shuzhou) Liu
2020-03-10 14:02:05 -04:00
committed by Chris Freehill
parent d1acc44ffd
commit 0a20efdbf3
20 changed files with 232 additions and 57 deletions
@@ -34,7 +34,7 @@ namespace rdc {
class RdcGroupSettingsImpl: public RdcGroupSettings {
public:
rdc_status_t rdc_group_gpu_create(rdc_group_type_t type,
rdc_status_t rdc_group_gpu_create(
const char* group_name, rdc_gpu_group_t* p_rdc_group_id) override;
rdc_status_t rdc_group_gpu_destroy(
rdc_gpu_group_t p_rdc_group_id) override;
@@ -79,7 +79,8 @@ class RdcStandaloneHandler: public RdcHandler {
// Control RdcAPI
rdc_status_t rdc_update_all_fields(uint32_t wait_for_update) override;
explicit RdcStandaloneHandler(const char* ip_and_port);
explicit RdcStandaloneHandler(const char* ip_and_port,
const char* root_ca, const char* client_cert, const char* client_key);
private:
// Helper function to handle the error
@@ -92,7 +93,8 @@ class RdcStandaloneHandler: public RdcHandler {
} // namespace amd
extern "C" {
amd::rdc::RdcHandler *make_handler(const char* ip_port);
amd::rdc::RdcHandler *make_handler(const char* ip_port,
const char* root_ca, const char* client_cert, const char* client_key);
}
#endif // RDC_LIB_IMPL_RDCSTANDALONEHANDLER_H_