intel-device-plugins-for-ku.../cmd/internal/levelzero/levelzero.proto
Tuomas Katila 2df9443fda gpu: add levelzero application
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2024-09-19 19:14:15 +03:00

46 lines
873 B
Protocol Buffer

syntax = "proto3";
option go_package = "gpu.levelzero";
service Levelzero {
rpc GetDeviceHealth(DeviceId) returns (DeviceHealth) {}
rpc GetDeviceTemperature(DeviceId) returns (DeviceTemperature) {}
rpc GetIntelIndices(GetIntelIndicesMessage) returns (DeviceIndices) {}
rpc GetDeviceMemoryAmount(DeviceId) returns (DeviceMemoryAmount) {}
}
message GetIntelIndicesMessage {}
message DeviceId {
string bdfAddress = 1;
}
message DeviceHealth {
bool memory_ok = 1;
bool bus_ok = 2;
bool soc_ok = 3;
Error error = 42;
}
message DeviceTemperature {
double global = 1;
double gpu = 2;
double memory = 3;
Error error = 42;
}
message DeviceIndices {
repeated uint32 indices = 1;
Error error = 42;
}
message DeviceMemoryAmount {
uint64 memory_size = 1;
Error error = 42;
}
message Error {
string description = 1;
uint32 errorcode = 2;
}