Add an rdc API to get component version

Change-Id: I56250a6101debeb78628f1fd1dfff7f21c52cdc0
Signed-off-by: Chen Gong <curry.gong@amd.com>


[ROCm/rdc commit: 69a9f24b6e]
Dieser Commit ist enthalten in:
Chen Gong verfasst und Galantsev, Dmitrii committed 2024-09-10 10:06:44 -05:00
1 Ursprung d19c6dfa36
Commit 2ae8557614
1 Datei geändert
+12
+12
Datei anzeigen
@@ -56,6 +56,9 @@ service RdcAPI {
// rdc_status_t rdc_get_device_attributes(uint32_t gpu_index, rdc_device_attributes_t* p_rdc_attr)
rpc GetDeviceAttributes(GetDeviceAttributesRequest) returns (GetDeviceAttributesResponse) {}
//rdc_status_t rdc_device_get_component_version(rdc_component_t component, rdc_component_version_t* p_rdc_compv);
rpc GetComponentVersion(GetComponentVersionRequest) returns (GetComponentVersionResponse) {}
// Group API
// rdc_status_t rdc_group_gpu_create(rdc_group_type_t type,
// const char* group_name, rdc_gpu_group_t* p_rdc_group_id)
@@ -171,6 +174,15 @@ message GetDeviceAttributesResponse {
DeviceAttributes attributes = 2;
}
message GetComponentVersionRequest {
uint32 component_index = 1;
}
message GetComponentVersionResponse {
uint32 status = 1;
string version = 2;
}
message CreateGpuGroupRequest {
enum GpuGroupType {
RDC_GROUP_DEFAULT = 0;