espressoe5rt

package
v0.6.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for darwin/amd64

Overview

Package espressoe5rt adapts Espresso's generated e5rt bindings for examples.

It is deliberately kept under examples: the generated signatures are useful for experiments, but this package does not promote them to a public API.

Index

Constants

View Source
const (
	ComputeDeviceCPU uint64 = 0x1
	ComputeDeviceGPU uint64 = 0x2
	ComputeDeviceANE uint64 = 0x4
)
View Source
const FrameworkPath = "/System/Library/PrivateFrameworks/Espresso.framework/Espresso"

FrameworkPath is Espresso's private framework path.

Variables

View Source
var Symbols = []string{
	"e5rt_e5_compiler_config_options_create",
	"e5rt_e5_compiler_config_options_set_cache_bundle_location",
	"e5rt_e5_compiler_config_options_release",
	"e5rt_e5_compiler_create_with_config",
	"e5rt_e5_compiler_release",
	"e5rt_e5_compiler_options_create",
	"e5rt_e5_compiler_options_set_compute_device_types_mask",
	"e5rt_e5_compiler_options_get_compute_device_types_mask",
	"e5rt_e5_compiler_options_set_force_recompilation",
	"e5rt_e5_compiler_options_set_segmenter",
	"e5rt_e5_compiler_options_set_custom_ane_compiler_options",
	"e5rt_e5_compiler_options_release",
	"e5rt_e5_compiler_compile",
	"e5rt_e5_compiler_is_new_compile_required",
	"e5rt_program_library_create",
	"e5rt_program_library_retain_program_function",
	"e5rt_program_library_release",
	"e5rt_program_function_load_for_execution",
	"e5rt_program_function_release",
	"e5rt_precompiled_compute_op_create_options_create_with_program_function",
	"e5rt_precompiled_compute_op_create_options_set_operation_name",
	"e5rt_precompiled_compute_op_create_options_set_allocate_intermediate_buffers",
	"e5rt_precompiled_compute_op_create_options_release",
	"e5rt_execution_stream_operation_create_precompiled_compute_operation_with_options",
	"e5rt_execution_stream_operation_release",
	"e5rt_buffer_object_alloc",
	"e5rt_buffer_object_get_data_ptr",
	"e5rt_buffer_object_release",
	"e5rt_io_port_bind_buffer_object",
	"e5rt_io_port_release",
	"e5rt_execution_stream_operation_retain_input_port",
	"e5rt_execution_stream_operation_retain_output_port",
	"e5rt_execution_stream_operation_retain_inout_port",
	"e5rt_execution_stream_create",
	"e5rt_execution_stream_operation_prepare_op_for_encode",
	"e5rt_execution_stream_encode_operation",
	"e5rt_execution_stream_execute_sync",
	"e5rt_execution_stream_submit_async",
	"e5rt_execution_stream_reset",
	"e5rt_execution_stream_release",
	"e5rt_execution_stream_set_quality_of_service",
	"e5rt_execution_stream_set_ane_execution_priority",
	"e5rt_async_event_create",
	"e5rt_async_event_release",
	"e5rt_async_event_signal",
	"e5rt_async_event_sync_wait",
	"e5rt_async_event_get_last_signaled_value",
	"e5rt_async_event_set_active_future_value",
	"e5rt_execution_stream_operation_bind_completion_event",
	"e5rt_execution_stream_operation_bind_dependent_events",
}

Symbols is the direct-dispatch symbol set reported by the examples.

Resolving a name establishes only that Espresso exports it. The typed methods in this package use signatures with the manifest's strongest grade, but that grade comes from the handwritten e5rt adapter's own call sites. It records that route being exercised; it is not independent confirmation. The remaining names are retained for the probe's explicitly raw experiments.

Functions

This section is empty.

Types

type Lib

type Lib struct {
	// contains filtered or unexported fields
}

Lib is the generated Espresso binding, checked for the symbols the examples use. Its zero value is not usable.

func Open

func Open() (*Lib, error)

Open verifies that Espresso exports every name in Symbols. It does not verify a calling convention or promote a raw symbol to a supported binding.

func (*Lib) BufferObjectAlloc

func (l *Lib) BufferObjectAlloc(nbytes uintptr, kind int) (uintptr, error)

func (*Lib) BufferObjectGetDataPtr

func (l *Lib) BufferObjectGetDataPtr(buffer uintptr) (uintptr, error)

func (*Lib) BufferObjectRelease

func (l *Lib) BufferObjectRelease(buffer uintptr) error

func (*Lib) CompilerCompile

func (l *Lib) CompilerCompile(compiler uintptr, modelPath string, options uintptr) (uintptr, error)

func (*Lib) CompilerConfigOptionsCreate

func (l *Lib) CompilerConfigOptionsCreate() (uintptr, error)

func (*Lib) CompilerConfigOptionsRelease

func (l *Lib) CompilerConfigOptionsRelease(config uintptr) error

func (*Lib) CompilerConfigOptionsSetCacheBundleLocation

func (l *Lib) CompilerConfigOptionsSetCacheBundleLocation(config uintptr, dir string) error

func (*Lib) CompilerCreateWithConfig

func (l *Lib) CompilerCreateWithConfig(config uintptr) (uintptr, error)

func (*Lib) CompilerOptionsCreate

func (l *Lib) CompilerOptionsCreate() (uintptr, error)

func (*Lib) CompilerOptionsRelease

func (l *Lib) CompilerOptionsRelease(options uintptr) error

func (*Lib) CompilerOptionsSetComputeDeviceTypesMask

func (l *Lib) CompilerOptionsSetComputeDeviceTypesMask(options uintptr, mask uint64) error

func (*Lib) CompilerOptionsSetForceRecompilation

func (l *Lib) CompilerOptionsSetForceRecompilation(options uintptr, force bool) error

func (*Lib) CompilerOptionsSetSegmenter

func (l *Lib) CompilerOptionsSetSegmenter(options uintptr, segmenter string) error

func (*Lib) CompilerRelease

func (l *Lib) CompilerRelease(compiler uintptr) error

func (*Lib) EncodeOperation

func (l *Lib) EncodeOperation(stream, operation uintptr) error

func (*Lib) ExecuteSync

func (l *Lib) ExecuteSync(stream uintptr) error

func (*Lib) ExecutionStreamCreate

func (l *Lib) ExecutionStreamCreate() (uintptr, error)

func (*Lib) ExecutionStreamRelease

func (l *Lib) ExecutionStreamRelease(stream uintptr) error

func (*Lib) ExecutionStreamReset

func (l *Lib) ExecutionStreamReset(stream uintptr) error

func (*Lib) IOPortBindBufferObject

func (l *Lib) IOPortBindBufferObject(port, buffer uintptr) error

func (*Lib) IOPortRelease

func (l *Lib) IOPortRelease(port uintptr) error

func (*Lib) OperationCreatePrecompiled

func (l *Lib) OperationCreatePrecompiled(options uintptr) (uintptr, error)

func (*Lib) OperationRelease

func (l *Lib) OperationRelease(operation uintptr) error

func (*Lib) OperationRetainInputPort

func (l *Lib) OperationRetainInputPort(operation uintptr, portName string) (uintptr, error)

func (*Lib) OperationRetainOutputPort

func (l *Lib) OperationRetainOutputPort(operation uintptr, portName string) (uintptr, error)

func (*Lib) PrecompiledComputeOpOptionsCreate

func (l *Lib) PrecompiledComputeOpOptionsCreate(function uintptr) (uintptr, error)

func (*Lib) PrecompiledComputeOpOptionsRelease

func (l *Lib) PrecompiledComputeOpOptionsRelease(options uintptr) error

func (*Lib) PrecompiledComputeOpOptionsSetAllocateIntermediateBuffers

func (l *Lib) PrecompiledComputeOpOptionsSetAllocateIntermediateBuffers(options uintptr, allocate bool) error

func (*Lib) PrecompiledComputeOpOptionsSetOperationName

func (l *Lib) PrecompiledComputeOpOptionsSetOperationName(options uintptr, name string) error

func (*Lib) ProgramFunctionLoadForExecution

func (l *Lib) ProgramFunctionLoadForExecution(function uintptr) error

func (*Lib) ProgramFunctionRelease

func (l *Lib) ProgramFunctionRelease(function uintptr) error

func (*Lib) ProgramLibraryRelease

func (l *Lib) ProgramLibraryRelease(library uintptr) error

func (*Lib) ProgramLibraryRetainProgramFunction

func (l *Lib) ProgramLibraryRetainProgramFunction(library uintptr, name string) (uintptr, error)

func (*Lib) Resolved

func (l *Lib) Resolved() []string

Resolved returns the names in Symbols that Open resolved, in Symbols order.

func (*Lib) Sym

func (l *Lib) Sym(name string) (uintptr, error)

Sym resolves a generated Espresso symbol by name. It is intended only for the probe's deliberately isolated raw-call experiments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL