cupva_host_nonsafety.h#

Fully qualified name: src/host/c_api/include/cupva_host_nonsafety.h

File members: src/host/c_api/include/cupva_host_nonsafety.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_NONSAFETY_H
#define CUPVA_HOST_NONSAFETY_H

#include <detail/scheduling/cupva_host_mem_alloc.h>
#include <stdint.h>

#if (CUPVA_ALLOW_NONSAFETY != 1)
#    error \
        "cupva_host_nonsafety.h contains non safety certified functions, you must set CUPVA_ALLOW_NONSAFETY preprocessor token to 1 to use this header."
#endif

#ifdef __cplusplus
extern "C" {
#endif

cupvaError_t CupvaImportFromHostPtr(void **const devPtr, void *const hostPtr, int64_t const size,
                                    cupvaMemAccessType_t const accessType);

DLL_EXPORT cupvaError_t CupvaSetVPUPrintBufferSize(uint32_t const size);

#ifdef __cplusplus
}
#endif
#endif