cupva_host_context.h#

Fully qualified name: src/host/c_api/include/detail/scheduling/cupva_host_context.h

File members: src/host/c_api/include/detail/scheduling/cupva_host_context.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_CONTEXT_H
#define CUPVA_HOST_CONTEXT_H

#include <detail/scheduling/cupva_host_types_scheduling.h>

#ifdef __cplusplus
extern "C" {
#endif

DLL_EXPORT cupvaError_t CupvaContextGetCurrent(cupvaContext_t *const context);

DLL_EXPORT cupvaError_t CupvaContextSetCurrent(cupvaContext_t const context);

DLL_EXPORT cupvaError_t CupvaContextCreate(cupvaContext_t *const context, uint32_t const engineMask);

DLL_EXPORT cupvaError_t CupvaContextDestroy(cupvaContext_t const context);

#ifdef __cplusplus
}
#endif
#endif