cupva_host_global_util.h#
Fully qualified name: src/host/c_api/include/detail/scheduling/cupva_host_global_util.h
File members: src/host/c_api/include/detail/scheduling/cupva_host_global_util.h
/*
* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and related documentation without an express
* license agreement from NVIDIA Corporation is strictly prohibited.
*/
#ifndef CUPVA_HOST_GLOBAL_UTIL_H
#define CUPVA_HOST_GLOBAL_UTIL_H
#include <detail/scheduling/cupva_host_types_scheduling.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
uint32_t pvaEngineCount;
uint32_t pvaVPUCount;
cupvaGenType_t pvaGen;
} cupvaHardwareInfo_t;
DLL_EXPORT cupvaError_t CupvaGetHardwareInfo(cupvaHardwareInfo_t *const hardwareInfo);
DLL_EXPORT cupvaError_t CupvaGetLastError(char const **const errorMsg);
DLL_EXPORT cupvaError_t CupvaGetDriverVersion(uint32_t *const driverVersion);
DLL_EXPORT cupvaError_t CupvaGetRuntimeVersion(uint32_t *const runtimeVersion);
#ifdef __cplusplus
}
#endif
#endif