Files
anders 16c54c6653 Tilføjet venv med docling og afhængigheder
Testfiler opdelt i PNG og previews
2026-10-27 12:20:23 +01:00

67 lines
2.4 KiB
Cython

# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# This code was automatically generated across versions from 1.5.0 to 13.4.1. Do not modify it directly.
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=f6b70193e4ca3c62bd5749b3d19d305f0e268225bf1a6dcf6b95091cb0511791
# <<<< PREAMBLE CONTENT >>>>
from libc.stdint cimport (
intptr_t,
uint32_t,
uint64_t,
)
# <<<< END OF PREAMBLE CONTENT >>>>
from libc.stdint cimport intptr_t
from .cycudla cimport *
###############################################################################
# Types
###############################################################################
ctypedef cudlaDevHandle DevHandle
ctypedef cudlaModule Module
###############################################################################
# Enum
###############################################################################
ctypedef cudlaStatus _Status
ctypedef cudlaMode _Mode
ctypedef cudlaModuleAttributeType _ModuleAttributeType
ctypedef cudlaFenceType _FenceType
ctypedef cudlaModuleLoadFlags _ModuleLoadFlags
ctypedef cudlaSubmissionFlags _SubmissionFlags
ctypedef cudlaAccessPermissionFlags _AccessPermissionFlags
ctypedef cudlaDevAttributeType _DevAttributeType
ctypedef cudlaScratchMemoryConfig _ScratchMemoryConfig
###############################################################################
# Functions
###############################################################################
cpdef uint64_t get_version() except? -1
cpdef uint64_t device_get_count() except? -1
cpdef intptr_t create_device(uint64_t device, uint32_t flags) except *
cpdef intptr_t mem_register(intptr_t dev_handle, intptr_t ptr, size_t size, uint32_t flags) except *
cpdef intptr_t module_load_from_memory(intptr_t dev_handle, p_module, size_t module_size, uint32_t flags) except *
cpdef module_unload(intptr_t h_module, uint32_t flags)
cpdef submit_task(intptr_t dev_handle, intptr_t ptr_to_tasks, uint32_t num_tasks, intptr_t stream, uint32_t flags)
cpdef object device_get_attribute(intptr_t dev_handle, int attrib)
cpdef mem_unregister(intptr_t dev_handle, intptr_t dev_ptr)
cpdef int get_last_error(intptr_t dev_handle) except? 0
cpdef destroy_device(intptr_t dev_handle)
cpdef set_task_timeout_in_ms(intptr_t dev_handle, uint32_t timeout)
cpdef module_get_attributes(intptr_t h_module, int attr_type)