Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions litert/c/internal/litert_runtime_c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

extern "C" {

// TODO(b/475253786): Clean up build time macros in the function table.

// A struct that contains all the LiteRT runtime C API functions.
//
// This struct is used to provide a unified interface for the LiteRT runtime
Expand Down Expand Up @@ -414,7 +412,6 @@ typedef struct LiteRtRuntimeCApiStruct {
// litert_tensor_buffer.h: LiteRtGetTensorBufferHostMemory
LiteRtStatus (*litert_get_tensor_buffer_host_memory)(
LiteRtTensorBuffer tensor_buffer, void** host_memory_addr);
#if LITERT_HAS_AHWB_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateTensorBufferFromAhwb
LiteRtStatus (*litert_create_tensor_buffer_from_ahwb)(
LiteRtEnvironment env, const LiteRtRankedTensorType* tensor_type,
Expand All @@ -423,8 +420,6 @@ typedef struct LiteRtRuntimeCApiStruct {
// litert_tensor_buffer.h: LiteRtGetTensorBufferAhwb
LiteRtStatus (*litert_get_tensor_buffer_ahwb)(
LiteRtTensorBuffer tensor_buffer, AHardwareBuffer** ahwb);
#endif // LITERT_HAS_AHWB_SUPPORT
#if LITERT_HAS_ION_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateTensorBufferFromIonBuffer
LiteRtStatus (*litert_create_tensor_buffer_from_ion_buffer)(
const LiteRtRankedTensorType* tensor_type, void* ion_buffer_addr,
Expand All @@ -434,8 +429,6 @@ typedef struct LiteRtRuntimeCApiStruct {
LiteRtStatus (*litert_get_tensor_buffer_ion_buffer)(LiteRtTensorBuffer buffer,
void** ion_buffer_addr,
int* ion_buffer_fd);
#endif // LITERT_HAS_ION_SUPPORT
#if LITERT_HAS_DMABUF_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateTensorBufferFromDmaBufBuffer
LiteRtStatus (*litert_create_tensor_buffer_from_dma_buf_buffer)(
const LiteRtRankedTensorType* tensor_type, void* dmabuf_buffer_addr,
Expand All @@ -446,8 +439,6 @@ typedef struct LiteRtRuntimeCApiStruct {
LiteRtStatus (*litert_get_tensor_buffer_dma_buf_buffer)(
LiteRtTensorBuffer tensor_buffer, void** dmabuf_buffer_addr,
int* dmabuf_buffer_fd);
#endif // LITERT_HAS_DMABUF_SUPPORT
#if LITERT_HAS_FASTRPC_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateTensorBufferFromFastRpcBuffer
LiteRtStatus (*litert_create_tensor_buffer_from_fast_rpc_buffer)(
const LiteRtRankedTensorType* tensor_type, void* fastrpc_buffer_addr,
Expand All @@ -457,8 +448,6 @@ typedef struct LiteRtRuntimeCApiStruct {
LiteRtStatus (*litert_get_tensor_buffer_fast_rpc_buffer)(
LiteRtTensorBuffer tensor_buffer, void** fastrpc_buffer_addr,
int* fastrpc_buffer_fd);
#endif // LITERT_HAS_FASTRPC_SUPPORT
#if LITERT_HAS_OPENCL_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateTensorBufferFromOpenClMemory
LiteRtStatus (*litert_create_tensor_buffer_from_opencl_memory)(
LiteRtEnvironment env, const LiteRtRankedTensorType* tensor_type,
Expand All @@ -468,7 +457,6 @@ typedef struct LiteRtRuntimeCApiStruct {
// litert_tensor_buffer.h: LiteRtGetTensorBufferOpenClMemory
LiteRtStatus (*litert_get_tensor_buffer_opencl_memory)(
LiteRtTensorBuffer tensor_buffer, LiteRtClMem* cl_mem_addr);
#endif // LITERT_HAS_OPENCL_SUPPORT
// litert_tensor_buffer.h: LiteRtGetTensorBufferCustomTensorBufferHandle
LiteRtStatus (*litert_get_tensor_buffer_custom_tensor_buffer_handle)(
LiteRtTensorBuffer tensor_buffer, HwMemoryHandle* hw_memory_handle);
Expand All @@ -491,7 +479,6 @@ typedef struct LiteRtRuntimeCApiStruct {
LiteRtStatus (*litert_get_tensor_buffer_gl_texture)(
LiteRtTensorBuffer tensor_buffer, LiteRtGLenum* target, LiteRtGLuint* id,
LiteRtGLenum* format, size_t* size_bytes, LiteRtGLint* layer);
#if LITERT_HAS_WEBGPU_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateTensorBufferFromWebGpuBuffer
LiteRtStatus (*litert_create_tensor_buffer_from_web_gpu_buffer)(
LiteRtEnvironment env, const LiteRtRankedTensorType* tensor_type,
Expand All @@ -506,8 +493,6 @@ typedef struct LiteRtRuntimeCApiStruct {
void* webgpu_texture, size_t webgpu_texture_size,
LiteRtWebGpuTextureDeallocator deallocator,
LiteRtTensorBuffer* tensor_buffer);
#endif // LITERT_HAS_WEBGPU_SUPPORT
#if LITERT_HAS_METAL_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateTensorBufferFromMetalMemory
LiteRtStatus (*litert_create_tensor_buffer_from_metal_memory)(
LiteRtEnvironment env, const LiteRtRankedTensorType* tensor_type,
Expand All @@ -517,12 +502,9 @@ typedef struct LiteRtRuntimeCApiStruct {
// litert_tensor_buffer.h: LiteRtGetTensorBufferMetalMemory
LiteRtStatus (*litert_get_tensor_buffer_metal_memory)(
LiteRtTensorBuffer tensor_buffer, HwMemoryHandle* hw_memory_handle);
#endif // LITERT_HAS_METAL_SUPPORT
#if LITERT_HAS_VULKAN_SUPPORT
// litert_tensor_buffer.h: LiteRtGetTensorBufferVulkanMemory
LiteRtStatus (*litert_get_tensor_buffer_vulkan_memory)(
LiteRtTensorBuffer tensor_buffer, HwMemoryHandle* hw_memory_handle);
#endif // LITERT_HAS_VULKAN_SUPPORT
// litert_tensor_buffer.h: LiteRtCreateManagedTensorBuffer
LiteRtStatus (*litert_create_managed_tensor_buffer)(
LiteRtEnvironment env, LiteRtTensorBufferType buffer_type,
Expand Down
Loading
Loading