forked from intel/intel-device-plugins-for-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathze.h
34 lines (27 loc) · 1.27 KB
/
ze.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2024 Intel Corporation. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <stdint.h>
#include <stdbool.h>
#define VENDOR_ID_INTEL 0x8086
#define TEMP_ERROR_RET_VAL -999.0
void zes_set_verbosity(const int level);
bool ze_try_initialize(void);
bool zes_try_initialize(void);
int ze_status_to_string(const uint32_t error, char* out, uint32_t out_size);
int ze_intel_device_indices(uint32_t* indices, uint32_t indices_size, uint32_t* error);
uint64_t zes_device_memory_amount(char* bdf_address, uint32_t* error);
bool zes_device_memory_is_healthy(char* bdf_address, uint32_t* error);
bool zes_device_bus_is_healthy(char* bdf_address, uint32_t* error);
double zes_device_temp_max(char* bdf_address, char* sensor, uint32_t* error);