cupva_host_mem.h#

Fully qualified name: src/host/c_api/include/detail/workloads/cupva_host_mem.h

File members: src/host/c_api/include/detail/workloads/cupva_host_mem.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_MEMORY_H
#define CUPVA_HOST_MEMORY_H

#include <cupva_types.h>
#include <detail/workloads/cupva_host_types_workloads.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

DLL_EXPORT cupvaError_t CupvaMemGetL2BaseAddress(void **const L2BaseAddrPtr);

DLL_EXPORT cupvaError_t CupvaMemGetPointerAttributes(void *const devicePtr, cupvaPointerAttributes_t *const attr);

DLL_EXPORT cupvaError_t CupvaMemGetSurfaceAttributes(void *const devicePtr, cupvaSurfaceAttributes_t *const attr);

DLL_EXPORT cupvaError_t CupvaMemConvertToGeometry(cupvaSurfaceAttributes_t const *attr, int32_t const bpp,
                                                  struct PlanarGeometry *const geom);

#ifdef __cplusplus
}
#endif
#endif