Documentation
¶
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
- Variables
- type Lib
- func (l *Lib) BufferObjectAlloc(nbytes uintptr, kind int) (uintptr, error)
- func (l *Lib) BufferObjectGetDataPtr(buffer uintptr) (uintptr, error)
- func (l *Lib) BufferObjectRelease(buffer uintptr) error
- func (l *Lib) CompilerCompile(compiler uintptr, modelPath string, options uintptr) (uintptr, error)
- func (l *Lib) CompilerConfigOptionsCreate() (uintptr, error)
- func (l *Lib) CompilerConfigOptionsRelease(config uintptr) error
- func (l *Lib) CompilerConfigOptionsSetCacheBundleLocation(config uintptr, dir string) error
- func (l *Lib) CompilerCreateWithConfig(config uintptr) (uintptr, error)
- func (l *Lib) CompilerOptionsCreate() (uintptr, error)
- func (l *Lib) CompilerOptionsRelease(options uintptr) error
- func (l *Lib) CompilerOptionsSetComputeDeviceTypesMask(options uintptr, mask uint64) error
- func (l *Lib) CompilerOptionsSetForceRecompilation(options uintptr, force bool) error
- func (l *Lib) CompilerOptionsSetSegmenter(options uintptr, segmenter string) error
- func (l *Lib) CompilerRelease(compiler uintptr) error
- func (l *Lib) EncodeOperation(stream, operation uintptr) error
- func (l *Lib) ExecuteSync(stream uintptr) error
- func (l *Lib) ExecutionStreamCreate() (uintptr, error)
- func (l *Lib) ExecutionStreamRelease(stream uintptr) error
- func (l *Lib) ExecutionStreamReset(stream uintptr) error
- func (l *Lib) IOPortBindBufferObject(port, buffer uintptr) error
- func (l *Lib) IOPortRelease(port uintptr) error
- func (l *Lib) OperationCreatePrecompiled(options uintptr) (uintptr, error)
- func (l *Lib) OperationRelease(operation uintptr) error
- func (l *Lib) OperationRetainInputPort(operation uintptr, portName string) (uintptr, error)
- func (l *Lib) OperationRetainOutputPort(operation uintptr, portName string) (uintptr, error)
- func (l *Lib) PrecompiledComputeOpOptionsCreate(function uintptr) (uintptr, error)
- func (l *Lib) PrecompiledComputeOpOptionsRelease(options uintptr) error
- func (l *Lib) PrecompiledComputeOpOptionsSetAllocateIntermediateBuffers(options uintptr, allocate bool) error
- func (l *Lib) PrecompiledComputeOpOptionsSetOperationName(options uintptr, name string) error
- func (l *Lib) ProgramFunctionLoadForExecution(function uintptr) error
- func (l *Lib) ProgramFunctionRelease(function uintptr) error
- func (l *Lib) ProgramLibraryRelease(library uintptr) error
- func (l *Lib) ProgramLibraryRetainProgramFunction(library uintptr, name string) (uintptr, error)
- func (l *Lib) Resolved() []string
- func (l *Lib) Sym(name string) (uintptr, error)
Constants ¶
const ( ComputeDeviceCPU uint64 = 0x1 ComputeDeviceGPU uint64 = 0x2 ComputeDeviceANE uint64 = 0x4 )
const FrameworkPath = "/System/Library/PrivateFrameworks/Espresso.framework/Espresso"
FrameworkPath is Espresso's private framework path.
Variables ¶
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 ¶
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.