gozel

package module
v0.0.0-...-4164691 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

README

GoZeL

CI Go Reference

gozel is a pure-Go binding for the Intel oneAPI Level Zero API — enabling direct GPU/NPU compute from Go without cgo.

Built on purego and Windows syscall, gozel loads ze_loader at runtime via FFI, avoiding all C compiler dependencies. The entire API surface is auto-generated from the official Level Zero SDK headers, keeping bindings always in sync with upstream.


Table of Contents


Projects Using gozel

We maintain a list of projects built with gozel. If your project uses this library, please open a PR to add it here!

Project Description Link

Features

  • No cgo — Pure Go via purego and Windows syscall. No C toolchain required at build time.
  • Auto-generated — All 200+ Level Zero functions generated directly from the official C headers, covering Core, Sysman, Tools and Runtime APIs.
  • High-level wrapper — The ze sub-package provides an idiomatic Go API over the raw bindings: typed handles, error returns, automatic resource lifetime.
  • Kernel in Go — Embed SPIR-V binaries with //go:embed, load and launch GPU kernels entirely from Go.
  • Extensible — Add new examples, wrap more APIs, or plug in your own SPIR-V pipelines.

Platform Support

gozel targets all Intel GPUs including Intel Arc / Iris Xe / Data Center GPUs that ship a Level Zero driver. Any device visible to ze_loader should work.

OS Architecture Runtime Requirement
Windows amd64 Intel GPU driver with ze_loader.dll
Linux amd64 Intel compute-runtime with libze_loader.so
More under testing...

Quick Start

Install
go get github.com/fumiama/gozel
Minimal Example
package main

import (
	"fmt"

	"github.com/fumiama/gozel/ze"
)

func main() {
	gpus, err := ze.InitGPUDrivers()
	if err != nil {
		panic(err)
	}
	fmt.Printf("Found %d GPU driver(s)\n", len(gpus))

	devs, _ := gpus[0].DeviceGet()
	for _, d := range devs {
		prop, _ := d.DeviceGetProperties()
		fmt.Printf("  Device: %s\n", string(prop.Name[:]))
	}

	// Found 1 GPU driver(s)
	//   Device:  Graphics
}
Vector-Add

This example adds up two large float32 vectors.

cd examples/vadd
# go generate          # Optional, requires SYCL toolchain (see below)
go run main.go

You will see the result like

===============  Device Basic Properties  ===============
Running on device: ID = 1 , Name = Graphics @ 4.00 GHz.
=============== Device Compute Properties ===============
Max Group Size (X, Y, Z):    (1024, 1024, 1024)
Max Group Count (X, Y, Z):   (4294967295, 4294967295, 4294967295)
Max Total Group Size:        1024
Max Shared Local Memory:     65536
Num Subgroup Sizes:          3
Subgroup Sizes:              [8 16 32 0 0 0 0 0]
=============== Computation Configuration ===============
Group Size (X, Y, Z):        (1024, 1, 1)
Group Count:                 65536
Total Elements (N):          67108864
Buffer Size:                 256 MiB
===============    Calculation Results    ===============
GPU Execution Time:          56.114500 ms
GPU Throughput:              4.78 GiB/s
===============    Validation Results    ===============
CPU Execution Time:          77.190700 ms
CPU Throughput:              3.48 GiB/s
Test Passed!!!
More Examples
Example Description Source
vadd Vector addition — GPU kernel launch, memory copy, validation examples/vadd

The ze Package — High-Level API

All examples used ze sub-package, which wraps the raw Level Zero bindings into idiomatic Go with typed handles and method chains:

// Initialize
gpus, _ := ze.InitGPUDrivers()

// Context + Device
ctx, _ := gpus[0].ContextCreate()
devs, _ := gpus[0].DeviceGet()

// Memory
hostBuf, _ := ctx.MemAllocHost(size, alignment)
devBuf, _ := ctx.MemAllocDevice(devs[0], size, alignment)
defer ctx.MemFree(hostBuf)
defer ctx.MemFree(devBuf)

// Module + Kernel
mod, _ := ctx.ModuleCreate(devs[0], spirvBytes)
krn, _ := mod.KernelCreate("my_kernel")
krn.SetArgumentValue(0, unsafe.Sizeof(uintptr(0)), unsafe.Pointer(&devBuf))
krn.SetGroupSize(256, 1, 1)

// Command submission
q, _ := ctx.CommandQueueCreate(devs[0])
cl, _ := ctx.CommandListCreate(devs[0])
cl.AppendMemoryCopy(devBuf, hostBuf, size)
cl.AppendBarrier()
cl.AppendLaunchKernel(krn, &gozel.ZeGroupCount{Groupcountx: 4, Groupcounty: 1, Groupcountz: 1})
cl.AppendBarrier()
cl.Close()
q.ExecuteCommandLists(cl)
q.Synchronize()

Compared to the raw gozel.ZeCommandListCreate(...) calls, the ze package:

  • Eliminates boilerplate descriptor initialization (struct types, Stype fields)
  • Returns Go error instead of ZeResult codes
  • Provides method syntax on handles (ctx.CommandListCreate(dev) vs standalone functions)
  • Manages handle lifetimes with defer-friendly Destroy() methods

The ze package currently covers the most common workflows. Contributions to expand coverage are very welcome — see Contributing.

🙌 Have an example to share? We'd love to grow this table — see Contributing.

Contributing

Contributions of all kinds are welcome. Some particularly impactful areas:

  • Examples — Add new examples/ demonstrating different GPU compute patterns (matrix multiply, reduction, image processing, etc.). Every example helps new users get started faster.
  • ze package coverage — The high-level wrapper doesn't cover the full Level Zero surface yet. Wrapping additional APIs (events, fences, images, sysman queries, etc.) directly benefits all downstream users.
  • Testing — Help improve test coverage across packages.
  • Documentation — Improve godoc comments, add usage guides, or translate documentation.
  • Project showcase — If you use gozel in your project, open a PR to add it to the Projects Using gozel table above.

License

This project is licensed under the GNU Affero General Public License v3.0.


Appendix I. Architecture

The FFI layer (internal/zecall) loads the Level Zero loader library at runtime, caches procedure addresses, and dispatches calls through purego or Windows syscall. All pointer arguments are protected against GC collection during syscalls via go:uintptrescapes.

gozel/
├── api.go                    # Auto-generated: registers all L0 functions at init
├── core_*.go                 # Auto-generated: Core API bindings (ze*)
├── rntm_*.go                 # Auto-generated: Runtime API bindings (zer*)
├── sysm_*.go                 # Auto-generated: Sysman API bindings (zes*)
├── tols_*.go                 # Auto-generated: Tools API bindings (zet*)
├── ze/                       # High-level idiomatic Go wrapper
│   ├── init.go               #   Driver initialization
│   ├── context.go            #   Context management
│   ├── device.go             #   Device enumeration & properties
│   ├── module.go             #   SPIR-V module loading
│   ├── kernel.go             #   Kernel creation & argument binding
│   ├── mem.go                #   Device/host memory allocation
│   └── command.go            #   Command queues, lists, barriers
├── internal/zecall/          # purego FFI layer (loads ze_loader at runtime)
├── cmd/gen/                  # Code generator: parses L0 headers → Go source
├── spec/                     # Optional L0 SDK headers for dev purpose (input to cmd/gen)
└── examples/
    ├── quick_start/          # The quick start shown in this README
    └── vadd/                 # Vector addition: SYCL kernel + Go host

Appendix II. Regenerating Bindings from Headers

gozel includes a code generator (cmd/gen) that parses the four Level Zero API headers and produces all core_*.go, rntm_*.go, sysm_*.go, tols_*.go files plus api.go.

From a local SDK

Place (or symlink) the Level Zero SDK under spec/:

spec/
├── include/level_zero/
│   ├── ze_api.h      # Core
│   ├── zer_api.h     # Runtime
│   ├── zes_api.h     # Sysman
│   └── zet_api.h     # Tools
└── lib/

Then run:

go run ./cmd/gen -spec ./spec
From a specific release

The generator can download the SDK directly from the level-zero releases:

go run ./cmd/gen -spec v1.28.0
Via go generate
go generate .

This invokes cmd/gen with the local spec/ directory as configured in doc.go.

Appendix III. Building SPIR-V Kernels

GPU kernels in the examples folder are written in SYCL C++ and compiled to SPIR-V for embedding into Go programs, which is a little bit hacky. You can also use ocloc, which is a common practice and you can search for the build doc elsewhere. The build pipeline uses go generate directives:

main.cpp ──clang++ -fsycl──▶ device_kern.bc
                              │
                        sycl-post-link
                              │
                        ▼ device_kern_0.bc
                              │
                   clang++ -emit-llvm -S
                              │
                        ▼ device_kern.ll
                              │
                     llvm-spirv
                              │
                        ▼ main.spv          ← embedded via //go:embed
Prerequisites
Build
cd examples/vadd
go generate    # compiles main.cpp → main.spv
go run main.go # runs vector addition on GPU

Documentation

Overview

Package gozel provides Go bindings for the Intel Level Zero API.

Index

Constants

View Source
const ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_NAME = "ZES_extension_device_ecc_default_properties"

ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_NAME Device ECC default properties Extension Name

View Source
const ZES_DIAG_FIRST_TEST_INDEX = 0x0

ZES_DIAG_FIRST_TEST_INDEX Diagnostic test index to use for the very first test.

View Source
const ZES_DIAG_LAST_TEST_INDEX = 0xFFFFFFFF

ZES_DIAG_LAST_TEST_INDEX Diagnostic test index to use for the very last test.

View Source
const ZES_ENGINE_ACTIVITY_EXT_NAME = "ZES_extension_engine_activity"

ZES_ENGINE_ACTIVITY_EXT_NAME Engine Activity Extension Name

View Source
const ZES_FAN_TEMP_SPEED_PAIR_COUNT = 32

ZES_FAN_TEMP_SPEED_PAIR_COUNT Maximum number of fan temperature/speed pairs in the fan speed table.

View Source
const ZES_FIRMWARE_SECURITY_VERSION_EXP_NAME = "ZES_experimental_firmware_security_version"

ZES_FIRMWARE_SECURITY_VERSION_EXP_NAME Firmware security version

View Source
const ZES_MAX_EXTENSION_NAME = 256

ZES_MAX_EXTENSION_NAME Maximum extension name string size

View Source
const ZES_MAX_FABRIC_LINK_TYPE_SIZE = 256

ZES_MAX_FABRIC_LINK_TYPE_SIZE Maximum size of the buffer that will return information about link / types

View Source
const ZES_MAX_FABRIC_PORT_MODEL_SIZE = 256

ZES_MAX_FABRIC_PORT_MODEL_SIZE Maximum Fabric port model string size

View Source
const ZES_MAX_RAS_ERROR_CATEGORY_COUNT = 7

ZES_MAX_RAS_ERROR_CATEGORY_COUNT The maximum number of categories

View Source
const ZES_MAX_UUID_SIZE = 16

ZES_MAX_UUID_SIZE Maximum device universal unique id (UUID) size in bytes.

View Source
const ZES_MEMORY_BANDWIDTH_COUNTER_BITS_EXP_PROPERTIES_NAME = "ZES_extension_mem_bandwidth_counter_bits_properties"

ZES_MEMORY_BANDWIDTH_COUNTER_BITS_EXP_PROPERTIES_NAME Memory Bandwidth Counter Valid Bits Extension Name

View Source
const ZES_MEM_PAGE_OFFLINE_STATE_EXP_NAME = "ZES_extension_mem_state"

ZES_MEM_PAGE_OFFLINE_STATE_EXP_NAME Memory State Extension Name

View Source
const ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_NAME = "ZES_extension_pci_link_speed_downgrade"

ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_NAME PCI Link Speed Downgrade Extension Name

View Source
const ZES_POWER_DOMAIN_PROPERTIES_EXP_NAME = "ZES_extension_power_domain_properties"

ZES_POWER_DOMAIN_PROPERTIES_EXP_NAME Power Domain Properties Name

View Source
const ZES_POWER_LIMITS_EXT_NAME = "ZES_extension_power_limits"

ZES_POWER_LIMITS_EXT_NAME Power Limits Extension Name

View Source
const ZES_RAS_GET_STATE_EXP_NAME = "ZES_extension_ras_state"

ZES_RAS_GET_STATE_EXP_NAME RAS Get State Extension Name

View Source
const ZES_SCHED_WATCHDOG_DISABLE = (^uint64(0))

ZES_SCHED_WATCHDOG_DISABLE Disable forward progress guard timeout.

View Source
const ZES_STRING_PROPERTY_SIZE = 64

ZES_STRING_PROPERTY_SIZE Maximum number of characters in string properties.

View Source
const ZES_SYSMAN_DEVICE_MAPPING_EXP_NAME = "ZES_experimental_sysman_device_mapping"

ZES_SYSMAN_DEVICE_MAPPING_EXP_NAME Sysman Device Mapping Extension Name

View Source
const ZES_VIRTUAL_FUNCTION_MANAGEMENT_EXP_NAME = "ZES_experimental_virtual_function_management"

ZES_VIRTUAL_FUNCTION_MANAGEMENT_EXP_NAME Virtual Function Management Extension Name

View Source
const ZET_API_TRACING_EXP_NAME = "ZET_experimental_api_tracing"

ZET_API_TRACING_EXP_NAME API Tracing Experimental Extension Name

View Source
const ZET_CONCURRENT_METRIC_GROUPS_EXP_NAME = "ZET_experimental_concurrent_metric_groups"

ZET_CONCURRENT_METRIC_GROUPS_EXP_NAME Concurrent Metric Groups Experimental Extension Name

View Source
const ZET_EXPORT_METRICS_DATA_EXP_NAME = "ZET_experimental_metric_export_data"

ZET_EXPORT_METRICS_DATA_EXP_NAME Exporting Metrics Data Experimental Extension Name

View Source
const ZET_GLOBAL_METRICS_TIMESTAMPS_EXP_NAME = "ZET_experimental_global_metric_timestamps"

ZET_GLOBAL_METRICS_TIMESTAMPS_EXP_NAME Global Metric Timestamps Experimental Extension Name

View Source
const ZET_MAX_METRIC_COMPONENT = 256

ZET_MAX_METRIC_COMPONENT Maximum metric component string size

View Source
const ZET_MAX_METRIC_DESCRIPTION = 256

ZET_MAX_METRIC_DESCRIPTION Maximum metric description string size

View Source
const ZET_MAX_METRIC_EXPORT_DATA_ELEMENT_DESCRIPTION_EXP = 256

ZET_MAX_METRIC_EXPORT_DATA_ELEMENT_DESCRIPTION_EXP Maximum export data element description string size

View Source
const ZET_MAX_METRIC_EXPORT_DATA_ELEMENT_NAME_EXP = 256

ZET_MAX_METRIC_EXPORT_DATA_ELEMENT_NAME_EXP Maximum count of characters in export data element name

View Source
const ZET_MAX_METRIC_GROUP_DESCRIPTION = 256

ZET_MAX_METRIC_GROUP_DESCRIPTION Maximum metric group description string size

View Source
const ZET_MAX_METRIC_GROUP_NAME = 256

ZET_MAX_METRIC_GROUP_NAME Maximum metric group name string size

View Source
const ZET_MAX_METRIC_GROUP_NAME_PREFIX_EXP = 64

ZET_MAX_METRIC_GROUP_NAME_PREFIX_EXP Maximum count of characters in metric group name prefix

View Source
const ZET_MAX_METRIC_NAME = 256

ZET_MAX_METRIC_NAME Maximum metric name string size

View Source
const ZET_MAX_METRIC_PROGRAMMABLE_COMPONENT_EXP = 128

ZET_MAX_METRIC_PROGRAMMABLE_COMPONENT_EXP Maximum metric programmable component string size

View Source
const ZET_MAX_METRIC_PROGRAMMABLE_DESCRIPTION_EXP = 128

ZET_MAX_METRIC_PROGRAMMABLE_DESCRIPTION_EXP Maximum metric programmable description string size

View Source
const ZET_MAX_METRIC_PROGRAMMABLE_NAME_EXP = 128

ZET_MAX_METRIC_PROGRAMMABLE_NAME_EXP Maximum metric programmable name string size

View Source
const ZET_MAX_METRIC_PROGRAMMABLE_PARAMETER_NAME_EXP = 128

ZET_MAX_METRIC_PROGRAMMABLE_PARAMETER_NAME_EXP Maximum metric programmable parameter string size

View Source
const ZET_MAX_METRIC_PROGRAMMABLE_VALUE_DESCRIPTION_EXP = 128

ZET_MAX_METRIC_PROGRAMMABLE_VALUE_DESCRIPTION_EXP Maximum value for programmable value description

View Source
const ZET_MAX_METRIC_RESULT_UNITS = 256

ZET_MAX_METRIC_RESULT_UNITS Maximum metric result units string size

View Source
const ZET_MAX_PROGRAMMABLE_METRICS_ELEMENT_DESCRIPTION_EXP = 256

ZET_MAX_PROGRAMMABLE_METRICS_ELEMENT_DESCRIPTION_EXP Maximum export data element description string size

View Source
const ZET_MAX_PROGRAMMABLE_METRICS_ELEMENT_NAME_EXP = 256

ZET_MAX_PROGRAMMABLE_METRICS_ELEMENT_NAME_EXP Maximum count of characters in export data element name

View Source
const ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_NAME = "ZET_experimental_metrics_runtime_enable_disable"

ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_NAME Runtime Enabling and Disabling Metrics Extension Name

View Source
const ZET_METRICS_TRACER_EXP_NAME = "ZET_experimental_metric_tracer"

ZET_METRICS_TRACER_EXP_NAME Metric Tracer Experimental Extension Name

View Source
const ZET_METRIC_GROUP_MARKER_EXP_NAME = "ZET_experimental_metric_group_marker"

ZET_METRIC_GROUP_MARKER_EXP_NAME Marker Support Using MetricGroup Experimental Extension Name

View Source
const ZET_MULTI_METRICS_EXP_NAME = "ZET_experimental_calculate_multiple_metrics"

ZET_MULTI_METRICS_EXP_NAME Calculating Multiple Metrics Experimental Extension Name

View Source
const ZET_PROGRAMMABLE_METRICS_EXP_NAME = "ZET_experimental_programmable_metrics"

ZET_PROGRAMMABLE_METRICS_EXP_NAME Programmable Metrics Experimental Extension Name

View Source
const ZE_API_VERSION_CURRENT_M = ((1 << 16) | (15 & 0x0000ffff))

ZE_API_VERSION_CURRENT_M Current API version as a macro

View Source
const ZE_BANDWIDTH_PROPERTIES_EXP_NAME = "ZE_experimental_bandwidth_properties"

ZE_BANDWIDTH_PROPERTIES_EXP_NAME Bandwidth Extension Name

View Source
const ZE_BFLOAT16_CONVERSIONS_EXT_NAME = "ZE_extension_bfloat16_conversions"

ZE_BFLOAT16_CONVERSIONS_EXT_NAME Bfloat16 Conversions Extension Name

View Source
const ZE_BINDLESS_IMAGE_EXP_NAME = "ZE_experimental_bindless_image"

ZE_BINDLESS_IMAGE_EXP_NAME Image Memory Properties Extension Name

View Source
const ZE_CACHELINE_SIZE_EXT_NAME = "ZE_extension_device_cache_line_size"

ZE_CACHELINE_SIZE_EXT_NAME CacheLine Size Extension Name

View Source
const ZE_CACHE_RESERVATION_EXT_NAME = "ZE_extension_cache_reservation"

ZE_CACHE_RESERVATION_EXT_NAME Cache_Reservation Extension Name

View Source
const ZE_COMMAND_LIST_CLONE_EXP_NAME = "ZE_experimental_command_list_clone"

ZE_COMMAND_LIST_CLONE_EXP_NAME Command List Clone Extension Name

View Source
const ZE_CONTEXT_POWER_SAVING_HINT_EXP_NAME = "ZE_experimental_power_saving_hint"

ZE_CONTEXT_POWER_SAVING_HINT_EXP_NAME Power Saving Hint Extension Name

View Source
const ZE_DEVICE_IP_VERSION_EXT_NAME = "ZE_extension_device_ip_version"

ZE_DEVICE_IP_VERSION_EXT_NAME Device IP Version Extension Name

View Source
const ZE_DEVICE_LUID_EXT_NAME = "ZE_extension_device_luid"

ZE_DEVICE_LUID_EXT_NAME Device Local Identifier (LUID) Extension Name

View Source
const ZE_DEVICE_MEMORY_PROPERTIES_EXT_NAME = "ZE_extension_device_memory_properties"

ZE_DEVICE_MEMORY_PROPERTIES_EXT_NAME Device Memory Properties Extension Name

View Source
const ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_NAME = "ZE_extension_device_usablemem_size_properties"

ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_NAME Device Usable Memory Size Properties Extension Name

View Source
const ZE_DEVICE_VECTOR_SIZES_EXT_NAME = "ZE_extension_device_vector_sizes"

ZE_DEVICE_VECTOR_SIZES_EXT_NAME Device Vector Sizes Query Extension Name

View Source
const ZE_DRIVER_DDI_HANDLES_EXT_NAME = "ZE_extension_driver_ddi_handles"

ZE_DRIVER_DDI_HANDLES_EXT_NAME Driver Direct Device Interface (DDI) Handles Extension Name

View Source
const ZE_EU_COUNT_EXT_NAME = "ZE_extension_eu_count"

ZE_EU_COUNT_EXT_NAME EU Count Extension Name

View Source
const ZE_EVENT_POOL_COUNTER_BASED_EXP_NAME = "ZE_experimental_event_pool_counter_based"

ZE_EVENT_POOL_COUNTER_BASED_EXP_NAME Counter-based Event Pools Extension Name

View Source
const ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_NAME = "ZE_extension_event_query_kernel_timestamps"

ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_NAME Event Query Kernel Timestamps Extension Name

View Source
const ZE_EVENT_QUERY_TIMESTAMPS_EXP_NAME = "ZE_experimental_event_query_timestamps"

ZE_EVENT_QUERY_TIMESTAMPS_EXP_NAME Event Query Timestamps Extension Name

View Source
const ZE_EXTERNAL_MEMORY_MAPPING_EXT_NAME = "ZE_extension_external_memmap_sysmem"

ZE_EXTERNAL_MEMORY_MAPPING_EXT_NAME External Memory Mapping Extension Name

View Source
const ZE_EXTERNAL_SEMAPHORES_EXTENSION_NAME = "ZE_extension_external_semaphores"

ZE_EXTERNAL_SEMAPHORES_EXTENSION_NAME External Semaphores Extension Name

View Source
const ZE_FABRIC_EXP_NAME = "ZE_experimental_fabric"

ZE_FABRIC_EXP_NAME Fabric Topology Discovery Extension Name

View Source
const ZE_FLOAT_ATOMICS_EXT_NAME = "ZE_extension_float_atomics"

ZE_FLOAT_ATOMICS_EXT_NAME Floating-Point Atomics Extension Name

View Source
const ZE_GET_KERNEL_ALLOCATION_PROPERTIES_EXP_NAME = "ZE_experimental_kernel_allocation_properties"

ZE_GET_KERNEL_ALLOCATION_PROPERTIES_EXP_NAME Get Kernel Allocation Properties Extension Name

View Source
const ZE_GET_KERNEL_BINARY_EXP_NAME = "ZE_extension_kernel_binary_exp"

ZE_GET_KERNEL_BINARY_EXP_NAME Get Kernel Binary Extension Name

View Source
const ZE_GLOBAL_OFFSET_EXP_NAME = "ZE_experimental_global_offset"

ZE_GLOBAL_OFFSET_EXP_NAME Global Offset Extension Name

View Source
const ZE_IMAGE_COPY_EXT_NAME = "ZE_extension_image_copy"

ZE_IMAGE_COPY_EXT_NAME Image Copy Extension Name

View Source
const ZE_IMAGE_FORMAT_SUPPORT_EXT_NAME = "ZE_extension_image_format_support"

ZE_IMAGE_FORMAT_SUPPORT_EXT_NAME Image Format Support Extension Name

View Source
const ZE_IMAGE_MEMORY_PROPERTIES_EXP_NAME = "ZE_experimental_image_memory_properties"

ZE_IMAGE_MEMORY_PROPERTIES_EXP_NAME Image Memory Properties Extension Name

View Source
const ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_NAME = "ZE_extension_image_query_alloc_properties"

ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_NAME Image Query Allocation Properties Extension Name

View Source
const ZE_IMAGE_VIEW_EXP_NAME = "ZE_experimental_image_view"

ZE_IMAGE_VIEW_EXP_NAME Image View Extension Name

View Source
const ZE_IMAGE_VIEW_EXT_NAME = "ZE_extension_image_view"

ZE_IMAGE_VIEW_EXT_NAME Image View Extension Name

View Source
const ZE_IMAGE_VIEW_PLANAR_EXP_NAME = "ZE_experimental_image_view_planar"

ZE_IMAGE_VIEW_PLANAR_EXP_NAME Image View Planar Extension Name

View Source
const ZE_IMAGE_VIEW_PLANAR_EXT_NAME = "ZE_extension_image_view_planar"

ZE_IMAGE_VIEW_PLANAR_EXT_NAME Image View Planar Extension Name

View Source
const ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_NAME = "ZE_experimental_immediate_command_list_append"

ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_NAME Immediate Command List Append Extension Name

View Source
const ZE_IPC_MEM_HANDLE_TYPE_EXT_NAME = "ZE_extension_ipc_mem_handle_type"

ZE_IPC_MEM_HANDLE_TYPE_EXT_NAME IPC Memory Handle Type Extension Name

View Source
const ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_NAME = "ZE_extension_kernel_max_group_size_properties"

ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_NAME Kernel Max Group Size Properties Extension Name

View Source
const ZE_KERNEL_SCHEDULING_HINTS_EXP_NAME = "ZE_experimental_scheduling_hints"

ZE_KERNEL_SCHEDULING_HINTS_EXP_NAME Kernel Scheduling Hints Extension Name

View Source
const ZE_LINKAGE_INSPECTION_EXT_NAME = "ZE_extension_linkage_inspection"

ZE_LINKAGE_INSPECTION_EXT_NAME Linkage Inspection Extension Name

View Source
const ZE_LINKONCE_ODR_EXT_NAME = "ZE_extension_linkonce_odr"

ZE_LINKONCE_ODR_EXT_NAME Linkonce ODR Extension Name

View Source
const ZE_MAX_DEVICE_LUID_SIZE_EXT = 8

ZE_MAX_DEVICE_LUID_SIZE_EXT Maximum device local identifier (LUID) size in bytes

View Source
const ZE_MAX_DEVICE_NAME = 256

ZE_MAX_DEVICE_NAME Maximum device name string size

View Source
const ZE_MAX_DEVICE_UUID_SIZE = 16

ZE_MAX_DEVICE_UUID_SIZE Maximum device universal unique id (UUID) size in bytes

View Source
const ZE_MAX_DRIVER_UUID_SIZE = 16

ZE_MAX_DRIVER_UUID_SIZE Maximum driver universal unique id (UUID) size in bytes

View Source
const ZE_MAX_EXTENSION_NAME = 256

ZE_MAX_EXTENSION_NAME Maximum extension name string size

View Source
const ZE_MAX_FABRIC_EDGE_MODEL_EXP_SIZE = 256

ZE_MAX_FABRIC_EDGE_MODEL_EXP_SIZE Maximum fabric edge model string size

View Source
const ZE_MAX_IPC_HANDLE_SIZE = 64

ZE_MAX_IPC_HANDLE_SIZE Maximum IPC handle size

View Source
const ZE_MAX_KERNEL_UUID_SIZE = 16

ZE_MAX_KERNEL_UUID_SIZE Maximum kernel universal unique id (UUID) size in bytes

View Source
const ZE_MAX_METRIC_GROUP_NAME_PREFIX = 64

ZE_MAX_METRIC_GROUP_NAME_PREFIX Maximum value metric group name prefix

View Source
const ZE_MAX_MODULE_UUID_SIZE = 16

ZE_MAX_MODULE_UUID_SIZE Maximum module universal unique id (UUID) size in bytes

View Source
const ZE_MAX_NATIVE_KERNEL_UUID_SIZE = 16

ZE_MAX_NATIVE_KERNEL_UUID_SIZE Maximum native kernel universal unique id (UUID) size in bytes

View Source
const ZE_MAX_UUID_SIZE = 16

ZE_MAX_UUID_SIZE Maximum universal unique id (UUID) size in bytes

View Source
const ZE_MEMORY_COMPRESSION_HINTS_EXT_NAME = "ZE_extension_memory_compression_hints"

ZE_MEMORY_COMPRESSION_HINTS_EXT_NAME Memory Compression Hints Extension Name

View Source
const ZE_MEMORY_FREE_POLICIES_EXT_NAME = "ZE_extension_memory_free_policies"

ZE_MEMORY_FREE_POLICIES_EXT_NAME Memory Free Policies Extension Name

View Source
const ZE_MODULE_PROGRAM_EXP_NAME = "ZE_experimental_module_program"

ZE_MODULE_PROGRAM_EXP_NAME Module Program Extension Name

View Source
const ZE_MUTABLE_COMMAND_LIST_EXP_NAME = "ZE_experimental_mutable_command_list"

ZE_MUTABLE_COMMAND_LIST_EXP_NAME Mutable Command List Extension Name

View Source
const ZE_PCI_PROPERTIES_EXT_NAME = "ZE_extension_pci_properties"

ZE_PCI_PROPERTIES_EXT_NAME PCI Properties Extension Name

View Source
const ZE_RAYTRACING_EXT_NAME = "ZE_extension_raytracing"

ZE_RAYTRACING_EXT_NAME Raytracing Extension Name

View Source
const ZE_RELAXED_ALLOCATION_LIMITS_EXP_NAME = "ZE_experimental_relaxed_allocation_limits"

ZE_RELAXED_ALLOCATION_LIMITS_EXP_NAME Relaxed Allocation Limits Extension Name

View Source
const ZE_RTAS_BUILDER_EXP_NAME = "ZE_experimental_rtas_builder"

ZE_RTAS_BUILDER_EXP_NAME Ray Tracing Acceleration Structure Builder Extension Name

View Source
const ZE_RTAS_EXT_NAME = "ZE_extension_rtas"

ZE_RTAS_EXT_NAME Ray Tracing Acceleration Structure Extension Name

View Source
const ZE_SRGB_EXT_NAME = "ZE_extension_srgb"

ZE_SRGB_EXT_NAME sRGB Extension Name

View Source
const ZE_SUBGROUPSIZE_COUNT = 8

ZE_SUBGROUPSIZE_COUNT Maximum number of subgroup sizes supported.

View Source
const ZE_SUBGROUPS_EXT_NAME = "ZE_extension_subgroups"

ZE_SUBGROUPS_EXT_NAME Subgroups Extension Name

View Source
const ZE_SUB_ALLOCATIONS_EXP_NAME = "ZE_experimental_sub_allocations"

ZE_SUB_ALLOCATIONS_EXP_NAME Sub-Allocations Properties Extension Name

Variables

ZeDefaultGPUDeviceMemAllocDesc Device Unified Shared Memory Allocation default descriptor for GPU / devices

ZeDefaultGPUHostMemAllocDesc Host Unified Shared Memory Allocation default descriptor for GPU / devices

ZeDefaultGPUImmediateCommandQueueDesc Immediate Command List default descriptor for GPU devices

Functions

func ZE_BIT

func ZE_BIT[T ~int | ~uint32 | ~uint64 | ~uintptr](_i T) T

ZE_BIT Generic macro for enumerator bit masks

func ZE_MAJOR_VERSION

func ZE_MAJOR_VERSION[T ~int | ~uint32 | ~uint64 | ~uintptr](_ver T) T

ZE_MAJOR_VERSION Extracts 'oneAPI' API major version

func ZE_MAKE_VERSION

func ZE_MAKE_VERSION[T ~int | ~uint32 | ~uint64 | ~uintptr](_major T, _minor T) T

ZE_MAKE_VERSION Generates generic 'oneAPI' API versions

func ZE_MINOR_VERSION

func ZE_MINOR_VERSION[T ~int | ~uint32 | ~uint64 | ~uintptr](_ver T) T

ZE_MINOR_VERSION Extracts 'oneAPI' API minor version

func ZerTranslateDeviceHandleToIdentifier

func ZerTranslateDeviceHandleToIdentifier(
	hDevice ZeDeviceHandle,
) (uint32, error)

ZerTranslateDeviceHandleToIdentifier Translates device handle to integer identifier. / / @details / - The implementation of this function should be lock-free. / - This function does not return error code, to get info about failure / user may use ::zerGetLastErrorDescription function. / - In case of failure, this function returns UINT32_MAX. / / @returns / - integer identifier for the device / - UINT32_MAX

Types

type ZeApiVersion

type ZeApiVersion uintptr

ZeApiVersion (ze_api_version_t) Supported API versions / / @details / - API versions contain major and minor attributes, use / ::ZE_MAJOR_VERSION and ::ZE_MINOR_VERSION

const (
	ZE_API_VERSION_1_0          ZeApiVersion = ((1 << 16) | (0 & 0x0000ffff))  // ZE_API_VERSION_1_0 version 1.0
	ZE_API_VERSION_1_1          ZeApiVersion = ((1 << 16) | (1 & 0x0000ffff))  // ZE_API_VERSION_1_1 version 1.1
	ZE_API_VERSION_1_2          ZeApiVersion = ((1 << 16) | (2 & 0x0000ffff))  // ZE_API_VERSION_1_2 version 1.2
	ZE_API_VERSION_1_3          ZeApiVersion = ((1 << 16) | (3 & 0x0000ffff))  // ZE_API_VERSION_1_3 version 1.3
	ZE_API_VERSION_1_4          ZeApiVersion = ((1 << 16) | (4 & 0x0000ffff))  // ZE_API_VERSION_1_4 version 1.4
	ZE_API_VERSION_1_5          ZeApiVersion = ((1 << 16) | (5 & 0x0000ffff))  // ZE_API_VERSION_1_5 version 1.5
	ZE_API_VERSION_1_6          ZeApiVersion = ((1 << 16) | (6 & 0x0000ffff))  // ZE_API_VERSION_1_6 version 1.6
	ZE_API_VERSION_1_7          ZeApiVersion = ((1 << 16) | (7 & 0x0000ffff))  // ZE_API_VERSION_1_7 version 1.7
	ZE_API_VERSION_1_8          ZeApiVersion = ((1 << 16) | (8 & 0x0000ffff))  // ZE_API_VERSION_1_8 version 1.8
	ZE_API_VERSION_1_9          ZeApiVersion = ((1 << 16) | (9 & 0x0000ffff))  // ZE_API_VERSION_1_9 version 1.9
	ZE_API_VERSION_1_10         ZeApiVersion = ((1 << 16) | (10 & 0x0000ffff)) // ZE_API_VERSION_1_10 version 1.10
	ZE_API_VERSION_1_11         ZeApiVersion = ((1 << 16) | (11 & 0x0000ffff)) // ZE_API_VERSION_1_11 version 1.11
	ZE_API_VERSION_1_12         ZeApiVersion = ((1 << 16) | (12 & 0x0000ffff)) // ZE_API_VERSION_1_12 version 1.12
	ZE_API_VERSION_1_13         ZeApiVersion = ((1 << 16) | (13 & 0x0000ffff)) // ZE_API_VERSION_1_13 version 1.13
	ZE_API_VERSION_1_14         ZeApiVersion = ((1 << 16) | (14 & 0x0000ffff)) // ZE_API_VERSION_1_14 version 1.14
	ZE_API_VERSION_1_15         ZeApiVersion = ((1 << 16) | (15 & 0x0000ffff)) // ZE_API_VERSION_1_15 version 1.15
	ZE_API_VERSION_CURRENT      ZeApiVersion = ((1 << 16) | (15 & 0x0000ffff)) // ZE_API_VERSION_CURRENT latest known version
	ZE_API_VERSION_FORCE_UINT32 ZeApiVersion = 0x7fffffff                      // ZE_API_VERSION_FORCE_UINT32 Value marking end of ZE_API_VERSION_* ENUMs

)

type ZeBandwidthPropertiesExpVersion

type ZeBandwidthPropertiesExpVersion uintptr

ZeBandwidthPropertiesExpVersion (ze_bandwidth_properties_exp_version_t) Bandwidth Extension Version(s)

const (
	ZE_BANDWIDTH_PROPERTIES_EXP_VERSION_1_0          ZeBandwidthPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_BANDWIDTH_PROPERTIES_EXP_VERSION_1_0 version 1.0
	ZE_BANDWIDTH_PROPERTIES_EXP_VERSION_CURRENT      ZeBandwidthPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_BANDWIDTH_PROPERTIES_EXP_VERSION_CURRENT latest known version
	ZE_BANDWIDTH_PROPERTIES_EXP_VERSION_FORCE_UINT32 ZeBandwidthPropertiesExpVersion = 0x7fffffff                     // ZE_BANDWIDTH_PROPERTIES_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_BANDWIDTH_PROPERTIES_EXP_VERSION_* ENUMs

)

type ZeBandwidthUnit

type ZeBandwidthUnit uintptr

ZeBandwidthUnit (ze_bandwidth_unit_t) Bandwidth unit

const (
	ZE_BANDWIDTH_UNIT_UNKNOWN           ZeBandwidthUnit = 0          // ZE_BANDWIDTH_UNIT_UNKNOWN The unit used for bandwidth is unknown
	ZE_BANDWIDTH_UNIT_BYTES_PER_NANOSEC ZeBandwidthUnit = 1          // ZE_BANDWIDTH_UNIT_BYTES_PER_NANOSEC Bandwidth is provided in bytes/nanosec
	ZE_BANDWIDTH_UNIT_BYTES_PER_CLOCK   ZeBandwidthUnit = 2          // ZE_BANDWIDTH_UNIT_BYTES_PER_CLOCK Bandwidth is provided in bytes/clock
	ZE_BANDWIDTH_UNIT_FORCE_UINT32      ZeBandwidthUnit = 0x7fffffff // ZE_BANDWIDTH_UNIT_FORCE_UINT32 Value marking end of ZE_BANDWIDTH_UNIT_* ENUMs

)

type ZeBaseCbParams

type ZeBaseCbParams struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZeBaseCbParams (ze_base_cb_params_t) Base for all callback function parameter types

type ZeBaseDesc

type ZeBaseDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZeBaseDesc (ze_base_desc_t) Base for all descriptor types

type ZeBaseProperties

type ZeBaseProperties struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZeBaseProperties (ze_base_properties_t) Base for all properties types

type ZeBfloat16ConversionsExtVersion

type ZeBfloat16ConversionsExtVersion uintptr

ZeBfloat16ConversionsExtVersion (ze_bfloat16_conversions_ext_version_t) Bfloat16 Conversions Extension Version(s)

const (
	ZE_BFLOAT16_CONVERSIONS_EXT_VERSION_1_0          ZeBfloat16ConversionsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_BFLOAT16_CONVERSIONS_EXT_VERSION_1_0 version 1.0
	ZE_BFLOAT16_CONVERSIONS_EXT_VERSION_CURRENT      ZeBfloat16ConversionsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_BFLOAT16_CONVERSIONS_EXT_VERSION_CURRENT latest known version
	ZE_BFLOAT16_CONVERSIONS_EXT_VERSION_FORCE_UINT32 ZeBfloat16ConversionsExtVersion = 0x7fffffff                     // ZE_BFLOAT16_CONVERSIONS_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_BFLOAT16_CONVERSIONS_EXT_VERSION_* ENUMs

)

type ZeBindlessImageExpVersion

type ZeBindlessImageExpVersion uintptr

ZeBindlessImageExpVersion (ze_bindless_image_exp_version_t) Bindless Image Extension Version(s)

const (
	ZE_BINDLESS_IMAGE_EXP_VERSION_1_0          ZeBindlessImageExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_BINDLESS_IMAGE_EXP_VERSION_1_0 version 1.0
	ZE_BINDLESS_IMAGE_EXP_VERSION_CURRENT      ZeBindlessImageExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_BINDLESS_IMAGE_EXP_VERSION_CURRENT latest known version
	ZE_BINDLESS_IMAGE_EXP_VERSION_FORCE_UINT32 ZeBindlessImageExpVersion = 0x7fffffff                     // ZE_BINDLESS_IMAGE_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_BINDLESS_IMAGE_EXP_VERSION_* ENUMs

)

type ZeBool

type ZeBool uint8

ZeBool (ze_bool_t) compiler-independent type

type ZeCacheConfigFlags

type ZeCacheConfigFlags uint32

ZeCacheConfigFlags (ze_cache_config_flags_t) Supported Cache Config flags

const (
	ZE_CACHE_CONFIG_FLAG_LARGE_SLM    ZeCacheConfigFlags = (1 << 0)   // ZE_CACHE_CONFIG_FLAG_LARGE_SLM Large SLM size
	ZE_CACHE_CONFIG_FLAG_LARGE_DATA   ZeCacheConfigFlags = (1 << 1)   // ZE_CACHE_CONFIG_FLAG_LARGE_DATA Large General Data size
	ZE_CACHE_CONFIG_FLAG_FORCE_UINT32 ZeCacheConfigFlags = 0x7fffffff // ZE_CACHE_CONFIG_FLAG_FORCE_UINT32 Value marking end of ZE_CACHE_CONFIG_FLAG_* ENUMs

)

type ZeCacheExtRegion

type ZeCacheExtRegion uintptr

ZeCacheExtRegion (ze_cache_ext_region_t) Cache Reservation Region

const (
	ZE_CACHE_EXT_REGION_ZE_CACHE_REGION_DEFAULT ZeCacheExtRegion = 0 // ZE_CACHE_EXT_REGION_ZE_CACHE_REGION_DEFAULT [DEPRECATED] utilize driver default scheme. Use

	ZE_CACHE_EXT_REGION_ZE_CACHE_RESERVE_REGION ZeCacheExtRegion = 1 // ZE_CACHE_EXT_REGION_ZE_CACHE_RESERVE_REGION [DEPRECATED] utilize reserved region. Use

	ZE_CACHE_EXT_REGION_ZE_CACHE_NON_RESERVED_REGION ZeCacheExtRegion = 2 // ZE_CACHE_EXT_REGION_ZE_CACHE_NON_RESERVED_REGION [DEPRECATED] utilize non-reserverd region. Use

	ZE_CACHE_EXT_REGION_DEFAULT      ZeCacheExtRegion = 0          // ZE_CACHE_EXT_REGION_DEFAULT utilize driver default scheme
	ZE_CACHE_EXT_REGION_RESERVED     ZeCacheExtRegion = 1          // ZE_CACHE_EXT_REGION_RESERVED utilize reserved region
	ZE_CACHE_EXT_REGION_NON_RESERVED ZeCacheExtRegion = 2          // ZE_CACHE_EXT_REGION_NON_RESERVED utilize non-reserverd region
	ZE_CACHE_EXT_REGION_FORCE_UINT32 ZeCacheExtRegion = 0x7fffffff // ZE_CACHE_EXT_REGION_FORCE_UINT32 Value marking end of ZE_CACHE_EXT_REGION_* ENUMs

)

type ZeCacheReservationExtDesc

type ZeCacheReservationExtDesc struct {
	Stype                   ZeStructureType // Stype [in] type of this structure
	Pnext                   unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Maxcachereservationsize uintptr         // Maxcachereservationsize [out] max cache reservation size

}

ZeCacheReservationExtDesc (ze_cache_reservation_ext_desc_t) CacheReservation structure / / @details / - This structure must be passed to ::zeDeviceGetCacheProperties via the / `pNext` member of ::ze_device_cache_properties_t / - Used for determining the max cache reservation allowed on device. Size / of zero means no reservation available.

type ZeCacheReservationExtVersion

type ZeCacheReservationExtVersion uintptr

ZeCacheReservationExtVersion (ze_cache_reservation_ext_version_t) Cache_Reservation Extension Version(s)

const (
	ZE_CACHE_RESERVATION_EXT_VERSION_1_0          ZeCacheReservationExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_CACHE_RESERVATION_EXT_VERSION_1_0 version 1.0
	ZE_CACHE_RESERVATION_EXT_VERSION_CURRENT      ZeCacheReservationExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_CACHE_RESERVATION_EXT_VERSION_CURRENT latest known version
	ZE_CACHE_RESERVATION_EXT_VERSION_FORCE_UINT32 ZeCacheReservationExtVersion = 0x7fffffff                     // ZE_CACHE_RESERVATION_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_CACHE_RESERVATION_EXT_VERSION_* ENUMs

)

type ZeCalculateMultipleMetricsExpVersion

type ZeCalculateMultipleMetricsExpVersion uintptr

ZeCalculateMultipleMetricsExpVersion (ze_calculate_multiple_metrics_exp_version_t) Calculating Multiple Metrics Experimental Extension Version(s)

const (
	ZE_CALCULATE_MULTIPLE_METRICS_EXP_VERSION_1_0          ZeCalculateMultipleMetricsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_CALCULATE_MULTIPLE_METRICS_EXP_VERSION_1_0 version 1.0
	ZE_CALCULATE_MULTIPLE_METRICS_EXP_VERSION_CURRENT      ZeCalculateMultipleMetricsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_CALCULATE_MULTIPLE_METRICS_EXP_VERSION_CURRENT latest known version
	ZE_CALCULATE_MULTIPLE_METRICS_EXP_VERSION_FORCE_UINT32 ZeCalculateMultipleMetricsExpVersion = 0x7fffffff                     // ZE_CALCULATE_MULTIPLE_METRICS_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_CALCULATE_MULTIPLE_METRICS_EXP_VERSION_* ENUMs

)

type ZeCallbacks

ZeCallbacks (ze_callbacks_t) Container for all callbacks

type ZeCommandListAppendBarrierParams

type ZeCommandListAppendBarrierParams struct {
	Phcommandlist  *ZeCommandListHandle
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendBarrierParams (ze_command_list_append_barrier_params_t) Callback function parameters for zeCommandListAppendBarrier / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendEventResetParams

type ZeCommandListAppendEventResetParams struct {
	Phcommandlist *ZeCommandListHandle
	Phevent       *ZeEventHandle
}

ZeCommandListAppendEventResetParams (ze_command_list_append_event_reset_params_t) Callback function parameters for zeCommandListAppendEventReset / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendImageCopyFromMemoryParams

type ZeCommandListAppendImageCopyFromMemoryParams struct {
	Phcommandlist  *ZeCommandListHandle
	Phdstimage     *ZeImageHandle
	Psrcptr        *unsafe.Pointer
	Ppdstregion    **ZeImageRegion
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendImageCopyFromMemoryParams (ze_command_list_append_image_copy_from_memory_params_t) Callback function parameters for zeCommandListAppendImageCopyFromMemory / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendImageCopyParams

type ZeCommandListAppendImageCopyParams struct {
	Phcommandlist  *ZeCommandListHandle
	Phdstimage     *ZeImageHandle
	Phsrcimage     *ZeImageHandle
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendImageCopyParams (ze_command_list_append_image_copy_params_t) Callback function parameters for zeCommandListAppendImageCopy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendImageCopyRegionParams

type ZeCommandListAppendImageCopyRegionParams struct {
	Phcommandlist  *ZeCommandListHandle
	Phdstimage     *ZeImageHandle
	Phsrcimage     *ZeImageHandle
	Ppdstregion    **ZeImageRegion
	Ppsrcregion    **ZeImageRegion
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendImageCopyRegionParams (ze_command_list_append_image_copy_region_params_t) Callback function parameters for zeCommandListAppendImageCopyRegion / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendImageCopyToMemoryParams

type ZeCommandListAppendImageCopyToMemoryParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pdstptr        *unsafe.Pointer
	Phsrcimage     *ZeImageHandle
	Ppsrcregion    **ZeImageRegion
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendImageCopyToMemoryParams (ze_command_list_append_image_copy_to_memory_params_t) Callback function parameters for zeCommandListAppendImageCopyToMemory / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendLaunchCooperativeKernelParams

type ZeCommandListAppendLaunchCooperativeKernelParams struct {
	Phcommandlist    *ZeCommandListHandle
	Phkernel         *ZeKernelHandle
	Pplaunchfuncargs **ZeGroupCount
	Phsignalevent    *ZeEventHandle
	Pnumwaitevents   *uint32
	Pphwaitevents    **ZeEventHandle
}

ZeCommandListAppendLaunchCooperativeKernelParams (ze_command_list_append_launch_cooperative_kernel_params_t) Callback function parameters for zeCommandListAppendLaunchCooperativeKernel / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendLaunchKernelIndirectParams

type ZeCommandListAppendLaunchKernelIndirectParams struct {
	Phcommandlist           *ZeCommandListHandle
	Phkernel                *ZeKernelHandle
	Pplaunchargumentsbuffer **ZeGroupCount
	Phsignalevent           *ZeEventHandle
	Pnumwaitevents          *uint32
	Pphwaitevents           **ZeEventHandle
}

ZeCommandListAppendLaunchKernelIndirectParams (ze_command_list_append_launch_kernel_indirect_params_t) Callback function parameters for zeCommandListAppendLaunchKernelIndirect / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendLaunchKernelParamCooperativeDesc

type ZeCommandListAppendLaunchKernelParamCooperativeDesc struct {
	Stype         ZeStructureType // Stype [in] type of this structure
	Pnext         unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Iscooperative ZeBool          // Iscooperative [in] When true, kernel is treated as cooperative.

}

ZeCommandListAppendLaunchKernelParamCooperativeDesc (ze_command_list_append_launch_kernel_param_cooperative_desc_t) Append launch kernel with parameters cooperative descriptor

type ZeCommandListAppendLaunchKernelParams

type ZeCommandListAppendLaunchKernelParams struct {
	Phcommandlist    *ZeCommandListHandle
	Phkernel         *ZeKernelHandle
	Pplaunchfuncargs **ZeGroupCount
	Phsignalevent    *ZeEventHandle
	Pnumwaitevents   *uint32
	Pphwaitevents    **ZeEventHandle
}

ZeCommandListAppendLaunchKernelParams (ze_command_list_append_launch_kernel_params_t) Callback function parameters for zeCommandListAppendLaunchKernel / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendLaunchMultipleKernelsIndirectParams

type ZeCommandListAppendLaunchMultipleKernelsIndirectParams struct {
	Phcommandlist           *ZeCommandListHandle
	Pnumkernels             *uint32
	Pphkernels              **ZeKernelHandle
	Ppcountbuffer           **uint32
	Pplaunchargumentsbuffer **ZeGroupCount
	Phsignalevent           *ZeEventHandle
	Pnumwaitevents          *uint32
	Pphwaitevents           **ZeEventHandle
}

ZeCommandListAppendLaunchMultipleKernelsIndirectParams (ze_command_list_append_launch_multiple_kernels_indirect_params_t) Callback function parameters for zeCommandListAppendLaunchMultipleKernelsIndirect / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendMemAdviseParams

type ZeCommandListAppendMemAdviseParams struct {
	Phcommandlist *ZeCommandListHandle
	Phdevice      *ZeDeviceHandle
	Pptr          *unsafe.Pointer
	Psize         *uintptr
	Padvice       *ZeMemoryAdvice
}

ZeCommandListAppendMemAdviseParams (ze_command_list_append_mem_advise_params_t) Callback function parameters for zeCommandListAppendMemAdvise / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendMemoryCopyFromContextParams

type ZeCommandListAppendMemoryCopyFromContextParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pdstptr        *unsafe.Pointer
	Phcontextsrc   *ZeContextHandle
	Psrcptr        *unsafe.Pointer
	Psize          *uintptr
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendMemoryCopyFromContextParams (ze_command_list_append_memory_copy_from_context_params_t) Callback function parameters for zeCommandListAppendMemoryCopyFromContext / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendMemoryCopyParams

type ZeCommandListAppendMemoryCopyParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pdstptr        *unsafe.Pointer
	Psrcptr        *unsafe.Pointer
	Psize          *uintptr
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendMemoryCopyParams (ze_command_list_append_memory_copy_params_t) Callback function parameters for zeCommandListAppendMemoryCopy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendMemoryCopyRegionParams

type ZeCommandListAppendMemoryCopyRegionParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pdstptr        *unsafe.Pointer
	Pdstregion     **ZeCopyRegion
	Pdstpitch      *uint32
	Pdstslicepitch *uint32
	Psrcptr        *unsafe.Pointer
	Psrcregion     **ZeCopyRegion
	Psrcpitch      *uint32
	Psrcslicepitch *uint32
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendMemoryCopyRegionParams (ze_command_list_append_memory_copy_region_params_t) Callback function parameters for zeCommandListAppendMemoryCopyRegion / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendMemoryFillParams

type ZeCommandListAppendMemoryFillParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pptr           *unsafe.Pointer
	Ppattern       *unsafe.Pointer
	PpatternSize   *uintptr
	Psize          *uintptr
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendMemoryFillParams (ze_command_list_append_memory_fill_params_t) Callback function parameters for zeCommandListAppendMemoryFill / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendMemoryPrefetchParams

type ZeCommandListAppendMemoryPrefetchParams struct {
	Phcommandlist *ZeCommandListHandle
	Pptr          *unsafe.Pointer
	Psize         *uintptr
}

ZeCommandListAppendMemoryPrefetchParams (ze_command_list_append_memory_prefetch_params_t) Callback function parameters for zeCommandListAppendMemoryPrefetch / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendMemoryRangesBarrierParams

type ZeCommandListAppendMemoryRangesBarrierParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pnumranges     *uint32
	Pprangesizes   **uintptr
	Ppranges       **unsafe.Pointer
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendMemoryRangesBarrierParams (ze_command_list_append_memory_ranges_barrier_params_t) Callback function parameters for zeCommandListAppendMemoryRangesBarrier / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendQueryKernelTimestampsParams

type ZeCommandListAppendQueryKernelTimestampsParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pnumevents     *uint32
	Pphevents      **ZeEventHandle
	Pdstptr        *unsafe.Pointer
	Ppoffsets      **uintptr
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendQueryKernelTimestampsParams (ze_command_list_append_query_kernel_timestamps_params_t) Callback function parameters for zeCommandListAppendQueryKernelTimestamps / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendSignalEventParams

type ZeCommandListAppendSignalEventParams struct {
	Phcommandlist *ZeCommandListHandle
	Phevent       *ZeEventHandle
}

ZeCommandListAppendSignalEventParams (ze_command_list_append_signal_event_params_t) Callback function parameters for zeCommandListAppendSignalEvent / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendWaitOnEventsParams

type ZeCommandListAppendWaitOnEventsParams struct {
	Phcommandlist *ZeCommandListHandle
	Pnumevents    *uint32
	Pphevents     **ZeEventHandle
}

ZeCommandListAppendWaitOnEventsParams (ze_command_list_append_wait_on_events_params_t) Callback function parameters for zeCommandListAppendWaitOnEvents / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListAppendWriteGlobalTimestampParams

type ZeCommandListAppendWriteGlobalTimestampParams struct {
	Phcommandlist  *ZeCommandListHandle
	Pdstptr        **uint64
	Phsignalevent  *ZeEventHandle
	Pnumwaitevents *uint32
	Pphwaitevents  **ZeEventHandle
}

ZeCommandListAppendWriteGlobalTimestampParams (ze_command_list_append_write_global_timestamp_params_t) Callback function parameters for zeCommandListAppendWriteGlobalTimestamp / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListCallbacks

type ZeCommandListCallbacks struct {
	Pfncreatecb                              ZePfncommandlistcreatecb
	Pfncreateimmediatecb                     ZePfncommandlistcreateimmediatecb
	Pfndestroycb                             ZePfncommandlistdestroycb
	Pfnclosecb                               ZePfncommandlistclosecb
	Pfnresetcb                               ZePfncommandlistresetcb
	Pfnappendwriteglobaltimestampcb          ZePfncommandlistappendwriteglobaltimestampcb
	Pfnappendbarriercb                       ZePfncommandlistappendbarriercb
	Pfnappendmemoryrangesbarriercb           ZePfncommandlistappendmemoryrangesbarriercb
	Pfnappendmemorycopycb                    ZePfncommandlistappendmemorycopycb
	Pfnappendmemoryfillcb                    ZePfncommandlistappendmemoryfillcb
	Pfnappendmemorycopyregioncb              ZePfncommandlistappendmemorycopyregioncb
	Pfnappendmemorycopyfromcontextcb         ZePfncommandlistappendmemorycopyfromcontextcb
	Pfnappendimagecopycb                     ZePfncommandlistappendimagecopycb
	Pfnappendimagecopyregioncb               ZePfncommandlistappendimagecopyregioncb
	Pfnappendimagecopytomemorycb             ZePfncommandlistappendimagecopytomemorycb
	Pfnappendimagecopyfrommemorycb           ZePfncommandlistappendimagecopyfrommemorycb
	Pfnappendmemoryprefetchcb                ZePfncommandlistappendmemoryprefetchcb
	Pfnappendmemadvisecb                     ZePfncommandlistappendmemadvisecb
	Pfnappendsignaleventcb                   ZePfncommandlistappendsignaleventcb
	Pfnappendwaitoneventscb                  ZePfncommandlistappendwaitoneventscb
	Pfnappendeventresetcb                    ZePfncommandlistappendeventresetcb
	Pfnappendquerykerneltimestampscb         ZePfncommandlistappendquerykerneltimestampscb
	Pfnappendlaunchkernelcb                  ZePfncommandlistappendlaunchkernelcb
	Pfnappendlaunchcooperativekernelcb       ZePfncommandlistappendlaunchcooperativekernelcb
	Pfnappendlaunchkernelindirectcb          ZePfncommandlistappendlaunchkernelindirectcb
	Pfnappendlaunchmultiplekernelsindirectcb ZePfncommandlistappendlaunchmultiplekernelsindirectcb
}

ZeCommandListCallbacks (ze_command_list_callbacks_t) Table of CommandList callback functions pointers

type ZeCommandListCloneExpVersion

type ZeCommandListCloneExpVersion uintptr

ZeCommandListCloneExpVersion (ze_command_list_clone_exp_version_t) Command List Clone Extension Version(s)

const (
	ZE_COMMAND_LIST_CLONE_EXP_VERSION_1_0          ZeCommandListCloneExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_COMMAND_LIST_CLONE_EXP_VERSION_1_0 version 1.0
	ZE_COMMAND_LIST_CLONE_EXP_VERSION_CURRENT      ZeCommandListCloneExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_COMMAND_LIST_CLONE_EXP_VERSION_CURRENT latest known version
	ZE_COMMAND_LIST_CLONE_EXP_VERSION_FORCE_UINT32 ZeCommandListCloneExpVersion = 0x7fffffff                     // ZE_COMMAND_LIST_CLONE_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_COMMAND_LIST_CLONE_EXP_VERSION_* ENUMs

)

type ZeCommandListCloseParams

type ZeCommandListCloseParams struct {
	Phcommandlist *ZeCommandListHandle
}

ZeCommandListCloseParams (ze_command_list_close_params_t) Callback function parameters for zeCommandListClose / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListCreateImmediateParams

type ZeCommandListCreateImmediateParams struct {
	Phcontext      *ZeContextHandle
	Phdevice       *ZeDeviceHandle
	Paltdesc       **ZeCommandQueueDesc
	Pphcommandlist **ZeCommandListHandle
}

ZeCommandListCreateImmediateParams (ze_command_list_create_immediate_params_t) Callback function parameters for zeCommandListCreateImmediate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListCreateParams

type ZeCommandListCreateParams struct {
	Phcontext      *ZeContextHandle
	Phdevice       *ZeDeviceHandle
	Pdesc          **ZeCommandListDesc
	Pphcommandlist **ZeCommandListHandle
}

ZeCommandListCreateParams (ze_command_list_create_params_t) Callback function parameters for zeCommandListCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListDesc

type ZeCommandListDesc struct {
	Stype                    ZeStructureType    // Stype [in] type of this structure
	Pnext                    unsafe.Pointer     // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Commandqueuegroupordinal uint32             // Commandqueuegroupordinal [in] command queue group ordinal to which this command list will be submitted
	Flags                    ZeCommandListFlags // Flags [in] usage flags. must be 0 (default) or a valid combination of ::ze_command_list_flag_t; default behavior may use implicit driver-based heuristics to balance latency and throughput.

}

ZeCommandListDesc (ze_command_list_desc_t) Command List descriptor

type ZeCommandListDestroyParams

type ZeCommandListDestroyParams struct {
	Phcommandlist *ZeCommandListHandle
}

ZeCommandListDestroyParams (ze_command_list_destroy_params_t) Callback function parameters for zeCommandListDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandListFlags

type ZeCommandListFlags uint32

ZeCommandListFlags (ze_command_list_flags_t) Supported command list creation flags

const (
	ZE_COMMAND_LIST_FLAG_RELAXED_ORDERING ZeCommandListFlags = (1 << 0) // ZE_COMMAND_LIST_FLAG_RELAXED_ORDERING driver may reorder commands (e.g., kernels, copies) between barriers

	ZE_COMMAND_LIST_FLAG_MAXIMIZE_THROUGHPUT ZeCommandListFlags = (1 << 1) // ZE_COMMAND_LIST_FLAG_MAXIMIZE_THROUGHPUT driver may perform additional optimizations that increase execution

	ZE_COMMAND_LIST_FLAG_EXPLICIT_ONLY ZeCommandListFlags = (1 << 2) // ZE_COMMAND_LIST_FLAG_EXPLICIT_ONLY command list should be optimized for submission to a single command

	ZE_COMMAND_LIST_FLAG_IN_ORDER ZeCommandListFlags = (1 << 3) // ZE_COMMAND_LIST_FLAG_IN_ORDER commands appended to this command list are executed in-order, with

	ZE_COMMAND_LIST_FLAG_EXP_CLONEABLE ZeCommandListFlags = (1 << 4) // ZE_COMMAND_LIST_FLAG_EXP_CLONEABLE this command list may be cloned using ::zeCommandListCreateCloneExp

	ZE_COMMAND_LIST_FLAG_COPY_OFFLOAD_HINT ZeCommandListFlags = (1 << 5) // ZE_COMMAND_LIST_FLAG_COPY_OFFLOAD_HINT Try to offload copy operations to different engines. Applicable only

	ZE_COMMAND_LIST_FLAG_FORCE_UINT32 ZeCommandListFlags = 0x7fffffff // ZE_COMMAND_LIST_FLAG_FORCE_UINT32 Value marking end of ZE_COMMAND_LIST_FLAG_* ENUMs

)

type ZeCommandListHandle

type ZeCommandListHandle uintptr

ZeCommandListHandle (ze_command_list_handle_t) Handle of driver's command list object

type ZeCommandListResetParams

type ZeCommandListResetParams struct {
	Phcommandlist *ZeCommandListHandle
}

ZeCommandListResetParams (ze_command_list_reset_params_t) Callback function parameters for zeCommandListReset / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandQueueCallbacks

type ZeCommandQueueCallbacks struct {
	Pfncreatecb              ZePfncommandqueuecreatecb
	Pfndestroycb             ZePfncommandqueuedestroycb
	Pfnexecutecommandlistscb ZePfncommandqueueexecutecommandlistscb
	Pfnsynchronizecb         ZePfncommandqueuesynchronizecb
}

ZeCommandQueueCallbacks (ze_command_queue_callbacks_t) Table of CommandQueue callback functions pointers

type ZeCommandQueueCreateParams

type ZeCommandQueueCreateParams struct {
	Phcontext       *ZeContextHandle
	Phdevice        *ZeDeviceHandle
	Pdesc           **ZeCommandQueueDesc
	Pphcommandqueue **ZeCommandQueueHandle
}

ZeCommandQueueCreateParams (ze_command_queue_create_params_t) Callback function parameters for zeCommandQueueCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandQueueDesc

type ZeCommandQueueDesc struct {
	Stype    ZeStructureType        // Stype [in] type of this structure
	Pnext    unsafe.Pointer         // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Ordinal  uint32                 // Ordinal [in] command queue group ordinal
	Index    uint32                 // Index [in] command queue index within the group; must be zero.
	Flags    ZeCommandQueueFlags    // Flags [in] usage flags. must be 0 (default) or a valid combination of ::ze_command_queue_flag_t; default behavior may use implicit driver-based heuristics to balance latency and throughput.
	Mode     ZeCommandQueueMode     // Mode [in] operation mode
	Priority ZeCommandQueuePriority // Priority [in] priority

}

ZeCommandQueueDesc (ze_command_queue_desc_t) Command Queue descriptor

type ZeCommandQueueDestroyParams

type ZeCommandQueueDestroyParams struct {
	Phcommandqueue *ZeCommandQueueHandle
}

ZeCommandQueueDestroyParams (ze_command_queue_destroy_params_t) Callback function parameters for zeCommandQueueDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandQueueExecuteCommandListsParams

type ZeCommandQueueExecuteCommandListsParams struct {
	Phcommandqueue   *ZeCommandQueueHandle
	Pnumcommandlists *uint32
	Pphcommandlists  **ZeCommandListHandle
	Phfence          *ZeFenceHandle
}

ZeCommandQueueExecuteCommandListsParams (ze_command_queue_execute_command_lists_params_t) Callback function parameters for zeCommandQueueExecuteCommandLists / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCommandQueueFlags

type ZeCommandQueueFlags uint32

ZeCommandQueueFlags (ze_command_queue_flags_t) Supported command queue flags

const (
	ZE_COMMAND_QUEUE_FLAG_EXPLICIT_ONLY ZeCommandQueueFlags = (1 << 0) // ZE_COMMAND_QUEUE_FLAG_EXPLICIT_ONLY command queue should be optimized for submission to a single device engine.

	ZE_COMMAND_QUEUE_FLAG_IN_ORDER ZeCommandQueueFlags = (1 << 1) // ZE_COMMAND_QUEUE_FLAG_IN_ORDER To be used only when creating immediate command lists. Commands

	ZE_COMMAND_QUEUE_FLAG_COPY_OFFLOAD_HINT ZeCommandQueueFlags = (1 << 2) // ZE_COMMAND_QUEUE_FLAG_COPY_OFFLOAD_HINT To be used only when creating immediate command lists and only for

	ZE_COMMAND_QUEUE_FLAG_FORCE_UINT32 ZeCommandQueueFlags = 0x7fffffff // ZE_COMMAND_QUEUE_FLAG_FORCE_UINT32 Value marking end of ZE_COMMAND_QUEUE_FLAG_* ENUMs

)

type ZeCommandQueueGroupProperties

type ZeCommandQueueGroupProperties struct {
	Stype                    ZeStructureType                  // Stype [in] type of this structure
	Pnext                    unsafe.Pointer                   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags                    ZeCommandQueueGroupPropertyFlags // Flags [out] 0 (none) or a valid combination of ::ze_command_queue_group_property_flag_t
	Maxmemoryfillpatternsize uintptr                          // Maxmemoryfillpatternsize [out] maximum `pattern_size` supported by command queue group. See ::zeCommandListAppendMemoryFill for more details.
	Numqueues                uint32                           // Numqueues [out] the number of physical engines within the group.

}

ZeCommandQueueGroupProperties (ze_command_queue_group_properties_t) Command queue group properties queried using / ::zeDeviceGetCommandQueueGroupProperties

type ZeCommandQueueGroupPropertyFlags

type ZeCommandQueueGroupPropertyFlags uint32

ZeCommandQueueGroupPropertyFlags (ze_command_queue_group_property_flags_t) Supported command queue group property flags

const (
	ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_COMPUTE             ZeCommandQueueGroupPropertyFlags = (1 << 0) // ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_COMPUTE Command queue group supports enqueing compute commands.
	ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_COPY                ZeCommandQueueGroupPropertyFlags = (1 << 1) // ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_COPY Command queue group supports enqueing copy commands.
	ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_COOPERATIVE_KERNELS ZeCommandQueueGroupPropertyFlags = (1 << 2) // ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_COOPERATIVE_KERNELS Command queue group supports cooperative kernels.

	ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_METRICS      ZeCommandQueueGroupPropertyFlags = (1 << 3)   // ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_METRICS Command queue groups supports metric queries.
	ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_FORCE_UINT32 ZeCommandQueueGroupPropertyFlags = 0x7fffffff // ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZE_COMMAND_QUEUE_GROUP_PROPERTY_FLAG_* ENUMs

)

type ZeCommandQueueHandle

type ZeCommandQueueHandle uintptr

ZeCommandQueueHandle (ze_command_queue_handle_t) Handle of driver's command queue object

type ZeCommandQueueMode

type ZeCommandQueueMode uintptr

ZeCommandQueueMode (ze_command_queue_mode_t) Supported command queue modes

const (
	ZE_COMMAND_QUEUE_MODE_DEFAULT     ZeCommandQueueMode = 0 // ZE_COMMAND_QUEUE_MODE_DEFAULT implicit default behavior; uses driver-based heuristics
	ZE_COMMAND_QUEUE_MODE_SYNCHRONOUS ZeCommandQueueMode = 1 // ZE_COMMAND_QUEUE_MODE_SYNCHRONOUS Device execution always completes immediately on execute;

	ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS ZeCommandQueueMode = 2 // ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS Device execution is scheduled and will complete in future;

	ZE_COMMAND_QUEUE_MODE_FORCE_UINT32 ZeCommandQueueMode = 0x7fffffff // ZE_COMMAND_QUEUE_MODE_FORCE_UINT32 Value marking end of ZE_COMMAND_QUEUE_MODE_* ENUMs

)

type ZeCommandQueuePriority

type ZeCommandQueuePriority uintptr

ZeCommandQueuePriority (ze_command_queue_priority_t) Supported command queue priorities

const (
	ZE_COMMAND_QUEUE_PRIORITY_NORMAL        ZeCommandQueuePriority = 0          // ZE_COMMAND_QUEUE_PRIORITY_NORMAL [default] normal priority
	ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_LOW  ZeCommandQueuePriority = 1          // ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_LOW lower priority than normal
	ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_HIGH ZeCommandQueuePriority = 2          // ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_HIGH higher priority than normal
	ZE_COMMAND_QUEUE_PRIORITY_FORCE_UINT32  ZeCommandQueuePriority = 0x7fffffff // ZE_COMMAND_QUEUE_PRIORITY_FORCE_UINT32 Value marking end of ZE_COMMAND_QUEUE_PRIORITY_* ENUMs

)

type ZeCommandQueueSynchronizeParams

type ZeCommandQueueSynchronizeParams struct {
	Phcommandqueue *ZeCommandQueueHandle
	Ptimeout       *uint64
}

ZeCommandQueueSynchronizeParams (ze_command_queue_synchronize_params_t) Callback function parameters for zeCommandQueueSynchronize / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextCallbacks

type ZeContextCallbacks struct {
	Pfncreatecb             ZePfncontextcreatecb
	Pfndestroycb            ZePfncontextdestroycb
	Pfngetstatuscb          ZePfncontextgetstatuscb
	Pfnsystembarriercb      ZePfncontextsystembarriercb
	Pfnmakememoryresidentcb ZePfncontextmakememoryresidentcb
	Pfnevictmemorycb        ZePfncontextevictmemorycb
	Pfnmakeimageresidentcb  ZePfncontextmakeimageresidentcb
	Pfnevictimagecb         ZePfncontextevictimagecb
}

ZeContextCallbacks (ze_context_callbacks_t) Table of Context callback functions pointers

type ZeContextCreateParams

type ZeContextCreateParams struct {
	Phdriver   *ZeDriverHandle
	Pdesc      **ZeContextDesc
	Pphcontext **ZeContextHandle
}

ZeContextCreateParams (ze_context_create_params_t) Callback function parameters for zeContextCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextDesc

type ZeContextDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeContextFlags  // Flags [in] creation flags. must be 0 (default) or a valid combination of ::ze_context_flag_t; default behavior may use implicit driver-based heuristics.

}

ZeContextDesc (ze_context_desc_t) Context descriptor

type ZeContextDestroyParams

type ZeContextDestroyParams struct {
	Phcontext *ZeContextHandle
}

ZeContextDestroyParams (ze_context_destroy_params_t) Callback function parameters for zeContextDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextEvictImageParams

type ZeContextEvictImageParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
	Phimage   *ZeImageHandle
}

ZeContextEvictImageParams (ze_context_evict_image_params_t) Callback function parameters for zeContextEvictImage / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextEvictMemoryParams

type ZeContextEvictMemoryParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
	Pptr      *unsafe.Pointer
	Psize     *uintptr
}

ZeContextEvictMemoryParams (ze_context_evict_memory_params_t) Callback function parameters for zeContextEvictMemory / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextFlags

type ZeContextFlags uint32

ZeContextFlags (ze_context_flags_t) Supported context creation flags

const (
	ZE_CONTEXT_FLAG_TBD          ZeContextFlags = (1 << 0)   // ZE_CONTEXT_FLAG_TBD reserved for future use
	ZE_CONTEXT_FLAG_FORCE_UINT32 ZeContextFlags = 0x7fffffff // ZE_CONTEXT_FLAG_FORCE_UINT32 Value marking end of ZE_CONTEXT_FLAG_* ENUMs

)

type ZeContextGetStatusParams

type ZeContextGetStatusParams struct {
	Phcontext *ZeContextHandle
}

ZeContextGetStatusParams (ze_context_get_status_params_t) Callback function parameters for zeContextGetStatus / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextHandle

type ZeContextHandle uintptr

ZeContextHandle (ze_context_handle_t) Handle of driver's context object

func ZeDriverGetDefaultContext

func ZeDriverGetDefaultContext(
	hDriver ZeDriverHandle,
) (ZeContextHandle, error)

ZeDriverGetDefaultContext Retrieves handle to default context from the driver. / / @details / - The implementation of this function should be lock-free. / - This returned context contains all the devices available in the / driver. / - This function does not return error code, to get info about failure / user may use ::zeDriverGetLastErrorDescription function. / - In case of failure, this function returns null. / - Details on the error can be retrieved using / ::zeDriverGetLastErrorDescription function. / / @returns / - handle of the default context / - nullptr

func ZerGetDefaultContext

func ZerGetDefaultContext() (ZeContextHandle, error)

ZerGetDefaultContext Retrieves handle to default context from the default driver. / / @details / - The driver must be initialized before calling this function. / - The implementation of this function should be lock-free. / - This returned context contains all the devices available in the / default driver. / - This function does not return error code, to get info about failure / user may use ::zerGetLastErrorDescription function. / - In case of failure, this function returns null. / - Details on the error can be retrieved using / ::zerGetLastErrorDescription function. / / @returns / - handle of the default context / - nullptr

type ZeContextMakeImageResidentParams

type ZeContextMakeImageResidentParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
	Phimage   *ZeImageHandle
}

ZeContextMakeImageResidentParams (ze_context_make_image_resident_params_t) Callback function parameters for zeContextMakeImageResident / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextMakeMemoryResidentParams

type ZeContextMakeMemoryResidentParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
	Pptr      *unsafe.Pointer
	Psize     *uintptr
}

ZeContextMakeMemoryResidentParams (ze_context_make_memory_resident_params_t) Callback function parameters for zeContextMakeMemoryResident / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeContextPowerSavingHintExpDesc

type ZeContextPowerSavingHintExpDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Hint  uint32          // Hint [in] power saving hint (default value = 0). This is value from [0,100] and can use pre-defined settings from ::ze_power_saving_hint_type_t.

}

ZeContextPowerSavingHintExpDesc (ze_context_power_saving_hint_exp_desc_t) Extended context descriptor containing power saving hint.

type ZeContextSystemBarrierParams

type ZeContextSystemBarrierParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
}

ZeContextSystemBarrierParams (ze_context_system_barrier_params_t) Callback function parameters for zeContextSystemBarrier / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeCopyBandwidthExpProperties

type ZeCopyBandwidthExpProperties struct {
	Stype             ZeStructureType // Stype [in] type of this structure
	Pnext             unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Copybandwidth     uint32          // Copybandwidth [out] design bandwidth supported by this engine type for copy operations
	Copybandwidthunit ZeBandwidthUnit // Copybandwidthunit [out] copy bandwidth unit

}

ZeCopyBandwidthExpProperties (ze_copy_bandwidth_exp_properties_t) Copy Bandwidth Properties / / @details / - This structure may be passed to / ::zeDeviceGetCommandQueueGroupProperties by having the pNext member of / ::ze_command_queue_group_properties_t point at this struct. / - [DEPRECATED]

type ZeCopyRegion

type ZeCopyRegion struct {
	Originx uint32 // Originx [in] The origin x offset for region in bytes
	Originy uint32 // Originy [in] The origin y offset for region in rows
	Originz uint32 // Originz [in] The origin z offset for region in slices
	Width   uint32 // Width [in] The region width relative to origin in bytes
	Height  uint32 // Height [in] The region height relative to origin in rows
	Depth   uint32 // Depth [in] The region depth relative to origin in slices. Set this to 0 for 2D copy.

}

ZeCopyRegion (ze_copy_region_t) Copy region descriptor

type ZeCustomPitchExpDesc

type ZeCustomPitchExpDesc struct {
	Stype      ZeStructureType // Stype [in] type of this structure
	Pnext      unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Rowpitch   uintptr         // Rowpitch [in] user programmed aligned pitch for pitched linear image allocations. This pitch should satisfy the pitchAlign requirement in ::ze_pitched_alloc_2dimage_linear_pitch_exp_info_t
	Slicepitch uintptr         // Slicepitch [in] user programmed slice pitch , must be multiple of rowPitch.  For 2D image arrary or a slice of a 3D image array - this pitch should be >= rowPitch * image_height . For 1D iamge array >= rowPitch.

}

ZeCustomPitchExpDesc (ze_custom_pitch_exp_desc_t) Specify user defined pitch for pitched linear image allocations. This / structure may be passed to ::zeImageCreate in conjunction with / ::ze_image_pitched_exp_desc_t via its pNext member

type ZeDeviceCacheLineSizeExt

type ZeDeviceCacheLineSizeExt struct {
	Stype         ZeStructureType // Stype [in] type of this structure
	Pnext         unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Cachelinesize uintptr         // Cachelinesize [out] The cache line size in bytes.

}

ZeDeviceCacheLineSizeExt (ze_device_cache_line_size_ext_t) CacheLine Size queried using ::zeDeviceGetCacheProperties / / @details / - This structure may be returned from ::zeDeviceGetCacheProperties via / the `pNext` member of ::ze_device_cache_properties_t. / - Used for determining the cache line size supported on a device.

type ZeDeviceCacheLineSizeExtVersion

type ZeDeviceCacheLineSizeExtVersion uintptr

ZeDeviceCacheLineSizeExtVersion (ze_device_cache_line_size_ext_version_t) CacheLine Size Extension Version(s)

const (
	ZE_DEVICE_CACHE_LINE_SIZE_EXT_VERSION_1_0          ZeDeviceCacheLineSizeExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_CACHE_LINE_SIZE_EXT_VERSION_1_0 version 1.0
	ZE_DEVICE_CACHE_LINE_SIZE_EXT_VERSION_CURRENT      ZeDeviceCacheLineSizeExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_CACHE_LINE_SIZE_EXT_VERSION_CURRENT latest known version
	ZE_DEVICE_CACHE_LINE_SIZE_EXT_VERSION_FORCE_UINT32 ZeDeviceCacheLineSizeExtVersion = 0x7fffffff                     // ZE_DEVICE_CACHE_LINE_SIZE_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_DEVICE_CACHE_LINE_SIZE_EXT_VERSION_* ENUMs

)

type ZeDeviceCacheProperties

type ZeDeviceCacheProperties struct {
	Stype     ZeStructureType            // Stype [in] type of this structure
	Pnext     unsafe.Pointer             // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags     ZeDeviceCachePropertyFlags // Flags [out] 0 (none) or a valid combination of ::ze_device_cache_property_flag_t
	Cachesize uintptr                    // Cachesize [out] Per-cache size, in bytes

}

ZeDeviceCacheProperties (ze_device_cache_properties_t) Device cache properties queried using ::zeDeviceGetCacheProperties

type ZeDeviceCachePropertyFlags

type ZeDeviceCachePropertyFlags uint32

ZeDeviceCachePropertyFlags (ze_device_cache_property_flags_t) Supported cache control property flags

const (
	ZE_DEVICE_CACHE_PROPERTY_FLAG_USER_CONTROL ZeDeviceCachePropertyFlags = (1 << 0)   // ZE_DEVICE_CACHE_PROPERTY_FLAG_USER_CONTROL Device support User Cache Control (i.e. SLM section vs Generic Cache)
	ZE_DEVICE_CACHE_PROPERTY_FLAG_FORCE_UINT32 ZeDeviceCachePropertyFlags = 0x7fffffff // ZE_DEVICE_CACHE_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_CACHE_PROPERTY_FLAG_* ENUMs

)

type ZeDeviceCallbacks

type ZeDeviceCallbacks struct {
	Pfngetcb                            ZePfndevicegetcb
	Pfngetsubdevicescb                  ZePfndevicegetsubdevicescb
	Pfngetpropertiescb                  ZePfndevicegetpropertiescb
	Pfngetcomputepropertiescb           ZePfndevicegetcomputepropertiescb
	Pfngetmodulepropertiescb            ZePfndevicegetmodulepropertiescb
	Pfngetcommandqueuegrouppropertiescb ZePfndevicegetcommandqueuegrouppropertiescb
	Pfngetmemorypropertiescb            ZePfndevicegetmemorypropertiescb
	Pfngetmemoryaccesspropertiescb      ZePfndevicegetmemoryaccesspropertiescb
	Pfngetcachepropertiescb             ZePfndevicegetcachepropertiescb
	Pfngetimagepropertiescb             ZePfndevicegetimagepropertiescb
	Pfngetexternalmemorypropertiescb    ZePfndevicegetexternalmemorypropertiescb
	Pfngetp2ppropertiescb               ZePfndevicegetp2ppropertiescb
	Pfncanaccesspeercb                  ZePfndevicecanaccesspeercb
	Pfngetstatuscb                      ZePfndevicegetstatuscb
}

ZeDeviceCallbacks (ze_device_callbacks_t) Table of Device callback functions pointers

type ZeDeviceCanAccessPeerParams

type ZeDeviceCanAccessPeerParams struct {
	Phdevice     *ZeDeviceHandle
	Phpeerdevice *ZeDeviceHandle
	Pvalue       **ZeBool
}

ZeDeviceCanAccessPeerParams (ze_device_can_access_peer_params_t) Callback function parameters for zeDeviceCanAccessPeer / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceComputeProperties

type ZeDeviceComputeProperties struct {
	Stype                ZeStructureType               // Stype [in] type of this structure
	Pnext                unsafe.Pointer                // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Maxtotalgroupsize    uint32                        // Maxtotalgroupsize [out] Maximum items per compute group. (groupSizeX * groupSizeY * groupSizeZ) <= maxTotalGroupSize
	Maxgroupsizex        uint32                        // Maxgroupsizex [out] Maximum items for X dimension in group
	Maxgroupsizey        uint32                        // Maxgroupsizey [out] Maximum items for Y dimension in group
	Maxgroupsizez        uint32                        // Maxgroupsizez [out] Maximum items for Z dimension in group
	Maxgroupcountx       uint32                        // Maxgroupcountx [out] Maximum groups that can be launched for x dimension
	Maxgroupcounty       uint32                        // Maxgroupcounty [out] Maximum groups that can be launched for y dimension
	Maxgroupcountz       uint32                        // Maxgroupcountz [out] Maximum groups that can be launched for z dimension
	Maxsharedlocalmemory uint32                        // Maxsharedlocalmemory [out] Maximum shared local memory per group.
	Numsubgroupsizes     uint32                        // Numsubgroupsizes [out] Number of subgroup sizes supported. This indicates number of entries in subGroupSizes.
	Subgroupsizes        [ZE_SUBGROUPSIZE_COUNT]uint32 // Subgroupsizes [out] Size group sizes supported.

}

ZeDeviceComputeProperties (ze_device_compute_properties_t) Device compute properties queried using ::zeDeviceGetComputeProperties

type ZeDeviceEventProperties

type ZeDeviceEventProperties struct {
	Stype ZeStructureType              // Stype [in] type of this structure
	Pnext unsafe.Pointer               // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeDeviceEventPropertiesFlags // Flags [out] Supported Event properties. Valid combination of ::ze_device_event_properties_flag_t.

}

ZeDeviceEventProperties (ze_device_event_properties_t) Device Event properties struct. Can be passed as pNext to / ::ze_device_properties_t to obtain properties

type ZeDeviceEventPropertiesFlags

type ZeDeviceEventPropertiesFlags uint32

ZeDeviceEventPropertiesFlags (ze_device_event_properties_flags_t) Supported Event properties flags

const (
	ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_EXTERNAL_AGGREGATE_STORAGE ZeDeviceEventPropertiesFlags = (1 << 0)   // ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_EXTERNAL_AGGREGATE_STORAGE Counter-based Event with external aggregate storage supported
	ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_IPC                        ZeDeviceEventPropertiesFlags = (1 << 1)   // ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_IPC Counter-based Event IPC sharing supported
	ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_EXTERNAL_SYNC_ALLOCATION   ZeDeviceEventPropertiesFlags = (1 << 2)   // ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_EXTERNAL_SYNC_ALLOCATION Counter-based Event with external sync allocation supported
	ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_EXTERNAL_INTERRUPT_WAIT    ZeDeviceEventPropertiesFlags = (1 << 3)   // ZE_DEVICE_EVENT_PROPERTIES_FLAG_COUNTER_BASED_EXTERNAL_INTERRUPT_WAIT Counter-based Event waiting for external interrupt id supported
	ZE_DEVICE_EVENT_PROPERTIES_FLAG_FORCE_UINT32                             ZeDeviceEventPropertiesFlags = 0x7fffffff // ZE_DEVICE_EVENT_PROPERTIES_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_EVENT_PROPERTIES_FLAG_* ENUMs

)

type ZeDeviceExternalMemoryProperties

type ZeDeviceExternalMemoryProperties struct {
	Stype                       ZeStructureType           // Stype [in] type of this structure
	Pnext                       unsafe.Pointer            // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Memoryallocationimporttypes ZeExternalMemoryTypeFlags // Memoryallocationimporttypes [out] Supported external memory import types for memory allocations.
	Memoryallocationexporttypes ZeExternalMemoryTypeFlags // Memoryallocationexporttypes [out] Supported external memory export types for memory allocations.
	Imageimporttypes            ZeExternalMemoryTypeFlags // Imageimporttypes [out] Supported external memory import types for images.
	Imageexporttypes            ZeExternalMemoryTypeFlags // Imageexporttypes [out] Supported external memory export types for images.

}

ZeDeviceExternalMemoryProperties (ze_device_external_memory_properties_t) Device external memory import and export properties

type ZeDeviceFpAtomicExtFlags

type ZeDeviceFpAtomicExtFlags uint32

ZeDeviceFpAtomicExtFlags (ze_device_fp_atomic_ext_flags_t) Supported floating-point atomic capability flags

const (
	ZE_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_LOAD_STORE ZeDeviceFpAtomicExtFlags = (1 << 0)   // ZE_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_LOAD_STORE Supports atomic load, store, and exchange
	ZE_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_ADD        ZeDeviceFpAtomicExtFlags = (1 << 1)   // ZE_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_ADD Supports atomic add and subtract
	ZE_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_MIN_MAX    ZeDeviceFpAtomicExtFlags = (1 << 2)   // ZE_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_MIN_MAX Supports atomic min and max
	ZE_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_LOAD_STORE  ZeDeviceFpAtomicExtFlags = (1 << 16)  // ZE_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_LOAD_STORE Supports atomic load, store, and exchange
	ZE_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_ADD         ZeDeviceFpAtomicExtFlags = (1 << 17)  // ZE_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_ADD Supports atomic add and subtract
	ZE_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_MIN_MAX     ZeDeviceFpAtomicExtFlags = (1 << 18)  // ZE_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_MIN_MAX Supports atomic min and max
	ZE_DEVICE_FP_ATOMIC_EXT_FLAG_FORCE_UINT32      ZeDeviceFpAtomicExtFlags = 0x7fffffff // ZE_DEVICE_FP_ATOMIC_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_FP_ATOMIC_EXT_FLAG_* ENUMs

)

type ZeDeviceFpFlags

type ZeDeviceFpFlags uint32

ZeDeviceFpFlags (ze_device_fp_flags_t) Supported floating-Point capability flags

const (
	ZE_DEVICE_FP_FLAG_DENORM              ZeDeviceFpFlags = (1 << 0) // ZE_DEVICE_FP_FLAG_DENORM Supports denorms
	ZE_DEVICE_FP_FLAG_INF_NAN             ZeDeviceFpFlags = (1 << 1) // ZE_DEVICE_FP_FLAG_INF_NAN Supports INF and quiet NaNs
	ZE_DEVICE_FP_FLAG_ROUND_TO_NEAREST    ZeDeviceFpFlags = (1 << 2) // ZE_DEVICE_FP_FLAG_ROUND_TO_NEAREST Supports rounding to nearest even rounding mode
	ZE_DEVICE_FP_FLAG_ROUND_TO_ZERO       ZeDeviceFpFlags = (1 << 3) // ZE_DEVICE_FP_FLAG_ROUND_TO_ZERO Supports rounding to zero.
	ZE_DEVICE_FP_FLAG_ROUND_TO_INF        ZeDeviceFpFlags = (1 << 4) // ZE_DEVICE_FP_FLAG_ROUND_TO_INF Supports rounding to both positive and negative INF.
	ZE_DEVICE_FP_FLAG_FMA                 ZeDeviceFpFlags = (1 << 5) // ZE_DEVICE_FP_FLAG_FMA Supports IEEE754-2008 fused multiply-add.
	ZE_DEVICE_FP_FLAG_ROUNDED_DIVIDE_SQRT ZeDeviceFpFlags = (1 << 6) // ZE_DEVICE_FP_FLAG_ROUNDED_DIVIDE_SQRT Supports rounding as defined by IEEE754 for divide and sqrt

	ZE_DEVICE_FP_FLAG_SOFT_FLOAT   ZeDeviceFpFlags = (1 << 7)   // ZE_DEVICE_FP_FLAG_SOFT_FLOAT Uses software implementation for basic floating-point operations.
	ZE_DEVICE_FP_FLAG_FORCE_UINT32 ZeDeviceFpFlags = 0x7fffffff // ZE_DEVICE_FP_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_FP_FLAG_* ENUMs

)

type ZeDeviceGetCachePropertiesParams

type ZeDeviceGetCachePropertiesParams struct {
	Phdevice          *ZeDeviceHandle
	Ppcount           **uint32
	Ppcacheproperties **ZeDeviceCacheProperties
}

ZeDeviceGetCachePropertiesParams (ze_device_get_cache_properties_params_t) Callback function parameters for zeDeviceGetCacheProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetCommandQueueGroupPropertiesParams

type ZeDeviceGetCommandQueueGroupPropertiesParams struct {
	Phdevice                      *ZeDeviceHandle
	Ppcount                       **uint32
	Ppcommandqueuegroupproperties **ZeCommandQueueGroupProperties
}

ZeDeviceGetCommandQueueGroupPropertiesParams (ze_device_get_command_queue_group_properties_params_t) Callback function parameters for zeDeviceGetCommandQueueGroupProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetComputePropertiesParams

type ZeDeviceGetComputePropertiesParams struct {
	Phdevice            *ZeDeviceHandle
	Ppcomputeproperties **ZeDeviceComputeProperties
}

ZeDeviceGetComputePropertiesParams (ze_device_get_compute_properties_params_t) Callback function parameters for zeDeviceGetComputeProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetExternalMemoryPropertiesParams

type ZeDeviceGetExternalMemoryPropertiesParams struct {
	Phdevice                   *ZeDeviceHandle
	Ppexternalmemoryproperties **ZeDeviceExternalMemoryProperties
}

ZeDeviceGetExternalMemoryPropertiesParams (ze_device_get_external_memory_properties_params_t) Callback function parameters for zeDeviceGetExternalMemoryProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetImagePropertiesParams

type ZeDeviceGetImagePropertiesParams struct {
	Phdevice          *ZeDeviceHandle
	Ppimageproperties **ZeDeviceImageProperties
}

ZeDeviceGetImagePropertiesParams (ze_device_get_image_properties_params_t) Callback function parameters for zeDeviceGetImageProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetMemoryAccessPropertiesParams

type ZeDeviceGetMemoryAccessPropertiesParams struct {
	Phdevice              *ZeDeviceHandle
	Ppmemaccessproperties **ZeDeviceMemoryAccessProperties
}

ZeDeviceGetMemoryAccessPropertiesParams (ze_device_get_memory_access_properties_params_t) Callback function parameters for zeDeviceGetMemoryAccessProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetMemoryPropertiesParams

type ZeDeviceGetMemoryPropertiesParams struct {
	Phdevice        *ZeDeviceHandle
	Ppcount         **uint32
	Ppmemproperties **ZeDeviceMemoryProperties
}

ZeDeviceGetMemoryPropertiesParams (ze_device_get_memory_properties_params_t) Callback function parameters for zeDeviceGetMemoryProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetModulePropertiesParams

type ZeDeviceGetModulePropertiesParams struct {
	Phdevice           *ZeDeviceHandle
	Ppmoduleproperties **ZeDeviceModuleProperties
}

ZeDeviceGetModulePropertiesParams (ze_device_get_module_properties_params_t) Callback function parameters for zeDeviceGetModuleProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetP2PPropertiesParams

type ZeDeviceGetP2PPropertiesParams struct {
	Phdevice        *ZeDeviceHandle
	Phpeerdevice    *ZeDeviceHandle
	Ppp2pproperties **ZeDeviceP2pProperties
}

ZeDeviceGetP2PPropertiesParams (ze_device_get_p2_p_properties_params_t) Callback function parameters for zeDeviceGetP2PProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetParams

type ZeDeviceGetParams struct {
	Phdriver   *ZeDriverHandle
	Ppcount    **uint32
	Pphdevices **ZeDeviceHandle
}

ZeDeviceGetParams (ze_device_get_params_t) Callback function parameters for zeDeviceGet / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetPropertiesParams

type ZeDeviceGetPropertiesParams struct {
	Phdevice           *ZeDeviceHandle
	Ppdeviceproperties **ZeDeviceProperties
}

ZeDeviceGetPropertiesParams (ze_device_get_properties_params_t) Callback function parameters for zeDeviceGetProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetStatusParams

type ZeDeviceGetStatusParams struct {
	Phdevice *ZeDeviceHandle
}

ZeDeviceGetStatusParams (ze_device_get_status_params_t) Callback function parameters for zeDeviceGetStatus / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceGetSubDevicesParams

type ZeDeviceGetSubDevicesParams struct {
	Phdevice      *ZeDeviceHandle
	Ppcount       **uint32
	Pphsubdevices **ZeDeviceHandle
}

ZeDeviceGetSubDevicesParams (ze_device_get_sub_devices_params_t) Callback function parameters for zeDeviceGetSubDevices / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDeviceHandle

type ZeDeviceHandle uintptr

ZeDeviceHandle (ze_device_handle_t) Handle of driver's device object

func ZerTranslateIdentifierToDeviceHandle

func ZerTranslateIdentifierToDeviceHandle(
	identifier uint32,
) (ZeDeviceHandle, error)

ZerTranslateIdentifierToDeviceHandle Translates to integer identifier to a device handle. / / @details / - The driver must be initialized before calling this function. / - The implementation of this function should be lock-free. / - This function does not return error code, to get info about failure / user may use ::zerGetLastErrorDescription function. / - In case of failure, this function returns null. / - Details on the error can be retrieved using / ::zerGetLastErrorDescription function. / / @returns / - handle of the device with the given identifier / - nullptr

type ZeDeviceImageProperties

type ZeDeviceImageProperties struct {
	Stype               ZeStructureType // Stype [in] type of this structure
	Pnext               unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Maximagedims1d      uint32          // Maximagedims1d [out] Maximum image dimensions for 1D resources. if 0, then 1D images are unsupported.
	Maximagedims2d      uint32          // Maximagedims2d [out] Maximum image dimensions for 2D resources. if 0, then 2D images are unsupported.
	Maximagedims3d      uint32          // Maximagedims3d [out] Maximum image dimensions for 3D resources. if 0, then 3D images are unsupported.
	Maximagebuffersize  uint64          // Maximagebuffersize [out] Maximum image buffer size in bytes. if 0, then buffer images are unsupported.
	Maximagearrayslices uint32          // Maximagearrayslices [out] Maximum image array slices. if 0, then image arrays are unsupported.
	Maxsamplers         uint32          // Maxsamplers [out] Max samplers that can be used in kernel. if 0, then sampling is unsupported.
	Maxreadimageargs    uint32          // Maxreadimageargs [out] Returns the maximum number of simultaneous image objects that can be read from by a kernel. if 0, then reading images is unsupported.
	Maxwriteimageargs   uint32          // Maxwriteimageargs [out] Returns the maximum number of simultaneous image objects that can be written to by a kernel. if 0, then writing images is unsupported.

}

ZeDeviceImageProperties (ze_device_image_properties_t) Device image properties queried using ::zeDeviceGetImageProperties

type ZeDeviceIpVersionExt

type ZeDeviceIpVersionExt struct {
	Stype     ZeStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Ipversion uint32          // Ipversion [out] Device IP version. The meaning of the device IP version is implementation-defined, but newer devices should have a higher version than older devices.

}

ZeDeviceIpVersionExt (ze_device_ip_version_ext_t) Device IP version queried using ::zeDeviceGetProperties / / @details / - This structure may be returned from ::zeDeviceGetProperties via the / `pNext` member of ::ze_device_properties_t

type ZeDeviceIpVersionVersion

type ZeDeviceIpVersionVersion uintptr

ZeDeviceIpVersionVersion (ze_device_ip_version_version_t) Device IP Version Extension Version(s)

const (
	ZE_DEVICE_IP_VERSION_VERSION_1_0          ZeDeviceIpVersionVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_IP_VERSION_VERSION_1_0 version 1.0
	ZE_DEVICE_IP_VERSION_VERSION_CURRENT      ZeDeviceIpVersionVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_IP_VERSION_VERSION_CURRENT latest known version
	ZE_DEVICE_IP_VERSION_VERSION_FORCE_UINT32 ZeDeviceIpVersionVersion = 0x7fffffff                     // ZE_DEVICE_IP_VERSION_VERSION_FORCE_UINT32 Value marking end of ZE_DEVICE_IP_VERSION_VERSION_* ENUMs

)

type ZeDeviceLuidExt

type ZeDeviceLuidExt struct {
	Id [ZE_MAX_DEVICE_LUID_SIZE_EXT]uint8 // Id [out] opaque data representing a device LUID

}

ZeDeviceLuidExt (ze_device_luid_ext_t) Device local identifier (LUID)

type ZeDeviceLuidExtProperties

type ZeDeviceLuidExtProperties struct {
	Stype    ZeStructureType // Stype [in] type of this structure
	Pnext    unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Luid     ZeDeviceLuidExt // Luid [out] locally unique identifier (LUID). The returned LUID can be cast to a LUID object and must be equal to the locally unique identifier of an IDXGIAdapter1 object that corresponds to the device.
	Nodemask uint32          // Nodemask [out] node mask. The returned node mask must contain exactly one bit. If the device is running on an operating system that supports the Direct3D 12 API and the device corresponds to an individual device in a linked device adapter, the returned node mask identifies the Direct3D 12 node corresponding to the device. Otherwise, the returned node mask must be 1.

}

ZeDeviceLuidExtProperties (ze_device_luid_ext_properties_t) Device LUID properties queried using ::zeDeviceGetProperties / / @details / - This structure may be returned from ::zeDeviceGetProperties, via the / `pNext` member of ::ze_device_properties_t.

type ZeDeviceLuidExtVersion

type ZeDeviceLuidExtVersion uintptr

ZeDeviceLuidExtVersion (ze_device_luid_ext_version_t) Device Local Identifier (LUID) Extension Version(s)

const (
	ZE_DEVICE_LUID_EXT_VERSION_1_0          ZeDeviceLuidExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_LUID_EXT_VERSION_1_0 version 1.0
	ZE_DEVICE_LUID_EXT_VERSION_CURRENT      ZeDeviceLuidExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_LUID_EXT_VERSION_CURRENT latest known version
	ZE_DEVICE_LUID_EXT_VERSION_FORCE_UINT32 ZeDeviceLuidExtVersion = 0x7fffffff                     // ZE_DEVICE_LUID_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_DEVICE_LUID_EXT_VERSION_* ENUMs

)

type ZeDeviceMemAllocDesc

type ZeDeviceMemAllocDesc struct {
	Stype   ZeStructureType       // Stype [in] type of this structure
	Pnext   unsafe.Pointer        // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags   ZeDeviceMemAllocFlags // Flags [in] flags specifying additional allocation controls. must be 0 (default) or a valid combination of ::ze_device_mem_alloc_flag_t; default behavior may use implicit driver-based heuristics.
	Ordinal uint32                // Ordinal [in] ordinal of the device's local memory to allocate from. must be less than the count returned from ::zeDeviceGetMemoryProperties.

}

ZeDeviceMemAllocDesc (ze_device_mem_alloc_desc_t) Device memory allocation descriptor

type ZeDeviceMemAllocFlags

type ZeDeviceMemAllocFlags uint32

ZeDeviceMemAllocFlags (ze_device_mem_alloc_flags_t) Supported memory allocation flags

const (
	ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_CACHED            ZeDeviceMemAllocFlags = (1 << 0)   // ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_CACHED device should cache allocation
	ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_UNCACHED          ZeDeviceMemAllocFlags = (1 << 1)   // ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_UNCACHED device should not cache allocation (UC)
	ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT ZeDeviceMemAllocFlags = (1 << 2)   // ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT optimize shared allocation for first access on the device
	ZE_DEVICE_MEM_ALLOC_FLAG_FORCE_UINT32           ZeDeviceMemAllocFlags = 0x7fffffff // ZE_DEVICE_MEM_ALLOC_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_MEM_ALLOC_FLAG_* ENUMs

)

type ZeDeviceMemoryAccessProperties

type ZeDeviceMemoryAccessProperties struct {
	Stype                               ZeStructureType        // Stype [in] type of this structure
	Pnext                               unsafe.Pointer         // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Hostalloccapabilities               ZeMemoryAccessCapFlags // Hostalloccapabilities [out] host memory capabilities. returns 0 (unsupported) or a combination of ::ze_memory_access_cap_flag_t.
	Devicealloccapabilities             ZeMemoryAccessCapFlags // Devicealloccapabilities [out] device memory capabilities. returns 0 (unsupported) or a combination of ::ze_memory_access_cap_flag_t.
	Sharedsingledevicealloccapabilities ZeMemoryAccessCapFlags // Sharedsingledevicealloccapabilities [out] shared, single-device memory capabilities. returns 0 (unsupported) or a combination of ::ze_memory_access_cap_flag_t.
	Sharedcrossdevicealloccapabilities  ZeMemoryAccessCapFlags // Sharedcrossdevicealloccapabilities [out] shared, cross-device memory capabilities. returns 0 (unsupported) or a combination of ::ze_memory_access_cap_flag_t.
	Sharedsystemalloccapabilities       ZeMemoryAccessCapFlags // Sharedsystemalloccapabilities [out] shared, system memory capabilities. returns 0 (unsupported) or a combination of ::ze_memory_access_cap_flag_t.

}

ZeDeviceMemoryAccessProperties (ze_device_memory_access_properties_t) Device memory access properties queried using / ::zeDeviceGetMemoryAccessProperties

type ZeDeviceMemoryExtProperties

type ZeDeviceMemoryExtProperties struct {
	Stype          ZeStructureType       // Stype [in] type of this structure
	Pnext          unsafe.Pointer        // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type           ZeDeviceMemoryExtType // Type [out] The memory type
	Physicalsize   uint64                // Physicalsize [out] Physical memory size in bytes. A value of 0 indicates that this property is not known. However, a call to ::zesMemoryGetState() will correctly return the total size of usable memory.
	Readbandwidth  uint32                // Readbandwidth [out] Design bandwidth for reads
	Writebandwidth uint32                // Writebandwidth [out] Design bandwidth for writes
	Bandwidthunit  ZeBandwidthUnit       // Bandwidthunit [out] bandwidth unit

}

ZeDeviceMemoryExtProperties (ze_device_memory_ext_properties_t) Memory properties / / @details / - This structure may be returned from ::zeDeviceGetMemoryProperties via / the `pNext` member of ::ze_device_memory_properties_t

type ZeDeviceMemoryExtType

type ZeDeviceMemoryExtType uintptr

ZeDeviceMemoryExtType (ze_device_memory_ext_type_t) Memory module types

const (
	ZE_DEVICE_MEMORY_EXT_TYPE_HBM          ZeDeviceMemoryExtType = 0          // ZE_DEVICE_MEMORY_EXT_TYPE_HBM HBM memory
	ZE_DEVICE_MEMORY_EXT_TYPE_HBM2         ZeDeviceMemoryExtType = 1          // ZE_DEVICE_MEMORY_EXT_TYPE_HBM2 HBM2 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_DDR          ZeDeviceMemoryExtType = 2          // ZE_DEVICE_MEMORY_EXT_TYPE_DDR DDR memory
	ZE_DEVICE_MEMORY_EXT_TYPE_DDR2         ZeDeviceMemoryExtType = 3          // ZE_DEVICE_MEMORY_EXT_TYPE_DDR2 DDR2 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_DDR3         ZeDeviceMemoryExtType = 4          // ZE_DEVICE_MEMORY_EXT_TYPE_DDR3 DDR3 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_DDR4         ZeDeviceMemoryExtType = 5          // ZE_DEVICE_MEMORY_EXT_TYPE_DDR4 DDR4 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_DDR5         ZeDeviceMemoryExtType = 6          // ZE_DEVICE_MEMORY_EXT_TYPE_DDR5 DDR5 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR        ZeDeviceMemoryExtType = 7          // ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR LPDDR memory
	ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR3       ZeDeviceMemoryExtType = 8          // ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR3 LPDDR3 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR4       ZeDeviceMemoryExtType = 9          // ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR4 LPDDR4 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR5       ZeDeviceMemoryExtType = 10         // ZE_DEVICE_MEMORY_EXT_TYPE_LPDDR5 LPDDR5 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_SRAM         ZeDeviceMemoryExtType = 11         // ZE_DEVICE_MEMORY_EXT_TYPE_SRAM SRAM memory
	ZE_DEVICE_MEMORY_EXT_TYPE_L1           ZeDeviceMemoryExtType = 12         // ZE_DEVICE_MEMORY_EXT_TYPE_L1 L1 cache
	ZE_DEVICE_MEMORY_EXT_TYPE_L3           ZeDeviceMemoryExtType = 13         // ZE_DEVICE_MEMORY_EXT_TYPE_L3 L3 cache
	ZE_DEVICE_MEMORY_EXT_TYPE_GRF          ZeDeviceMemoryExtType = 14         // ZE_DEVICE_MEMORY_EXT_TYPE_GRF Execution unit register file
	ZE_DEVICE_MEMORY_EXT_TYPE_SLM          ZeDeviceMemoryExtType = 15         // ZE_DEVICE_MEMORY_EXT_TYPE_SLM Execution unit shared local memory
	ZE_DEVICE_MEMORY_EXT_TYPE_GDDR4        ZeDeviceMemoryExtType = 16         // ZE_DEVICE_MEMORY_EXT_TYPE_GDDR4 GDDR4 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_GDDR5        ZeDeviceMemoryExtType = 17         // ZE_DEVICE_MEMORY_EXT_TYPE_GDDR5 GDDR5 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_GDDR5X       ZeDeviceMemoryExtType = 18         // ZE_DEVICE_MEMORY_EXT_TYPE_GDDR5X GDDR5X memory
	ZE_DEVICE_MEMORY_EXT_TYPE_GDDR6        ZeDeviceMemoryExtType = 19         // ZE_DEVICE_MEMORY_EXT_TYPE_GDDR6 GDDR6 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_GDDR6X       ZeDeviceMemoryExtType = 20         // ZE_DEVICE_MEMORY_EXT_TYPE_GDDR6X GDDR6X memory
	ZE_DEVICE_MEMORY_EXT_TYPE_GDDR7        ZeDeviceMemoryExtType = 21         // ZE_DEVICE_MEMORY_EXT_TYPE_GDDR7 GDDR7 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_HBM2E        ZeDeviceMemoryExtType = 22         // ZE_DEVICE_MEMORY_EXT_TYPE_HBM2E HBM2E memory
	ZE_DEVICE_MEMORY_EXT_TYPE_HBM3         ZeDeviceMemoryExtType = 23         // ZE_DEVICE_MEMORY_EXT_TYPE_HBM3 HBM3 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_HBM3E        ZeDeviceMemoryExtType = 24         // ZE_DEVICE_MEMORY_EXT_TYPE_HBM3E HBM3E memory
	ZE_DEVICE_MEMORY_EXT_TYPE_HBM4         ZeDeviceMemoryExtType = 25         // ZE_DEVICE_MEMORY_EXT_TYPE_HBM4 HBM4 memory
	ZE_DEVICE_MEMORY_EXT_TYPE_FORCE_UINT32 ZeDeviceMemoryExtType = 0x7fffffff // ZE_DEVICE_MEMORY_EXT_TYPE_FORCE_UINT32 Value marking end of ZE_DEVICE_MEMORY_EXT_TYPE_* ENUMs

)

type ZeDeviceMemoryProperties

type ZeDeviceMemoryProperties struct {
	Stype        ZeStructureType             // Stype [in] type of this structure
	Pnext        unsafe.Pointer              // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags        ZeDeviceMemoryPropertyFlags // Flags [out] 0 (none) or a valid combination of ::ze_device_memory_property_flag_t
	Maxclockrate uint32                      // Maxclockrate [out] Maximum clock rate for device memory.
	Maxbuswidth  uint32                      // Maxbuswidth [out] Maximum bus width between device and memory.
	Totalsize    uint64                      // Totalsize [out] Total memory size in bytes that is available to the device.
	Name         [ZE_MAX_DEVICE_NAME]byte    // Name [out] Memory name

}

ZeDeviceMemoryProperties (ze_device_memory_properties_t) Device local memory properties queried using / ::zeDeviceGetMemoryProperties

type ZeDeviceMemoryPropertiesExtVersion

type ZeDeviceMemoryPropertiesExtVersion uintptr

ZeDeviceMemoryPropertiesExtVersion (ze_device_memory_properties_ext_version_t) Device Memory Properties Extension Version(s)

const (
	ZE_DEVICE_MEMORY_PROPERTIES_EXT_VERSION_1_0          ZeDeviceMemoryPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_MEMORY_PROPERTIES_EXT_VERSION_1_0 version 1.0
	ZE_DEVICE_MEMORY_PROPERTIES_EXT_VERSION_CURRENT      ZeDeviceMemoryPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_MEMORY_PROPERTIES_EXT_VERSION_CURRENT latest known version
	ZE_DEVICE_MEMORY_PROPERTIES_EXT_VERSION_FORCE_UINT32 ZeDeviceMemoryPropertiesExtVersion = 0x7fffffff                     // ZE_DEVICE_MEMORY_PROPERTIES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_DEVICE_MEMORY_PROPERTIES_EXT_VERSION_* ENUMs

)

type ZeDeviceMemoryPropertyFlags

type ZeDeviceMemoryPropertyFlags uint32

ZeDeviceMemoryPropertyFlags (ze_device_memory_property_flags_t) Supported device memory property flags

const (
	ZE_DEVICE_MEMORY_PROPERTY_FLAG_TBD          ZeDeviceMemoryPropertyFlags = (1 << 0)   // ZE_DEVICE_MEMORY_PROPERTY_FLAG_TBD reserved for future use
	ZE_DEVICE_MEMORY_PROPERTY_FLAG_FORCE_UINT32 ZeDeviceMemoryPropertyFlags = 0x7fffffff // ZE_DEVICE_MEMORY_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_MEMORY_PROPERTY_FLAG_* ENUMs

)

type ZeDeviceModuleFlags

type ZeDeviceModuleFlags uint32

ZeDeviceModuleFlags (ze_device_module_flags_t) Supported device module flags

const (
	ZE_DEVICE_MODULE_FLAG_FP16          ZeDeviceModuleFlags = (1 << 0)   // ZE_DEVICE_MODULE_FLAG_FP16 Device supports 16-bit floating-point operations
	ZE_DEVICE_MODULE_FLAG_FP64          ZeDeviceModuleFlags = (1 << 1)   // ZE_DEVICE_MODULE_FLAG_FP64 Device supports 64-bit floating-point operations
	ZE_DEVICE_MODULE_FLAG_INT64_ATOMICS ZeDeviceModuleFlags = (1 << 2)   // ZE_DEVICE_MODULE_FLAG_INT64_ATOMICS Device supports 64-bit atomic operations
	ZE_DEVICE_MODULE_FLAG_DP4A          ZeDeviceModuleFlags = (1 << 3)   // ZE_DEVICE_MODULE_FLAG_DP4A Device supports four component dot product and accumulate operations
	ZE_DEVICE_MODULE_FLAG_FORCE_UINT32  ZeDeviceModuleFlags = 0x7fffffff // ZE_DEVICE_MODULE_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_MODULE_FLAG_* ENUMs

)

type ZeDeviceModuleProperties

type ZeDeviceModuleProperties struct {
	Stype                 ZeStructureType     // Stype [in] type of this structure
	Pnext                 unsafe.Pointer      // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Spirvversionsupported uint32              // Spirvversionsupported [out] Maximum supported SPIR-V version. Returns zero if SPIR-V is not supported. Contains major and minor attributes, use ::ZE_MAJOR_VERSION and ::ZE_MINOR_VERSION.
	Flags                 ZeDeviceModuleFlags // Flags [out] 0 or a valid combination of ::ze_device_module_flag_t
	Fp16flags             ZeDeviceFpFlags     // Fp16flags [out] Capabilities for half-precision floating-point operations. returns 0 (if ::ZE_DEVICE_MODULE_FLAG_FP16 is not set) or a combination of ::ze_device_fp_flag_t.
	Fp32flags             ZeDeviceFpFlags     // Fp32flags [out] Capabilities for single-precision floating-point operations. returns a combination of ::ze_device_fp_flag_t.
	Fp64flags             ZeDeviceFpFlags     // Fp64flags [out] Capabilities for double-precision floating-point operations. returns 0 (if ::ZE_DEVICE_MODULE_FLAG_FP64 is not set) or a combination of ::ze_device_fp_flag_t.
	Maxargumentssize      uint32              // Maxargumentssize [out] Maximum kernel argument size that is supported.
	Printfbuffersize      uint32              // Printfbuffersize [out] Maximum size of internal buffer that holds output of printf calls from kernel.
	Nativekernelsupported ZeNativeKernelUuid  // Nativekernelsupported [out] Compatibility UUID of supported native kernel. UUID may or may not be the same across driver release, devices, or operating systems. Application is responsible for ensuring UUID matches before creating module using previously created native kernel.

}

ZeDeviceModuleProperties (ze_device_module_properties_t) Device module properties queried using ::zeDeviceGetModuleProperties

type ZeDeviceP2pBandwidthExpProperties

type ZeDeviceP2pBandwidthExpProperties struct {
	Stype             ZeStructureType // Stype [in] type of this structure
	Pnext             unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Logicalbandwidth  uint32          // Logicalbandwidth [out] total logical design bandwidth for all links connecting the two devices
	Physicalbandwidth uint32          // Physicalbandwidth [out] total physical design bandwidth for all links connecting the two devices
	Bandwidthunit     ZeBandwidthUnit // Bandwidthunit [out] bandwidth unit
	Logicallatency    uint32          // Logicallatency [out] average logical design latency for all links connecting the two devices
	Physicallatency   uint32          // Physicallatency [out] average physical design latency for all links connecting the two devices
	Latencyunit       ZeLatencyUnit   // Latencyunit [out] latency unit

}

ZeDeviceP2pBandwidthExpProperties (ze_device_p2p_bandwidth_exp_properties_t) P2P Bandwidth Properties / / @details / - This structure may be passed to ::zeDeviceGetP2PProperties by having / the pNext member of ::ze_device_p2p_properties_t point at this struct.

type ZeDeviceP2pProperties

type ZeDeviceP2pProperties struct {
	Stype ZeStructureType          // Stype [in] type of this structure
	Pnext unsafe.Pointer           // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeDeviceP2pPropertyFlags // Flags [out] 0 (none) or a valid combination of ::ze_device_p2p_property_flag_t

}

ZeDeviceP2pProperties (ze_device_p2p_properties_t) Device peer-to-peer properties queried using / ::zeDeviceGetP2PProperties

type ZeDeviceP2pPropertyFlags

type ZeDeviceP2pPropertyFlags uint32

ZeDeviceP2pPropertyFlags (ze_device_p2p_property_flags_t) Supported device peer-to-peer property flags

const (
	ZE_DEVICE_P2P_PROPERTY_FLAG_ACCESS       ZeDeviceP2pPropertyFlags = (1 << 0)   // ZE_DEVICE_P2P_PROPERTY_FLAG_ACCESS Device supports access between peer devices.
	ZE_DEVICE_P2P_PROPERTY_FLAG_ATOMICS      ZeDeviceP2pPropertyFlags = (1 << 1)   // ZE_DEVICE_P2P_PROPERTY_FLAG_ATOMICS Device supports atomics between peer devices.
	ZE_DEVICE_P2P_PROPERTY_FLAG_FORCE_UINT32 ZeDeviceP2pPropertyFlags = 0x7fffffff // ZE_DEVICE_P2P_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_P2P_PROPERTY_FLAG_* ENUMs

)

type ZeDevicePitchedAllocExpProperties

type ZeDevicePitchedAllocExpProperties struct {
	Stype                ZeStructureType // Stype [in] type of this structure
	Pnext                unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Maximagelinearwidth  uintptr         // Maximagelinearwidth [out] Maximum image linear width.
	Maximagelinearheight uintptr         // Maximagelinearheight [out] Maximum image linear height.

}

ZeDevicePitchedAllocExpProperties (ze_device_pitched_alloc_exp_properties_t) Device specific properties for pitched allocations / / @details / - This structure may be passed to ::zeDeviceGetImageProperties via the / pNext member of ::ze_device_image_properties_t.

type ZeDeviceProperties

type ZeDeviceProperties struct {
	Stype                    ZeStructureType          // Stype [in] type of this structure
	Pnext                    unsafe.Pointer           // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type                     ZeDeviceType             // Type [out] generic device type
	Vendorid                 uint32                   // Vendorid [out] vendor id from PCI configuration
	Deviceid                 uint32                   // Deviceid [out] device id from PCI configuration. Note, the device id uses little-endian format.
	Flags                    ZeDevicePropertyFlags    // Flags [out] 0 (none) or a valid combination of ::ze_device_property_flag_t
	Subdeviceid              uint32                   // Subdeviceid [out] sub-device id. Only valid if ::ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE is set.
	Coreclockrate            uint32                   // Coreclockrate [out] Clock rate for device core.
	Maxmemallocsize          uint64                   // Maxmemallocsize [out] Maximum memory allocation size.
	Maxhardwarecontexts      uint32                   // Maxhardwarecontexts [out] Maximum number of logical hardware contexts.
	Maxcommandqueuepriority  uint32                   // Maxcommandqueuepriority [out] Maximum priority for command queues. Higher value is higher priority.
	Numthreadspereu          uint32                   // Numthreadspereu [out] Maximum number of threads per EU.
	Physicaleusimdwidth      uint32                   // Physicaleusimdwidth [out] The physical EU simd width.
	Numeuspersubslice        uint32                   // Numeuspersubslice [out] Maximum number of EUs per sub-slice.
	Numsubslicesperslice     uint32                   // Numsubslicesperslice [out] Maximum number of sub-slices per slice.
	Numslices                uint32                   // Numslices [out] Maximum number of slices.
	Timerresolution          uint64                   // Timerresolution [out] Returns the resolution of device timer used for profiling, timestamps, etc. When stype==::ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES the units are in nanoseconds. When stype==::ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES_1_2 units are in cycles/sec
	Timestampvalidbits       uint32                   // Timestampvalidbits [out] Returns the number of valid bits in the timestamp value.
	Kerneltimestampvalidbits uint32                   // Kerneltimestampvalidbits [out] Returns the number of valid bits in the kernel timestamp values
	Uuid                     ZeDeviceUuid             // Uuid [out] universal unique identifier. Note: Subdevices will have their own uuid.
	Name                     [ZE_MAX_DEVICE_NAME]byte // Name [out] Device name

}

ZeDeviceProperties (ze_device_properties_t) Device properties queried using ::zeDeviceGetProperties

type ZeDevicePropertyFlags

type ZeDevicePropertyFlags uint32

ZeDevicePropertyFlags (ze_device_property_flags_t) Supported device property flags

const (
	ZE_DEVICE_PROPERTY_FLAG_INTEGRATED     ZeDevicePropertyFlags = (1 << 0)   // ZE_DEVICE_PROPERTY_FLAG_INTEGRATED Device is integrated with the Host.
	ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE      ZeDevicePropertyFlags = (1 << 1)   // ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE Device handle used for query represents a sub-device.
	ZE_DEVICE_PROPERTY_FLAG_ECC            ZeDevicePropertyFlags = (1 << 2)   // ZE_DEVICE_PROPERTY_FLAG_ECC Device supports error correction memory access.
	ZE_DEVICE_PROPERTY_FLAG_ONDEMANDPAGING ZeDevicePropertyFlags = (1 << 3)   // ZE_DEVICE_PROPERTY_FLAG_ONDEMANDPAGING Device supports on-demand page-faulting.
	ZE_DEVICE_PROPERTY_FLAG_FORCE_UINT32   ZeDevicePropertyFlags = 0x7fffffff // ZE_DEVICE_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_PROPERTY_FLAG_* ENUMs

)

type ZeDeviceRaytracingExtFlags

type ZeDeviceRaytracingExtFlags uint32

ZeDeviceRaytracingExtFlags (ze_device_raytracing_ext_flags_t) Supported raytracing capability flags

const (
	ZE_DEVICE_RAYTRACING_EXT_FLAG_RAYQUERY     ZeDeviceRaytracingExtFlags = (1 << 0)   // ZE_DEVICE_RAYTRACING_EXT_FLAG_RAYQUERY Supports rayquery
	ZE_DEVICE_RAYTRACING_EXT_FLAG_FORCE_UINT32 ZeDeviceRaytracingExtFlags = 0x7fffffff // ZE_DEVICE_RAYTRACING_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_DEVICE_RAYTRACING_EXT_FLAG_* ENUMs

)

type ZeDeviceRaytracingExtProperties

type ZeDeviceRaytracingExtProperties struct {
	Stype        ZeStructureType            // Stype [in] type of this structure
	Pnext        unsafe.Pointer             // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags        ZeDeviceRaytracingExtFlags // Flags [out] 0 or a valid combination of ::ze_device_raytracing_ext_flags_t
	Maxbvhlevels uint32                     // Maxbvhlevels [out] Maximum number of BVH levels supported

}

ZeDeviceRaytracingExtProperties (ze_device_raytracing_ext_properties_t) Raytracing properties queried using ::zeDeviceGetModuleProperties / / @details / - This structure may be returned from ::zeDeviceGetModuleProperties, via / the `pNext` member of ::ze_device_module_properties_t.

type ZeDeviceThread

type ZeDeviceThread struct {
	Slice    uint32 // Slice [in,out] the slice number. Must be `UINT32_MAX` (all) or less than the `numSlices` member of ::ze_device_properties_t.
	Subslice uint32 // Subslice [in,out] the sub-slice number within its slice. Must be `UINT32_MAX` (all) or less than the `numSubslicesPerSlice` member of ::ze_device_properties_t.
	Eu       uint32 // Eu [in,out] the EU number within its sub-slice. Must be `UINT32_MAX` (all) or less than the `numEUsPerSubslice` member of ::ze_device_properties_t.
	Thread   uint32 // Thread [in,out] the thread number within its EU. Must be `UINT32_MAX` (all) or less than the `numThreadsPerEU` member of ::ze_device_properties_t.

}

ZeDeviceThread (ze_device_thread_t) Device thread identifier.

type ZeDeviceType

type ZeDeviceType uintptr

ZeDeviceType (ze_device_type_t) Supported device types

const (
	ZE_DEVICE_TYPE_GPU          ZeDeviceType = 1          // ZE_DEVICE_TYPE_GPU Graphics Processing Unit
	ZE_DEVICE_TYPE_CPU          ZeDeviceType = 2          // ZE_DEVICE_TYPE_CPU Central Processing Unit
	ZE_DEVICE_TYPE_FPGA         ZeDeviceType = 3          // ZE_DEVICE_TYPE_FPGA Field Programmable Gate Array
	ZE_DEVICE_TYPE_MCA          ZeDeviceType = 4          // ZE_DEVICE_TYPE_MCA Memory Copy Accelerator
	ZE_DEVICE_TYPE_VPU          ZeDeviceType = 5          // ZE_DEVICE_TYPE_VPU Vision Processing Unit
	ZE_DEVICE_TYPE_FORCE_UINT32 ZeDeviceType = 0x7fffffff // ZE_DEVICE_TYPE_FORCE_UINT32 Value marking end of ZE_DEVICE_TYPE_* ENUMs

)

type ZeDeviceUsablememSizeExtProperties

type ZeDeviceUsablememSizeExtProperties struct {
	Stype             ZeStructureType // Stype [in] type of this structure
	Pnext             unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Currusablememsize uint64          // Currusablememsize [out] Returns the available usable memory at the device level. This is typically less than or equal to the available physical memory on the device. It important to note that usable memory size reported is transient in nature and cannot be used to reliably guarentee success of future allocations. The usable memory includes all the memory that the clients can allocate for their use and by L0 Core for its internal allocations.

}

ZeDeviceUsablememSizeExtProperties (ze_device_usablemem_size_ext_properties_t) Memory access property to discover current status of usable memory / / @details / - This structure may be returned from ::zeDeviceGetProperties via the / `pNext` member of ::ze_device_properties_t

type ZeDeviceUsablememSizePropertiesExtVersion

type ZeDeviceUsablememSizePropertiesExtVersion uintptr

ZeDeviceUsablememSizePropertiesExtVersion (ze_device_usablemem_size_properties_ext_version_t) Device Usable Mem Size Extension Version(s)

const (
	ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_VERSION_1_0          ZeDeviceUsablememSizePropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_VERSION_1_0 version 1.0
	ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_VERSION_CURRENT      ZeDeviceUsablememSizePropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_VERSION_CURRENT latest known version
	ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_VERSION_FORCE_UINT32 ZeDeviceUsablememSizePropertiesExtVersion = 0x7fffffff                     // ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_DEVICE_USABLEMEM_SIZE_PROPERTIES_EXT_VERSION_* ENUMs

)

type ZeDeviceUuid

type ZeDeviceUuid struct {
	Id [ZE_MAX_DEVICE_UUID_SIZE]uint8 // Id [out] opaque data representing a device UUID

}

ZeDeviceUuid (ze_device_uuid_t) Device universal unique id (UUID)

type ZeDeviceVectorSizesExtVersion

type ZeDeviceVectorSizesExtVersion uintptr

ZeDeviceVectorSizesExtVersion (ze_device_vector_sizes_ext_version_t) Device Vector Sizes Query Extension Version(s)

const (
	ZE_DEVICE_VECTOR_SIZES_EXT_VERSION_1_0          ZeDeviceVectorSizesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_VECTOR_SIZES_EXT_VERSION_1_0 version 1.0
	ZE_DEVICE_VECTOR_SIZES_EXT_VERSION_CURRENT      ZeDeviceVectorSizesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_VECTOR_SIZES_EXT_VERSION_CURRENT latest known version
	ZE_DEVICE_VECTOR_SIZES_EXT_VERSION_FORCE_UINT32 ZeDeviceVectorSizesExtVersion = 0x7fffffff                     // ZE_DEVICE_VECTOR_SIZES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_DEVICE_VECTOR_SIZES_EXT_VERSION_* ENUMs

)

type ZeDeviceVectorWidthPropertiesExt

type ZeDeviceVectorWidthPropertiesExt struct {
	Stype                      ZeStructureType // Stype [in] type of this structure
	Pnext                      unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	VectorWidthSize            uint32          // VectorWidthSize [out] The associated vector width size supported by the device.
	PreferredVectorWidthChar   uint32          // PreferredVectorWidthChar [out] The preferred vector width size for char type supported by the device.
	PreferredVectorWidthShort  uint32          // PreferredVectorWidthShort [out] The preferred vector width size for short type supported by the device.
	PreferredVectorWidthInt    uint32          // PreferredVectorWidthInt [out] The preferred vector width size for int type supported by the device.
	PreferredVectorWidthLong   uint32          // PreferredVectorWidthLong [out] The preferred vector width size for long type supported by the device.
	PreferredVectorWidthFloat  uint32          // PreferredVectorWidthFloat [out] The preferred vector width size for float type supported by the device.
	PreferredVectorWidthDouble uint32          // PreferredVectorWidthDouble [out] The preferred vector width size for double type supported by the device.
	PreferredVectorWidthHalf   uint32          // PreferredVectorWidthHalf [out] The preferred vector width size for half type supported by the device.
	NativeVectorWidthChar      uint32          // NativeVectorWidthChar [out] The native vector width size for char type supported by the device.
	NativeVectorWidthShort     uint32          // NativeVectorWidthShort [out] The native vector width size for short type supported by the device.
	NativeVectorWidthInt       uint32          // NativeVectorWidthInt [out] The native vector width size for int type supported by the device.
	NativeVectorWidthLong      uint32          // NativeVectorWidthLong [out] The native vector width size for long type supported by the device.
	NativeVectorWidthFloat     uint32          // NativeVectorWidthFloat [out] The native vector width size for float type supported by the device.
	NativeVectorWidthDouble    uint32          // NativeVectorWidthDouble [out] The native vector width size for double type supported by the device.
	NativeVectorWidthHalf      uint32          // NativeVectorWidthHalf [out] The native vector width size for half type supported by the device.

}

ZeDeviceVectorWidthPropertiesExt (ze_device_vector_width_properties_ext_t) Device Vector Width Properties queried using / $DeviceGetVectorWidthPropertiesExt

type ZeDriverCallbacks

type ZeDriverCallbacks struct {
	Pfngetcb                    ZePfndrivergetcb
	Pfngetapiversioncb          ZePfndrivergetapiversioncb
	Pfngetpropertiescb          ZePfndrivergetpropertiescb
	Pfngetipcpropertiescb       ZePfndrivergetipcpropertiescb
	Pfngetextensionpropertiescb ZePfndrivergetextensionpropertiescb
}

ZeDriverCallbacks (ze_driver_callbacks_t) Table of Driver callback functions pointers

type ZeDriverDdiHandleExtFlags

type ZeDriverDdiHandleExtFlags uint32

ZeDriverDdiHandleExtFlags (ze_driver_ddi_handle_ext_flags_t) Driver Direct Device Interface (DDI) Handle Extension Flags

const (
	ZE_DRIVER_DDI_HANDLE_EXT_FLAG_DDI_HANDLE_EXT_SUPPORTED ZeDriverDdiHandleExtFlags = (1 << 0)   // ZE_DRIVER_DDI_HANDLE_EXT_FLAG_DDI_HANDLE_EXT_SUPPORTED Driver Supports DDI Handles Extension
	ZE_DRIVER_DDI_HANDLE_EXT_FLAG_FORCE_UINT32             ZeDriverDdiHandleExtFlags = 0x7fffffff // ZE_DRIVER_DDI_HANDLE_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_DRIVER_DDI_HANDLE_EXT_FLAG_* ENUMs

)

type ZeDriverDdiHandlesExtProperties

type ZeDriverDdiHandlesExtProperties struct {
	Stype ZeStructureType           // Stype [in] type of this structure
	Pnext unsafe.Pointer            // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeDriverDdiHandleExtFlags // Flags [out] 0 (none) or a valid combination of ::ze_driver_ddi_handle_ext_flags_t

}

ZeDriverDdiHandlesExtProperties (ze_driver_ddi_handles_ext_properties_t) Driver DDI Handles properties queried using ::zeDriverGetProperties / / @details / - This structure may be returned from ::zeDriverGetProperties, via the / `pNext` member of ::ze_driver_properties_t.

type ZeDriverDdiHandlesExtVersion

type ZeDriverDdiHandlesExtVersion uintptr

ZeDriverDdiHandlesExtVersion (ze_driver_ddi_handles_ext_version_t) Driver Direct Device Interface (DDI) Handles Extension Version(s)

const (
	ZE_DRIVER_DDI_HANDLES_EXT_VERSION_1_0          ZeDriverDdiHandlesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_DRIVER_DDI_HANDLES_EXT_VERSION_1_0 version 1.0
	ZE_DRIVER_DDI_HANDLES_EXT_VERSION_1_1          ZeDriverDdiHandlesExtVersion = ((1 << 16) | (1 & 0x0000ffff)) // ZE_DRIVER_DDI_HANDLES_EXT_VERSION_1_1 version 1.1
	ZE_DRIVER_DDI_HANDLES_EXT_VERSION_CURRENT      ZeDriverDdiHandlesExtVersion = ((1 << 16) | (1 & 0x0000ffff)) // ZE_DRIVER_DDI_HANDLES_EXT_VERSION_CURRENT latest known version
	ZE_DRIVER_DDI_HANDLES_EXT_VERSION_FORCE_UINT32 ZeDriverDdiHandlesExtVersion = 0x7fffffff                     // ZE_DRIVER_DDI_HANDLES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_DRIVER_DDI_HANDLES_EXT_VERSION_* ENUMs

)

type ZeDriverExtensionProperties

type ZeDriverExtensionProperties struct {
	Name    [ZE_MAX_EXTENSION_NAME]byte // Name [out] extension name
	Version uint32                      // Version [out] extension version using ::ZE_MAKE_VERSION

}

ZeDriverExtensionProperties (ze_driver_extension_properties_t) Extension properties queried using ::zeDriverGetExtensionProperties

type ZeDriverGetApiVersionParams

type ZeDriverGetApiVersionParams struct {
	Phdriver *ZeDriverHandle
	Pversion **ZeApiVersion
}

ZeDriverGetApiVersionParams (ze_driver_get_api_version_params_t) Callback function parameters for zeDriverGetApiVersion / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDriverGetExtensionPropertiesParams

type ZeDriverGetExtensionPropertiesParams struct {
	Phdriver              *ZeDriverHandle
	Ppcount               **uint32
	Ppextensionproperties **ZeDriverExtensionProperties
}

ZeDriverGetExtensionPropertiesParams (ze_driver_get_extension_properties_params_t) Callback function parameters for zeDriverGetExtensionProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDriverGetIpcPropertiesParams

type ZeDriverGetIpcPropertiesParams struct {
	Phdriver        *ZeDriverHandle
	Ppipcproperties **ZeDriverIpcProperties
}

ZeDriverGetIpcPropertiesParams (ze_driver_get_ipc_properties_params_t) Callback function parameters for zeDriverGetIpcProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDriverGetParams

type ZeDriverGetParams struct {
	Ppcount    **uint32
	Pphdrivers **ZeDriverHandle
}

ZeDriverGetParams (ze_driver_get_params_t) Callback function parameters for zeDriverGet / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDriverGetPropertiesParams

type ZeDriverGetPropertiesParams struct {
	Phdriver           *ZeDriverHandle
	Ppdriverproperties **ZeDriverProperties
}

ZeDriverGetPropertiesParams (ze_driver_get_properties_params_t) Callback function parameters for zeDriverGetProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeDriverHandle

type ZeDriverHandle uintptr

ZeDriverHandle (ze_driver_handle_t) Handle of a driver instance

type ZeDriverIpcProperties

type ZeDriverIpcProperties struct {
	Stype ZeStructureType    // Stype [in] type of this structure
	Pnext unsafe.Pointer     // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeIpcPropertyFlags // Flags [out] 0 (none) or a valid combination of ::ze_ipc_property_flag_t

}

ZeDriverIpcProperties (ze_driver_ipc_properties_t) IPC properties queried using ::zeDriverGetIpcProperties

type ZeDriverMemoryFreeExtProperties

type ZeDriverMemoryFreeExtProperties struct {
	Stype        ZeStructureType                  // Stype [in] type of this structure
	Pnext        unsafe.Pointer                   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Freepolicies ZeDriverMemoryFreePolicyExtFlags // Freepolicies [out] Supported memory free policies. must be 0 or a combination of ::ze_driver_memory_free_policy_ext_flag_t.

}

ZeDriverMemoryFreeExtProperties (ze_driver_memory_free_ext_properties_t) Driver memory free properties queried using ::zeDriverGetProperties / / @details / - All drivers must support an immediate free policy, which is the / default free policy. / - This structure may be returned from ::zeDriverGetProperties, via the / `pNext` member of ::ze_driver_properties_t.

type ZeDriverMemoryFreePolicyExtFlags

type ZeDriverMemoryFreePolicyExtFlags uint32

ZeDriverMemoryFreePolicyExtFlags (ze_driver_memory_free_policy_ext_flags_t) Supported memory free policy capability flags

const (
	ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_BLOCKING_FREE ZeDriverMemoryFreePolicyExtFlags = (1 << 0) // ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_BLOCKING_FREE Blocks until all commands using the memory are complete before

	ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_DEFER_FREE ZeDriverMemoryFreePolicyExtFlags = (1 << 1) // ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_DEFER_FREE Immediately schedules the memory to be freed and returns without

	ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_FORCE_UINT32 ZeDriverMemoryFreePolicyExtFlags = 0x7fffffff // ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_* ENUMs

)

type ZeDriverProperties

type ZeDriverProperties struct {
	Stype         ZeStructureType // Stype [in] type of this structure
	Pnext         unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Uuid          ZeDriverUuid    // Uuid [out] universal unique identifier.
	Driverversion uint32          // Driverversion [out] driver version The driver version is a non-zero, monotonically increasing value where higher values always indicate a more recent version.

}

ZeDriverProperties (ze_driver_properties_t) Driver properties queried using ::zeDriverGetProperties

type ZeDriverUuid

type ZeDriverUuid struct {
	Id [ZE_MAX_DRIVER_UUID_SIZE]uint8 // Id [out] opaque data representing a driver UUID

}

ZeDriverUuid (ze_driver_uuid_t) Driver universal unique id (UUID)

type ZeEuCountExt

type ZeEuCountExt struct {
	Stype       ZeStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Numtotaleus uint32          // Numtotaleus [out] Total number of EUs available

}

ZeEuCountExt (ze_eu_count_ext_t) EU count queried using ::zeDeviceGetProperties / / @details / - This structure may be returned from ::zeDeviceGetProperties via the / `pNext` member of ::ze_device_properties_t. / - Used for determining the total number of EUs available on device.

type ZeEuCountExtVersion

type ZeEuCountExtVersion uintptr

ZeEuCountExtVersion (ze_eu_count_ext_version_t) EU Count Extension Version(s)

const (
	ZE_EU_COUNT_EXT_VERSION_1_0          ZeEuCountExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EU_COUNT_EXT_VERSION_1_0 version 1.0
	ZE_EU_COUNT_EXT_VERSION_CURRENT      ZeEuCountExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EU_COUNT_EXT_VERSION_CURRENT latest known version
	ZE_EU_COUNT_EXT_VERSION_FORCE_UINT32 ZeEuCountExtVersion = 0x7fffffff                     // ZE_EU_COUNT_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_EU_COUNT_EXT_VERSION_* ENUMs

)

type ZeEventCallbacks

type ZeEventCallbacks struct {
	Pfncreatecb               ZePfneventcreatecb
	Pfndestroycb              ZePfneventdestroycb
	Pfnhostsignalcb           ZePfneventhostsignalcb
	Pfnhostsynchronizecb      ZePfneventhostsynchronizecb
	Pfnquerystatuscb          ZePfneventquerystatuscb
	Pfnhostresetcb            ZePfneventhostresetcb
	Pfnquerykerneltimestampcb ZePfneventquerykerneltimestampcb
}

ZeEventCallbacks (ze_event_callbacks_t) Table of Event callback functions pointers

type ZeEventCounterBasedDesc

type ZeEventCounterBasedDesc struct {
	Stype  ZeStructureType          // Stype [in] type of this structure
	Pnext  unsafe.Pointer           // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags  ZeEventCounterBasedFlags // Flags [in] counter based event flags. Must be 0 (default) or a valid combination of ::ze_event_counter_based_flag_t
	Signal ZeEventScopeFlags        // Signal [in] defines the scope of relevant cache hierarchies to flush on a signal action before the event is triggered. must be 0 (default) or a valid combination of ::ze_event_scope_flag_t; default behavior is synchronization within the command list only, no additional cache hierarchies are flushed.
	Wait   ZeEventScopeFlags        // Wait [in] defines the scope of relevant cache hierarchies to invalidate on a wait action after the event is complete. must be 0 (default) or a valid combination of ::ze_event_scope_flag_t; default behavior is synchronization within the command list only, no additional cache hierarchies are invalidated.

}

ZeEventCounterBasedDesc (ze_event_counter_based_desc_t) Counter Based Event descriptor

type ZeEventCounterBasedExternalAggregateStorageDesc

type ZeEventCounterBasedExternalAggregateStorageDesc struct {
	Stype           ZeStructureType // Stype [in] type of this structure
	Pnext           unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Deviceaddress   *uint64         // Deviceaddress [in] device address that would be updated with atomic_add upon signaling of this event, must be device USM memory
	Incrementvalue  uint64          // Incrementvalue [in] value which would by atomically added upon each completion
	Completionvalue uint64          // Completionvalue [in] final completion value, when value under deviceAddress is equal or greater then this value then event is considered as completed

}

ZeEventCounterBasedExternalAggregateStorageDesc (ze_event_counter_based_external_aggregate_storage_desc_t) Counter Based Event external aggregate storage. Passed as pNext to / ::ze_event_counter_based_desc_t

type ZeEventCounterBasedExternalSyncAllocationDesc

type ZeEventCounterBasedExternalSyncAllocationDesc struct {
	Stype           ZeStructureType // Stype [in] type of this structure
	Pnext           unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Deviceaddress   *uint64         // Deviceaddress [in] device address for external synchronization allocation
	Hostaddress     *uint64         // Hostaddress [in] host address for external synchronization allocation
	Completionvalue uint64          // Completionvalue [in] completion value for external synchronization allocation

}

ZeEventCounterBasedExternalSyncAllocationDesc (ze_event_counter_based_external_sync_allocation_desc_t) Counter Based Event external sync allocation descriptor. Passed as / pNext to ::ze_event_counter_based_desc_t

type ZeEventCounterBasedFlags

type ZeEventCounterBasedFlags uint32

ZeEventCounterBasedFlags (ze_event_counter_based_flags_t) Supported flags for defining counter based event

const (
	ZE_EVENT_COUNTER_BASED_FLAG_IMMEDIATE        ZeEventCounterBasedFlags = (1 << 0) // ZE_EVENT_COUNTER_BASED_FLAG_IMMEDIATE Counter-based event is used for immediate command lists (default)
	ZE_EVENT_COUNTER_BASED_FLAG_NON_IMMEDIATE    ZeEventCounterBasedFlags = (1 << 1) // ZE_EVENT_COUNTER_BASED_FLAG_NON_IMMEDIATE Counter-based event is used for non-immediate command lists
	ZE_EVENT_COUNTER_BASED_FLAG_HOST_VISIBLE     ZeEventCounterBasedFlags = (1 << 2) // ZE_EVENT_COUNTER_BASED_FLAG_HOST_VISIBLE Signals and waits are also visible to host
	ZE_EVENT_COUNTER_BASED_FLAG_IPC              ZeEventCounterBasedFlags = (1 << 3) // ZE_EVENT_COUNTER_BASED_FLAG_IPC Event can be shared across processes for waiting
	ZE_EVENT_COUNTER_BASED_FLAG_DEVICE_TIMESTAMP ZeEventCounterBasedFlags = (1 << 4) // ZE_EVENT_COUNTER_BASED_FLAG_DEVICE_TIMESTAMP Event contains timestamps populated in the device time domain.

	ZE_EVENT_COUNTER_BASED_FLAG_HOST_TIMESTAMP ZeEventCounterBasedFlags = (1 << 5) // ZE_EVENT_COUNTER_BASED_FLAG_HOST_TIMESTAMP Indicates that event will contain timestamps converted to the host

	ZE_EVENT_COUNTER_BASED_FLAG_FORCE_UINT32 ZeEventCounterBasedFlags = 0x7fffffff // ZE_EVENT_COUNTER_BASED_FLAG_FORCE_UINT32 Value marking end of ZE_EVENT_COUNTER_BASED_FLAG_* ENUMs

)

type ZeEventCreateParams

type ZeEventCreateParams struct {
	Pheventpool *ZeEventPoolHandle
	Pdesc       **ZeEventDesc
	Pphevent    **ZeEventHandle
}

ZeEventCreateParams (ze_event_create_params_t) Callback function parameters for zeEventCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventDesc

type ZeEventDesc struct {
	Stype  ZeStructureType   // Stype [in] type of this structure
	Pnext  unsafe.Pointer    // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Index  uint32            // Index [in] index of the event within the pool; must be less than the count specified during pool creation
	Signal ZeEventScopeFlags // Signal [in] defines the scope of relevant cache hierarchies to flush on a signal action before the event is triggered. must be 0 (default) or a valid combination of ::ze_event_scope_flag_t; default behavior is synchronization within the command list only, no additional cache hierarchies are flushed.
	Wait   ZeEventScopeFlags // Wait [in] defines the scope of relevant cache hierarchies to invalidate on a wait action after the event is complete. must be 0 (default) or a valid combination of ::ze_event_scope_flag_t; default behavior is synchronization within the command list only, no additional cache hierarchies are invalidated.

}

ZeEventDesc (ze_event_desc_t) Event descriptor

type ZeEventDestroyParams

type ZeEventDestroyParams struct {
	Phevent *ZeEventHandle
}

ZeEventDestroyParams (ze_event_destroy_params_t) Callback function parameters for zeEventDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventHandle

type ZeEventHandle uintptr

ZeEventHandle (ze_event_handle_t) Handle of driver's event object

type ZeEventHostResetParams

type ZeEventHostResetParams struct {
	Phevent *ZeEventHandle
}

ZeEventHostResetParams (ze_event_host_reset_params_t) Callback function parameters for zeEventHostReset / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventHostSignalParams

type ZeEventHostSignalParams struct {
	Phevent *ZeEventHandle
}

ZeEventHostSignalParams (ze_event_host_signal_params_t) Callback function parameters for zeEventHostSignal / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventHostSynchronizeParams

type ZeEventHostSynchronizeParams struct {
	Phevent  *ZeEventHandle
	Ptimeout *uint64
}

ZeEventHostSynchronizeParams (ze_event_host_synchronize_params_t) Callback function parameters for zeEventHostSynchronize / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventPoolCallbacks

type ZeEventPoolCallbacks struct {
	Pfncreatecb         ZePfneventpoolcreatecb
	Pfndestroycb        ZePfneventpooldestroycb
	Pfngetipchandlecb   ZePfneventpoolgetipchandlecb
	Pfnopenipchandlecb  ZePfneventpoolopenipchandlecb
	Pfncloseipchandlecb ZePfneventpoolcloseipchandlecb
}

ZeEventPoolCallbacks (ze_event_pool_callbacks_t) Table of EventPool callback functions pointers

type ZeEventPoolCloseIpcHandleParams

type ZeEventPoolCloseIpcHandleParams struct {
	Pheventpool *ZeEventPoolHandle
}

ZeEventPoolCloseIpcHandleParams (ze_event_pool_close_ipc_handle_params_t) Callback function parameters for zeEventPoolCloseIpcHandle / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventPoolCounterBasedExpDesc

type ZeEventPoolCounterBasedExpDesc struct {
	Stype ZeStructureType                 // Stype [in] type of this structure
	Pnext unsafe.Pointer                  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeEventPoolCounterBasedExpFlags // Flags [in] mode flags. must be 0 (default) or a valid value of ::ze_event_pool_counter_based_exp_flag_t default behavior is counter-based event pool is only used for immediate command lists.

}

ZeEventPoolCounterBasedExpDesc (ze_event_pool_counter_based_exp_desc_t) Event pool descriptor for counter-based events. This structure may be / passed to ::zeEventPoolCreate as pNext member of / ::ze_event_pool_desc_t. @deprecated since 1.15

type ZeEventPoolCounterBasedExpFlags

type ZeEventPoolCounterBasedExpFlags uint32

ZeEventPoolCounterBasedExpFlags (ze_event_pool_counter_based_exp_flags_t) Supported event flags for defining counter-based event pools.

const (
	ZE_EVENT_POOL_COUNTER_BASED_EXP_FLAG_IMMEDIATE     ZeEventPoolCounterBasedExpFlags = (1 << 0)   // ZE_EVENT_POOL_COUNTER_BASED_EXP_FLAG_IMMEDIATE Counter-based event pool is used for immediate command lists (default)
	ZE_EVENT_POOL_COUNTER_BASED_EXP_FLAG_NON_IMMEDIATE ZeEventPoolCounterBasedExpFlags = (1 << 1)   // ZE_EVENT_POOL_COUNTER_BASED_EXP_FLAG_NON_IMMEDIATE Counter-based event pool is for non-immediate command lists
	ZE_EVENT_POOL_COUNTER_BASED_EXP_FLAG_FORCE_UINT32  ZeEventPoolCounterBasedExpFlags = 0x7fffffff // ZE_EVENT_POOL_COUNTER_BASED_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_EVENT_POOL_COUNTER_BASED_EXP_FLAG_* ENUMs

)

type ZeEventPoolCounterBasedExpVersion

type ZeEventPoolCounterBasedExpVersion uintptr

ZeEventPoolCounterBasedExpVersion (ze_event_pool_counter_based_exp_version_t) Counter-based Event Pools Extension Version(s)

const (
	ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_1_0          ZeEventPoolCounterBasedExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_1_0 version 1.0
	ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_CURRENT      ZeEventPoolCounterBasedExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_CURRENT latest known version
	ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_FORCE_UINT32 ZeEventPoolCounterBasedExpVersion = 0x7fffffff                     // ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_EVENT_POOL_COUNTER_BASED_EXP_VERSION_* ENUMs

)

type ZeEventPoolCreateParams

type ZeEventPoolCreateParams struct {
	Phcontext    *ZeContextHandle
	Pdesc        **ZeEventPoolDesc
	Pnumdevices  *uint32
	Pphdevices   **ZeDeviceHandle
	Ppheventpool **ZeEventPoolHandle
}

ZeEventPoolCreateParams (ze_event_pool_create_params_t) Callback function parameters for zeEventPoolCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventPoolDesc

type ZeEventPoolDesc struct {
	Stype ZeStructureType  // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeEventPoolFlags // Flags [in] creation flags. must be 0 (default) or a valid combination of ::ze_event_pool_flag_t; default behavior is signals and waits are visible to the entire device and peer devices.
	Count uint32           // Count [in] number of events within the pool; must be greater than 0

}

ZeEventPoolDesc (ze_event_pool_desc_t) Event pool descriptor

type ZeEventPoolDestroyParams

type ZeEventPoolDestroyParams struct {
	Pheventpool *ZeEventPoolHandle
}

ZeEventPoolDestroyParams (ze_event_pool_destroy_params_t) Callback function parameters for zeEventPoolDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventPoolFlags

type ZeEventPoolFlags uint32

ZeEventPoolFlags (ze_event_pool_flags_t) Supported event pool creation flags

const (
	ZE_EVENT_POOL_FLAG_HOST_VISIBLE            ZeEventPoolFlags = (1 << 0) // ZE_EVENT_POOL_FLAG_HOST_VISIBLE signals and waits are also visible to host
	ZE_EVENT_POOL_FLAG_IPC                     ZeEventPoolFlags = (1 << 1) // ZE_EVENT_POOL_FLAG_IPC signals and waits may be shared across processes
	ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP        ZeEventPoolFlags = (1 << 2) // ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP Indicates all events in pool will contain kernel timestamps
	ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP ZeEventPoolFlags = (1 << 3) // ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP Indicates all events in pool will contain kernel timestamps

	ZE_EVENT_POOL_FLAG_FORCE_UINT32 ZeEventPoolFlags = 0x7fffffff // ZE_EVENT_POOL_FLAG_FORCE_UINT32 Value marking end of ZE_EVENT_POOL_FLAG_* ENUMs

)

type ZeEventPoolGetIpcHandleParams

type ZeEventPoolGetIpcHandleParams struct {
	Pheventpool *ZeEventPoolHandle
	Pphipc      **ZeIpcEventPoolHandle
}

ZeEventPoolGetIpcHandleParams (ze_event_pool_get_ipc_handle_params_t) Callback function parameters for zeEventPoolGetIpcHandle / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventPoolHandle

type ZeEventPoolHandle uintptr

ZeEventPoolHandle (ze_event_pool_handle_t) Handle of driver's event pool object

type ZeEventPoolOpenIpcHandleParams

type ZeEventPoolOpenIpcHandleParams struct {
	Phcontext    *ZeContextHandle
	Phipc        *ZeIpcEventPoolHandle
	Ppheventpool **ZeEventPoolHandle
}

ZeEventPoolOpenIpcHandleParams (ze_event_pool_open_ipc_handle_params_t) Callback function parameters for zeEventPoolOpenIpcHandle / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventQueryKernelTimestampParams

type ZeEventQueryKernelTimestampParams struct {
	Phevent *ZeEventHandle
	Pdstptr **ZeKernelTimestampResult
}

ZeEventQueryKernelTimestampParams (ze_event_query_kernel_timestamp_params_t) Callback function parameters for zeEventQueryKernelTimestamp / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventQueryKernelTimestampsExtFlags

type ZeEventQueryKernelTimestampsExtFlags uint32

ZeEventQueryKernelTimestampsExtFlags (ze_event_query_kernel_timestamps_ext_flags_t) Event query kernel timestamps flags

const (
	ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_FLAG_KERNEL       ZeEventQueryKernelTimestampsExtFlags = (1 << 0)   // ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_FLAG_KERNEL Kernel timestamp results
	ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_FLAG_SYNCHRONIZED ZeEventQueryKernelTimestampsExtFlags = (1 << 1)   // ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_FLAG_SYNCHRONIZED Device event timestamps synchronized to the host time domain
	ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_FLAG_FORCE_UINT32 ZeEventQueryKernelTimestampsExtFlags = 0x7fffffff // ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_FLAG_* ENUMs

)

type ZeEventQueryKernelTimestampsExtProperties

type ZeEventQueryKernelTimestampsExtProperties struct {
	Stype ZeStructureType                      // Stype [in] type of this structure
	Pnext unsafe.Pointer                       // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeEventQueryKernelTimestampsExtFlags // Flags [out] 0 or some combination of ::ze_event_query_kernel_timestamps_ext_flag_t flags

}

ZeEventQueryKernelTimestampsExtProperties (ze_event_query_kernel_timestamps_ext_properties_t) Event query kernel timestamps properties / / @details / - This structure may be returned from ::zeDeviceGetProperties, via the / `pNext` member of ::ze_device_properties_t.

type ZeEventQueryKernelTimestampsExtVersion

type ZeEventQueryKernelTimestampsExtVersion uintptr

ZeEventQueryKernelTimestampsExtVersion (ze_event_query_kernel_timestamps_ext_version_t) Event Query Kernel Timestamps Extension Version(s)

const (
	ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_VERSION_1_0          ZeEventQueryKernelTimestampsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_VERSION_1_0 version 1.0
	ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_VERSION_CURRENT      ZeEventQueryKernelTimestampsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_VERSION_CURRENT latest known version
	ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_VERSION_FORCE_UINT32 ZeEventQueryKernelTimestampsExtVersion = 0x7fffffff                     // ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_VERSION_* ENUMs

)

type ZeEventQueryKernelTimestampsResultsExtProperties

type ZeEventQueryKernelTimestampsResultsExtProperties struct {
	Stype                         ZeStructureType                   // Stype [in] type of this structure
	Pnext                         unsafe.Pointer                    // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Pkerneltimestampsbuffer       *ZeKernelTimestampResult          // Pkerneltimestampsbuffer [in,out][optional][range(0, *pCount)] pointer to destination buffer of kernel timestamp results
	Psynchronizedtimestampsbuffer *ZeSynchronizedTimestampResultExt // Psynchronizedtimestampsbuffer [in,out][optional][range(0, *pCount)] pointer to destination buffer of synchronized timestamp results

}

ZeEventQueryKernelTimestampsResultsExtProperties (ze_event_query_kernel_timestamps_results_ext_properties_t) Event query kernel timestamps results properties

type ZeEventQueryStatusParams

type ZeEventQueryStatusParams struct {
	Phevent *ZeEventHandle
}

ZeEventQueryStatusParams (ze_event_query_status_params_t) Callback function parameters for zeEventQueryStatus / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeEventQueryTimestampsExpVersion

type ZeEventQueryTimestampsExpVersion uintptr

ZeEventQueryTimestampsExpVersion (ze_event_query_timestamps_exp_version_t) Event Query Timestamps Extension Version(s)

const (
	ZE_EVENT_QUERY_TIMESTAMPS_EXP_VERSION_1_0          ZeEventQueryTimestampsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EVENT_QUERY_TIMESTAMPS_EXP_VERSION_1_0 version 1.0
	ZE_EVENT_QUERY_TIMESTAMPS_EXP_VERSION_CURRENT      ZeEventQueryTimestampsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EVENT_QUERY_TIMESTAMPS_EXP_VERSION_CURRENT latest known version
	ZE_EVENT_QUERY_TIMESTAMPS_EXP_VERSION_FORCE_UINT32 ZeEventQueryTimestampsExpVersion = 0x7fffffff                     // ZE_EVENT_QUERY_TIMESTAMPS_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_EVENT_QUERY_TIMESTAMPS_EXP_VERSION_* ENUMs

)

type ZeEventScopeFlags

type ZeEventScopeFlags uint32

ZeEventScopeFlags (ze_event_scope_flags_t) Supported event scope flags

const (
	ZE_EVENT_SCOPE_FLAG_SUBDEVICE ZeEventScopeFlags = (1 << 0) // ZE_EVENT_SCOPE_FLAG_SUBDEVICE cache hierarchies are flushed or invalidated sufficient for local

	ZE_EVENT_SCOPE_FLAG_DEVICE ZeEventScopeFlags = (1 << 1) // ZE_EVENT_SCOPE_FLAG_DEVICE cache hierarchies are flushed or invalidated sufficient for global

	ZE_EVENT_SCOPE_FLAG_HOST ZeEventScopeFlags = (1 << 2) // ZE_EVENT_SCOPE_FLAG_HOST cache hierarchies are flushed or invalidated sufficient for device and

	ZE_EVENT_SCOPE_FLAG_FORCE_UINT32 ZeEventScopeFlags = 0x7fffffff // ZE_EVENT_SCOPE_FLAG_FORCE_UINT32 Value marking end of ZE_EVENT_SCOPE_FLAG_* ENUMs

)

type ZeEventSyncModeDesc

type ZeEventSyncModeDesc struct {
	Stype               ZeStructureType      // Stype [in] type of this structure
	Pnext               unsafe.Pointer       // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Syncmodeflags       ZeEventSyncModeFlags // Syncmodeflags [in] valid combination of ::ze_event_sync_mode_flag_t
	Externalinterruptid uint32               // Externalinterruptid [in] External interrupt id. Used only when ::ZE_EVENT_SYNC_MODE_FLAG_EXTERNAL_INTERRUPT_WAIT flag is set

}

ZeEventSyncModeDesc (ze_event_sync_mode_desc_t) Event sync mode descriptor

type ZeEventSyncModeFlags

type ZeEventSyncModeFlags uint32

ZeEventSyncModeFlags (ze_event_sync_mode_flags_t) Supported event sync mode flags

const (
	ZE_EVENT_SYNC_MODE_FLAG_LOW_POWER_WAIT   ZeEventSyncModeFlags = (1 << 0) // ZE_EVENT_SYNC_MODE_FLAG_LOW_POWER_WAIT Low power host synchronization mode, for better CPU utilization
	ZE_EVENT_SYNC_MODE_FLAG_SIGNAL_INTERRUPT ZeEventSyncModeFlags = (1 << 1) // ZE_EVENT_SYNC_MODE_FLAG_SIGNAL_INTERRUPT Generate interrupt when Event is signalled on Device. It may be used

	ZE_EVENT_SYNC_MODE_FLAG_EXTERNAL_INTERRUPT_WAIT ZeEventSyncModeFlags = (1 << 2) // ZE_EVENT_SYNC_MODE_FLAG_EXTERNAL_INTERRUPT_WAIT Host synchronization APIs wait for external interrupt id. Can be used

	ZE_EVENT_SYNC_MODE_FLAG_FORCE_UINT32 ZeEventSyncModeFlags = 0x7fffffff // ZE_EVENT_SYNC_MODE_FLAG_FORCE_UINT32 Value marking end of ZE_EVENT_SYNC_MODE_FLAG_* ENUMs

)

type ZeExternalMemmapSysmemExtDesc

type ZeExternalMemmapSysmemExtDesc struct {
	Stype         ZeStructureType // Stype [in] type of this structure
	Pnext         unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Psystemmemory unsafe.Pointer  // Psystemmemory [in] system memory pointer to map; must be page-aligned.
	Size          uint64          // Size [in] size of the system memory to map; must be page-aligned.

}

ZeExternalMemmapSysmemExtDesc (ze_external_memmap_sysmem_ext_desc_t) Maps external system memory for an allocation / / @details / - This structure may be passed to ::zeMemAllocHost, via the `pNext` / member of ::ze_host_mem_alloc_desc_t to map system memory for a host / allocation. / - The system memory pointer and size being mapped must be page aligned / based on the supported page sizes on the device.

type ZeExternalMemmapSysmemExtVersion

type ZeExternalMemmapSysmemExtVersion uintptr

ZeExternalMemmapSysmemExtVersion (ze_external_memmap_sysmem_ext_version_t) External Memory Mapping Extension Version(s)

const (
	ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_1_0          ZeExternalMemmapSysmemExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_1_0 version 1.0
	ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_CURRENT      ZeExternalMemmapSysmemExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_CURRENT latest known version
	ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_FORCE_UINT32 ZeExternalMemmapSysmemExtVersion = 0x7fffffff                     // ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_EXTERNAL_MEMMAP_SYSMEM_EXT_VERSION_* ENUMs

)

type ZeExternalMemoryExportDesc

type ZeExternalMemoryExportDesc struct {
	Stype ZeStructureType           // Stype [in] type of this structure
	Pnext unsafe.Pointer            // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeExternalMemoryTypeFlags // Flags [in] flags specifying memory export types for this allocation. must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t

}

ZeExternalMemoryExportDesc (ze_external_memory_export_desc_t) Additional allocation descriptor for exporting external memory / / @details / - This structure may be passed to ::zeMemAllocDevice, ::zeMemAllocHost, / or ::zePhysicalMemCreate, via the `pNext` member of / ::ze_device_mem_alloc_desc_t or ::ze_host_mem_alloc_desc_t, or / ::ze_physical_mem_desc_t, respectively, to indicate an exportable / memory allocation. / - This structure may be passed to ::zeImageCreate, via the `pNext` / member of ::ze_image_desc_t, to indicate an exportable image.

type ZeExternalMemoryExportFd

type ZeExternalMemoryExportFd struct {
	Stype ZeStructureType           // Stype [in] type of this structure
	Pnext unsafe.Pointer            // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeExternalMemoryTypeFlags // Flags [in] flags specifying the memory export type for the file descriptor. must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t
	Fd    int32                     // Fd [out] the exported file descriptor handle representing the allocation.

}

ZeExternalMemoryExportFd (ze_external_memory_export_fd_t) Exports an allocation as a file descriptor / / @details / - This structure may be passed to ::zeMemGetAllocProperties, via the / `pNext` member of ::ze_memory_allocation_properties_t, to export a / memory allocation as a file descriptor. / - This structure may be passed to ::zeImageGetAllocPropertiesExt, via / the `pNext` member of ::ze_image_allocation_ext_properties_t, to / export an image as a file descriptor. / - This structure may be passed to ::zePhysicalMemGetProperties, via the / `pNext` member of ::ze_physical_mem_properties_t, to export physical / memory as a file descriptor. / - The requested memory export type must have been specified when the / allocation was made.

type ZeExternalMemoryExportWin32Handle

type ZeExternalMemoryExportWin32Handle struct {
	Stype  ZeStructureType           // Stype [in] type of this structure
	Pnext  unsafe.Pointer            // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags  ZeExternalMemoryTypeFlags // Flags [in] flags specifying the memory export type for the Win32 handle. must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t
	Handle unsafe.Pointer            // Handle [out] the exported Win32 handle representing the allocation.

}

ZeExternalMemoryExportWin32Handle (ze_external_memory_export_win32_handle_t) Exports an allocation as a Win32 handle / / @details / - This structure may be passed to ::zeMemGetAllocProperties, via the / `pNext` member of ::ze_memory_allocation_properties_t, to export a / memory allocation as a Win32 handle. / - This structure may be passed to ::zeImageGetAllocPropertiesExt, via / the `pNext` member of ::ze_image_allocation_ext_properties_t, to / export an image as a Win32 handle. / - This structure may be passed to ::zePhysicalMemGetProperties, via the / `pNext` member of ::ze_physical_mem_properties_t, to export physical / memory as a Win32 handle. / - The requested memory export type must have been specified when the / allocation was made.

type ZeExternalMemoryImportFd

type ZeExternalMemoryImportFd struct {
	Stype ZeStructureType           // Stype [in] type of this structure
	Pnext unsafe.Pointer            // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeExternalMemoryTypeFlags // Flags [in] flags specifying the memory import type for the file descriptor. must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t
	Fd    int32                     // Fd [in] the file descriptor handle to import

}

ZeExternalMemoryImportFd (ze_external_memory_import_fd_t) Additional allocation descriptor for importing external memory as a / file descriptor / / @details / - This structure may be passed to ::zeMemAllocDevice, ::zeMemAllocHost, / or ::zePhysicalMemCreate, via the `pNext` member of / ::ze_device_mem_alloc_desc_t or ::ze_host_mem_alloc_desc_t, or / ::ze_physical_mem_desc_t, respectively, to import memory from a file / descriptor. / - This structure may be passed to ::zeImageCreate, via the `pNext` / member of ::ze_image_desc_t, to import memory from a file descriptor.

type ZeExternalMemoryImportWin32Handle

type ZeExternalMemoryImportWin32Handle struct {
	Stype  ZeStructureType           // Stype [in] type of this structure
	Pnext  unsafe.Pointer            // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags  ZeExternalMemoryTypeFlags // Flags [in] flags specifying the memory import type for the Win32 handle. must be 0 (default) or a valid combination of ::ze_external_memory_type_flags_t
	Handle unsafe.Pointer            // Handle [in][optional] the Win32 handle to import
	Name   unsafe.Pointer            // Name [in][optional] name of a memory object to import

}

ZeExternalMemoryImportWin32Handle (ze_external_memory_import_win32_handle_t) Additional allocation descriptor for importing external memory as a / Win32 handle / / @details / - When `handle` is `nullptr`, `name` must not be `nullptr`. / - When `name` is `nullptr`, `handle` must not be `nullptr`. / - When `flags` is ::ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_WIN32_KMT, / `name` must be `nullptr`. / - This structure may be passed to ::zeMemAllocDevice, ::zeMemAllocHost, / or ::zePhysicalMemCreate, via the `pNext` member of / ::ze_device_mem_alloc_desc_t or ::ze_host_mem_alloc_desc_t, or / ::ze_physical_mem_desc_t, respectively, to import memory from a Win32 / handle. / - This structure may be passed to ::zeImageCreate, via the `pNext` / member of ::ze_image_desc_t, to import memory from a Win32 handle.

type ZeExternalMemoryTypeFlags

type ZeExternalMemoryTypeFlags uint32

ZeExternalMemoryTypeFlags (ze_external_memory_type_flags_t) External memory type flags

const (
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_FD         ZeExternalMemoryTypeFlags = (1 << 0) // ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_FD an opaque POSIX file descriptor handle
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_DMA_BUF           ZeExternalMemoryTypeFlags = (1 << 1) // ZE_EXTERNAL_MEMORY_TYPE_FLAG_DMA_BUF a file descriptor handle for a Linux dma_buf
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_WIN32      ZeExternalMemoryTypeFlags = (1 << 2) // ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_WIN32 an NT handle
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_WIN32_KMT  ZeExternalMemoryTypeFlags = (1 << 3) // ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_WIN32_KMT a global share (KMT) handle
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D11_TEXTURE     ZeExternalMemoryTypeFlags = (1 << 4) // ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D11_TEXTURE an NT handle referring to a Direct3D 10 or 11 texture resource
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D11_TEXTURE_KMT ZeExternalMemoryTypeFlags = (1 << 5) // ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D11_TEXTURE_KMT a global share (KMT) handle referring to a Direct3D 10 or 11 texture

	ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D12_HEAP     ZeExternalMemoryTypeFlags = (1 << 6)   // ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D12_HEAP an NT handle referring to a Direct3D 12 heap resource
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D12_RESOURCE ZeExternalMemoryTypeFlags = (1 << 7)   // ZE_EXTERNAL_MEMORY_TYPE_FLAG_D3D12_RESOURCE an NT handle referring to a Direct3D 12 committed resource
	ZE_EXTERNAL_MEMORY_TYPE_FLAG_FORCE_UINT32   ZeExternalMemoryTypeFlags = 0x7fffffff // ZE_EXTERNAL_MEMORY_TYPE_FLAG_FORCE_UINT32 Value marking end of ZE_EXTERNAL_MEMORY_TYPE_FLAG_* ENUMs

)

type ZeExternalSemaphoreExtDesc

type ZeExternalSemaphoreExtDesc struct {
	Stype ZeStructureType             // Stype [in] type of this structure
	Pnext unsafe.Pointer              // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeExternalSemaphoreExtFlags // Flags [in] The flags describing the type of the semaphore. must be 0 (default) or a valid combination of ::ze_external_semaphore_ext_flag_t. When importing a semaphore, pNext should be pointing to one of the following structures: ::ze_external_semaphore_win32_ext_desc_t or ::ze_external_semaphore_fd_ext_desc_t.

}

ZeExternalSemaphoreExtDesc (ze_external_semaphore_ext_desc_t) External Semaphore Descriptor

type ZeExternalSemaphoreExtFlags

type ZeExternalSemaphoreExtFlags uint32

ZeExternalSemaphoreExtFlags (ze_external_semaphore_ext_flags_t) External Semaphores Type Flags

const (
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_OPAQUE_FD                   ZeExternalSemaphoreExtFlags = (1 << 0)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_OPAQUE_FD Semaphore is an Linux opaque file descriptor
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_OPAQUE_WIN32                ZeExternalSemaphoreExtFlags = (1 << 1)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_OPAQUE_WIN32 Semaphore is an opaque Win32 handle for monitored fence
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_OPAQUE_WIN32_KMT            ZeExternalSemaphoreExtFlags = (1 << 2)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_OPAQUE_WIN32_KMT Semaphore is an opaque Win32 KMT handle for monitored fence
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D12_FENCE                 ZeExternalSemaphoreExtFlags = (1 << 3)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D12_FENCE Semaphore is a D3D12 fence
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D11_FENCE                 ZeExternalSemaphoreExtFlags = (1 << 4)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D11_FENCE Semaphore is a D3D11 fence
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_KEYED_MUTEX                 ZeExternalSemaphoreExtFlags = (1 << 5)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_KEYED_MUTEX Semaphore is a keyed mutex for Win32
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_KEYED_MUTEX_KMT             ZeExternalSemaphoreExtFlags = (1 << 6)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_KEYED_MUTEX_KMT Semaphore is a keyed mutex for Win32 KMT
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_VK_TIMELINE_SEMAPHORE_FD    ZeExternalSemaphoreExtFlags = (1 << 7)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_VK_TIMELINE_SEMAPHORE_FD Semaphore is a Vulkan Timeline semaphore for Linux
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_VK_TIMELINE_SEMAPHORE_WIN32 ZeExternalSemaphoreExtFlags = (1 << 8)   // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_VK_TIMELINE_SEMAPHORE_WIN32 Semaphore is a Vulkan Timeline semaphore for Win32
	ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_FORCE_UINT32                ZeExternalSemaphoreExtFlags = 0x7fffffff // ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_* ENUMs

)

type ZeExternalSemaphoreExtHandle

type ZeExternalSemaphoreExtHandle uintptr

ZeExternalSemaphoreExtHandle (ze_external_semaphore_ext_handle_t) Handle of external semaphore object

type ZeExternalSemaphoreExtVersion

type ZeExternalSemaphoreExtVersion uintptr

ZeExternalSemaphoreExtVersion (ze_external_semaphore_ext_version_t) External Semaphores Extension Version

const (
	ZE_EXTERNAL_SEMAPHORE_EXT_VERSION_1_0          ZeExternalSemaphoreExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EXTERNAL_SEMAPHORE_EXT_VERSION_1_0 version 1.0
	ZE_EXTERNAL_SEMAPHORE_EXT_VERSION_CURRENT      ZeExternalSemaphoreExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_EXTERNAL_SEMAPHORE_EXT_VERSION_CURRENT latest known version
	ZE_EXTERNAL_SEMAPHORE_EXT_VERSION_FORCE_UINT32 ZeExternalSemaphoreExtVersion = 0x7fffffff                     // ZE_EXTERNAL_SEMAPHORE_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_EXTERNAL_SEMAPHORE_EXT_VERSION_* ENUMs

)

type ZeExternalSemaphoreFdExtDesc

type ZeExternalSemaphoreFdExtDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Fd    int32           // Fd [in] File descriptor of the semaphore. Must be a valid file descriptor.

}

ZeExternalSemaphoreFdExtDesc (ze_external_semaphore_fd_ext_desc_t) External Semaphore FD Descriptor

type ZeExternalSemaphoreSignalParamsExt

type ZeExternalSemaphoreSignalParamsExt struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Value uint64          // Value [in] [optional] Value to signal. Specified by user as an expected value with some of semaphore types, such as ::ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D12_FENCE.

}

ZeExternalSemaphoreSignalParamsExt (ze_external_semaphore_signal_params_ext_t) External Semaphore Signal parameters

type ZeExternalSemaphoreWaitParamsExt

type ZeExternalSemaphoreWaitParamsExt struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Value uint64          // Value [in] [optional] Value to wait for. Specified by user as an expected value with some of semaphore types, such as ::ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D12_FENCE.

}

ZeExternalSemaphoreWaitParamsExt (ze_external_semaphore_wait_params_ext_t) External Semaphore Wait parameters

type ZeExternalSemaphoreWin32ExtDesc

type ZeExternalSemaphoreWin32ExtDesc struct {
	Stype  ZeStructureType // Stype [in] type of this structure
	Pnext  unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Handle unsafe.Pointer  // Handle [in] Win32 handle of the semaphore. Must be a valid Win32 handle.
	Name   *byte           // Name [in] Name of the semaphore. Must be a valid null-terminated string.

}

ZeExternalSemaphoreWin32ExtDesc (ze_external_semaphore_win32_ext_desc_t) External Semaphore Win32 Descriptor

type ZeFabricEdgeExpDuplexity

type ZeFabricEdgeExpDuplexity uintptr

ZeFabricEdgeExpDuplexity (ze_fabric_edge_exp_duplexity_t) Fabric edge duplexity

const (
	ZE_FABRIC_EDGE_EXP_DUPLEXITY_UNKNOWN     ZeFabricEdgeExpDuplexity = 0 // ZE_FABRIC_EDGE_EXP_DUPLEXITY_UNKNOWN Fabric edge duplexity is unknown
	ZE_FABRIC_EDGE_EXP_DUPLEXITY_HALF_DUPLEX ZeFabricEdgeExpDuplexity = 1 // ZE_FABRIC_EDGE_EXP_DUPLEXITY_HALF_DUPLEX Fabric edge is half duplex, i.e. stated bandwidth is obtained in only

	ZE_FABRIC_EDGE_EXP_DUPLEXITY_FULL_DUPLEX ZeFabricEdgeExpDuplexity = 2 // ZE_FABRIC_EDGE_EXP_DUPLEXITY_FULL_DUPLEX Fabric edge is full duplex, i.e. stated bandwidth is supported in both

	ZE_FABRIC_EDGE_EXP_DUPLEXITY_FORCE_UINT32 ZeFabricEdgeExpDuplexity = 0x7fffffff // ZE_FABRIC_EDGE_EXP_DUPLEXITY_FORCE_UINT32 Value marking end of ZE_FABRIC_EDGE_EXP_DUPLEXITY_* ENUMs

)

type ZeFabricEdgeExpProperties

type ZeFabricEdgeExpProperties struct {
	Stype         ZeStructureType                         // Stype [in] type of this structure
	Pnext         unsafe.Pointer                          // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Uuid          ZeUuid                                  // Uuid [out] universal unique identifier.
	Model         [ZE_MAX_FABRIC_EDGE_MODEL_EXP_SIZE]byte // Model [out] Description of fabric edge technology. Will be set to the string "unkown" if this cannot be determined for this edge
	Bandwidth     uint32                                  // Bandwidth [out] design bandwidth
	Bandwidthunit ZeBandwidthUnit                         // Bandwidthunit [out] bandwidth unit
	Latency       uint32                                  // Latency [out] design latency
	Latencyunit   ZeLatencyUnit                           // Latencyunit [out] latency unit
	Duplexity     ZeFabricEdgeExpDuplexity                // Duplexity [out] Duplexity of the fabric edge

}

ZeFabricEdgeExpProperties (ze_fabric_edge_exp_properties_t) Fabric Edge properties

type ZeFabricEdgeHandle

type ZeFabricEdgeHandle uintptr

ZeFabricEdgeHandle (ze_fabric_edge_handle_t) Handle of driver's fabric edge object

type ZeFabricExpVersion

type ZeFabricExpVersion uintptr

ZeFabricExpVersion (ze_fabric_exp_version_t) Fabric Topology Discovery Extension Version(s)

const (
	ZE_FABRIC_EXP_VERSION_1_0          ZeFabricExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_FABRIC_EXP_VERSION_1_0 version 1.0
	ZE_FABRIC_EXP_VERSION_CURRENT      ZeFabricExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_FABRIC_EXP_VERSION_CURRENT latest known version
	ZE_FABRIC_EXP_VERSION_FORCE_UINT32 ZeFabricExpVersion = 0x7fffffff                     // ZE_FABRIC_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_FABRIC_EXP_VERSION_* ENUMs

)

type ZeFabricVertexExpProperties

type ZeFabricVertexExpProperties struct {
	Stype   ZeStructureType             // Stype [in] type of this structure
	Pnext   unsafe.Pointer              // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Uuid    ZeUuid                      // Uuid [out] universal unique identifier. If the vertex is co-located with a device/subdevice, then this uuid will match that of the corresponding device/subdevice
	Type    ZeFabricVertexExpType       // Type [out] does the fabric vertex represent a device, subdevice, or switch?
	Remote  ZeBool                      // Remote [out] does the fabric vertex live on the local node or on a remote node?
	Address ZeFabricVertexPciExpAddress // Address [out] B/D/F address of fabric vertex & associated device/subdevice if available

}

ZeFabricVertexExpProperties (ze_fabric_vertex_exp_properties_t) Fabric Vertex properties

type ZeFabricVertexExpType

type ZeFabricVertexExpType uintptr

ZeFabricVertexExpType (ze_fabric_vertex_exp_type_t) Fabric Vertex types

const (
	ZE_FABRIC_VERTEX_EXP_TYPE_UNKNOWN      ZeFabricVertexExpType = 0          // ZE_FABRIC_VERTEX_EXP_TYPE_UNKNOWN Fabric vertex type is unknown
	ZE_FABRIC_VERTEX_EXP_TYPE_DEVICE       ZeFabricVertexExpType = 1          // ZE_FABRIC_VERTEX_EXP_TYPE_DEVICE Fabric vertex represents a device
	ZE_FABRIC_VERTEX_EXP_TYPE_SUBDEVICE    ZeFabricVertexExpType = 2          // ZE_FABRIC_VERTEX_EXP_TYPE_SUBDEVICE Fabric vertex represents a subdevice
	ZE_FABRIC_VERTEX_EXP_TYPE_SWITCH       ZeFabricVertexExpType = 3          // ZE_FABRIC_VERTEX_EXP_TYPE_SWITCH Fabric vertex represents a switch
	ZE_FABRIC_VERTEX_EXP_TYPE_FORCE_UINT32 ZeFabricVertexExpType = 0x7fffffff // ZE_FABRIC_VERTEX_EXP_TYPE_FORCE_UINT32 Value marking end of ZE_FABRIC_VERTEX_EXP_TYPE_* ENUMs

)

type ZeFabricVertexHandle

type ZeFabricVertexHandle uintptr

ZeFabricVertexHandle (ze_fabric_vertex_handle_t) Handle of driver's fabric vertex object

type ZeFabricVertexPciExpAddress

type ZeFabricVertexPciExpAddress struct {
	Domain   uint32 // Domain [out] PCI domain number
	Bus      uint32 // Bus [out] PCI BDF bus number
	Device   uint32 // Device [out] PCI BDF device number
	Function uint32 // Function [out] PCI BDF function number

}

ZeFabricVertexPciExpAddress (ze_fabric_vertex_pci_exp_address_t) PCI address / / @details / - A PCI BDF address is the bus:device:function address of the device and / is useful for locating the device in the PCI switch fabric.

type ZeFenceCallbacks

type ZeFenceCallbacks struct {
	Pfncreatecb          ZePfnfencecreatecb
	Pfndestroycb         ZePfnfencedestroycb
	Pfnhostsynchronizecb ZePfnfencehostsynchronizecb
	Pfnquerystatuscb     ZePfnfencequerystatuscb
	Pfnresetcb           ZePfnfenceresetcb
}

ZeFenceCallbacks (ze_fence_callbacks_t) Table of Fence callback functions pointers

type ZeFenceCreateParams

type ZeFenceCreateParams struct {
	Phcommandqueue *ZeCommandQueueHandle
	Pdesc          **ZeFenceDesc
	Pphfence       **ZeFenceHandle
}

ZeFenceCreateParams (ze_fence_create_params_t) Callback function parameters for zeFenceCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeFenceDesc

type ZeFenceDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeFenceFlags    // Flags [in] creation flags. must be 0 (default) or a valid combination of ::ze_fence_flag_t.

}

ZeFenceDesc (ze_fence_desc_t) Fence descriptor

type ZeFenceDestroyParams

type ZeFenceDestroyParams struct {
	Phfence *ZeFenceHandle
}

ZeFenceDestroyParams (ze_fence_destroy_params_t) Callback function parameters for zeFenceDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeFenceFlags

type ZeFenceFlags uint32

ZeFenceFlags (ze_fence_flags_t) Supported fence creation flags

const (
	ZE_FENCE_FLAG_SIGNALED     ZeFenceFlags = (1 << 0)   // ZE_FENCE_FLAG_SIGNALED fence is created in the signaled state, otherwise not signaled.
	ZE_FENCE_FLAG_FORCE_UINT32 ZeFenceFlags = 0x7fffffff // ZE_FENCE_FLAG_FORCE_UINT32 Value marking end of ZE_FENCE_FLAG_* ENUMs

)

type ZeFenceHandle

type ZeFenceHandle uintptr

ZeFenceHandle (ze_fence_handle_t) Handle of driver's fence object

type ZeFenceHostSynchronizeParams

type ZeFenceHostSynchronizeParams struct {
	Phfence  *ZeFenceHandle
	Ptimeout *uint64
}

ZeFenceHostSynchronizeParams (ze_fence_host_synchronize_params_t) Callback function parameters for zeFenceHostSynchronize / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeFenceQueryStatusParams

type ZeFenceQueryStatusParams struct {
	Phfence *ZeFenceHandle
}

ZeFenceQueryStatusParams (ze_fence_query_status_params_t) Callback function parameters for zeFenceQueryStatus / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeFenceResetParams

type ZeFenceResetParams struct {
	Phfence *ZeFenceHandle
}

ZeFenceResetParams (ze_fence_reset_params_t) Callback function parameters for zeFenceReset / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeFloatAtomicExtProperties

type ZeFloatAtomicExtProperties struct {
	Stype     ZeStructureType          // Stype [in] type of this structure
	Pnext     unsafe.Pointer           // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Fp16flags ZeDeviceFpAtomicExtFlags // Fp16flags [out] Capabilities for half-precision floating-point atomic operations
	Fp32flags ZeDeviceFpAtomicExtFlags // Fp32flags [out] Capabilities for single-precision floating-point atomic operations
	Fp64flags ZeDeviceFpAtomicExtFlags // Fp64flags [out] Capabilities for double-precision floating-point atomic operations

}

ZeFloatAtomicExtProperties (ze_float_atomic_ext_properties_t) Device floating-point atomic properties queried using / ::zeDeviceGetModuleProperties / / @details / - This structure may be returned from ::zeDeviceGetModuleProperties, via / the `pNext` member of ::ze_device_module_properties_t.

type ZeFloatAtomicsExtVersion

type ZeFloatAtomicsExtVersion uintptr

ZeFloatAtomicsExtVersion (ze_float_atomics_ext_version_t) Floating-Point Atomics Extension Version(s)

const (
	ZE_FLOAT_ATOMICS_EXT_VERSION_1_0          ZeFloatAtomicsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_FLOAT_ATOMICS_EXT_VERSION_1_0 version 1.0
	ZE_FLOAT_ATOMICS_EXT_VERSION_CURRENT      ZeFloatAtomicsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_FLOAT_ATOMICS_EXT_VERSION_CURRENT latest known version
	ZE_FLOAT_ATOMICS_EXT_VERSION_FORCE_UINT32 ZeFloatAtomicsExtVersion = 0x7fffffff                     // ZE_FLOAT_ATOMICS_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_FLOAT_ATOMICS_EXT_VERSION_* ENUMs

)

type ZeGlobalCallbacks

type ZeGlobalCallbacks struct {
	Pfninitcb ZePfninitcb
}

ZeGlobalCallbacks (ze_global_callbacks_t) Table of Global callback functions pointers

type ZeGlobalOffsetExpVersion

type ZeGlobalOffsetExpVersion uintptr

ZeGlobalOffsetExpVersion (ze_global_offset_exp_version_t) Global Offset Extension Version(s)

const (
	ZE_GLOBAL_OFFSET_EXP_VERSION_1_0          ZeGlobalOffsetExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_GLOBAL_OFFSET_EXP_VERSION_1_0 version 1.0
	ZE_GLOBAL_OFFSET_EXP_VERSION_CURRENT      ZeGlobalOffsetExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_GLOBAL_OFFSET_EXP_VERSION_CURRENT latest known version
	ZE_GLOBAL_OFFSET_EXP_VERSION_FORCE_UINT32 ZeGlobalOffsetExpVersion = 0x7fffffff                     // ZE_GLOBAL_OFFSET_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_GLOBAL_OFFSET_EXP_VERSION_* ENUMs

)

type ZeGroupCount

type ZeGroupCount struct {
	Groupcountx uint32 // Groupcountx [in] number of thread groups in X dimension
	Groupcounty uint32 // Groupcounty [in] number of thread groups in Y dimension
	Groupcountz uint32 // Groupcountz [in] number of thread groups in Z dimension

}

ZeGroupCount (ze_group_count_t) Kernel dispatch group count.

type ZeGroupSize

type ZeGroupSize struct {
	Groupsizex uint32 // Groupsizex [in] size of thread group in X dimension
	Groupsizey uint32 // Groupsizey [in] size of thread group in Y dimension
	Groupsizez uint32 // Groupsizez [in] size of thread group in Z dimension

}

ZeGroupSize (ze_group_size_t) Kernel dispatch group sizes.

type ZeHostMemAllocDesc

type ZeHostMemAllocDesc struct {
	Stype ZeStructureType     // Stype [in] type of this structure
	Pnext unsafe.Pointer      // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeHostMemAllocFlags // Flags [in] flags specifying additional allocation controls. must be 0 (default) or a valid combination of ::ze_host_mem_alloc_flag_t; default behavior may use implicit driver-based heuristics.

}

ZeHostMemAllocDesc (ze_host_mem_alloc_desc_t) Host memory allocation descriptor

type ZeHostMemAllocFlags

type ZeHostMemAllocFlags uint32

ZeHostMemAllocFlags (ze_host_mem_alloc_flags_t) Supported host memory allocation flags

const (
	ZE_HOST_MEM_ALLOC_FLAG_BIAS_CACHED            ZeHostMemAllocFlags = (1 << 0)   // ZE_HOST_MEM_ALLOC_FLAG_BIAS_CACHED host should cache allocation
	ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED          ZeHostMemAllocFlags = (1 << 1)   // ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED host should not cache allocation (UC)
	ZE_HOST_MEM_ALLOC_FLAG_BIAS_WRITE_COMBINED    ZeHostMemAllocFlags = (1 << 2)   // ZE_HOST_MEM_ALLOC_FLAG_BIAS_WRITE_COMBINED host memory should be allocated write-combined (WC)
	ZE_HOST_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT ZeHostMemAllocFlags = (1 << 3)   // ZE_HOST_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT optimize shared allocation for first access on the host
	ZE_HOST_MEM_ALLOC_FLAG_FORCE_UINT32           ZeHostMemAllocFlags = 0x7fffffff // ZE_HOST_MEM_ALLOC_FLAG_FORCE_UINT32 Value marking end of ZE_HOST_MEM_ALLOC_FLAG_* ENUMs

)

type ZeImageAllocationExtProperties

type ZeImageAllocationExtProperties struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Id    uint64          // Id [out] identifier for this allocation

}

ZeImageAllocationExtProperties (ze_image_allocation_ext_properties_t) Image allocation properties queried using / ::zeImageGetAllocPropertiesExt

type ZeImageBindlessExpDesc

type ZeImageBindlessExpDesc struct {
	Stype ZeStructureType         // Stype [in] type of this structure
	Pnext unsafe.Pointer          // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeImageBindlessExpFlags // Flags [in] image flags. must be 0 (default) or a valid value of ::ze_image_bindless_exp_flag_t default behavior is bindless images are not used when creating handles via ::zeImageCreate. When the flag is passed to ::zeImageCreate, then only the memory for the image is allocated. Additional image handles can be created with ::zeImageViewCreateExt. When ::ZE_IMAGE_BINDLESS_EXP_FLAG_SAMPLED_IMAGE flag is passed, ::ze_sampler_desc_t must be attached via pNext member of ::ze_image_bindless_exp_desc_t.

}

ZeImageBindlessExpDesc (ze_image_bindless_exp_desc_t) Image descriptor for bindless images. This structure may be passed to / ::zeImageCreate via pNext member of ::ze_image_desc_t.

type ZeImageBindlessExpFlags

type ZeImageBindlessExpFlags uint32

ZeImageBindlessExpFlags (ze_image_bindless_exp_flags_t) Image flags for Bindless images

const (
	ZE_IMAGE_BINDLESS_EXP_FLAG_BINDLESS ZeImageBindlessExpFlags = (1 << 0) // ZE_IMAGE_BINDLESS_EXP_FLAG_BINDLESS Bindless images are created with ::zeImageCreate. The image handle

	ZE_IMAGE_BINDLESS_EXP_FLAG_SAMPLED_IMAGE ZeImageBindlessExpFlags = (1 << 1) // ZE_IMAGE_BINDLESS_EXP_FLAG_SAMPLED_IMAGE Bindless sampled images are created with ::zeImageCreate by combining

	ZE_IMAGE_BINDLESS_EXP_FLAG_FORCE_UINT32 ZeImageBindlessExpFlags = 0x7fffffff // ZE_IMAGE_BINDLESS_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_IMAGE_BINDLESS_EXP_FLAG_* ENUMs

)

type ZeImageCallbacks

type ZeImageCallbacks struct {
	Pfngetpropertiescb ZePfnimagegetpropertiescb
	Pfncreatecb        ZePfnimagecreatecb
	Pfndestroycb       ZePfnimagedestroycb
}

ZeImageCallbacks (ze_image_callbacks_t) Table of Image callback functions pointers

type ZeImageCopyExtVersion

type ZeImageCopyExtVersion uintptr

ZeImageCopyExtVersion (ze_image_copy_ext_version_t) Image Copy Extension Version(s)

const (
	ZE_IMAGE_COPY_EXT_VERSION_1_0          ZeImageCopyExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_COPY_EXT_VERSION_1_0 version 1.0
	ZE_IMAGE_COPY_EXT_VERSION_CURRENT      ZeImageCopyExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_COPY_EXT_VERSION_CURRENT latest known version
	ZE_IMAGE_COPY_EXT_VERSION_FORCE_UINT32 ZeImageCopyExtVersion = 0x7fffffff                     // ZE_IMAGE_COPY_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_COPY_EXT_VERSION_* ENUMs

)

type ZeImageCreateParams

type ZeImageCreateParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
	Pdesc     **ZeImageDesc
	Pphimage  **ZeImageHandle
}

ZeImageCreateParams (ze_image_create_params_t) Callback function parameters for zeImageCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeImageDesc

type ZeImageDesc struct {
	Stype       ZeStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags       ZeImageFlags    // Flags [in] creation flags. must be 0 (default) or a valid combination of ::ze_image_flag_t; default is read-only, cached access.
	Type        ZeImageType     // Type [in] image type. Media format layouts are unsupported for ::ZE_IMAGE_TYPE_BUFFER
	Format      ZeImageFormat   // Format [in] image format
	Width       uint64          // Width [in] width dimension. ::ZE_IMAGE_TYPE_BUFFER: size in bytes; see the `maxImageBufferSize` member of ::ze_device_image_properties_t for limits. ::ZE_IMAGE_TYPE_1D, ::ZE_IMAGE_TYPE_1DARRAY: width in pixels; see the `maxImageDims1D` member of ::ze_device_image_properties_t for limits. ::ZE_IMAGE_TYPE_2D, ::ZE_IMAGE_TYPE_2DARRAY: width in pixels; see the `maxImageDims2D` member of ::ze_device_image_properties_t for limits. ::ZE_IMAGE_TYPE_3D: width in pixels; see the `maxImageDims3D` member of ::ze_device_image_properties_t for limits.
	Height      uint32          // Height [in] height dimension. ::ZE_IMAGE_TYPE_2D, ::ZE_IMAGE_TYPE_2DARRAY: height in pixels; see the `maxImageDims2D` member of ::ze_device_image_properties_t for limits. ::ZE_IMAGE_TYPE_3D: height in pixels; see the `maxImageDims3D` member of ::ze_device_image_properties_t for limits. other: ignored.
	Depth       uint32          // Depth [in] depth dimension. ::ZE_IMAGE_TYPE_3D: depth in pixels; see the `maxImageDims3D` member of ::ze_device_image_properties_t for limits. other: ignored.
	Arraylevels uint32          // Arraylevels [in] array levels. ::ZE_IMAGE_TYPE_1DARRAY, ::ZE_IMAGE_TYPE_2DARRAY: see the `maxImageArraySlices` member of ::ze_device_image_properties_t for limits. other: ignored.
	Miplevels   uint32          // Miplevels [in] mipmap levels (must be 0)

}

ZeImageDesc (ze_image_desc_t) Image descriptor

type ZeImageDestroyParams

type ZeImageDestroyParams struct {
	Phimage *ZeImageHandle
}

ZeImageDestroyParams (ze_image_destroy_params_t) Callback function parameters for zeImageDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeImageFlags

type ZeImageFlags uint32

ZeImageFlags (ze_image_flags_t) Supported image creation flags

const (
	ZE_IMAGE_FLAG_KERNEL_WRITE  ZeImageFlags = (1 << 0)   // ZE_IMAGE_FLAG_KERNEL_WRITE kernels will write contents
	ZE_IMAGE_FLAG_BIAS_UNCACHED ZeImageFlags = (1 << 1)   // ZE_IMAGE_FLAG_BIAS_UNCACHED device should not cache contents
	ZE_IMAGE_FLAG_FORCE_UINT32  ZeImageFlags = 0x7fffffff // ZE_IMAGE_FLAG_FORCE_UINT32 Value marking end of ZE_IMAGE_FLAG_* ENUMs

)

type ZeImageFormat

type ZeImageFormat struct {
	Layout ZeImageFormatLayout  // Layout [in] image format component layout (e.g. N-component layouts and media formats)
	Type   ZeImageFormatType    // Type [in] image format type
	X      ZeImageFormatSwizzle // X [in] image component swizzle into channel x
	Y      ZeImageFormatSwizzle // Y [in] image component swizzle into channel y
	Z      ZeImageFormatSwizzle // Z [in] image component swizzle into channel z
	W      ZeImageFormatSwizzle // W [in] image component swizzle into channel w

}

ZeImageFormat (ze_image_format_t) Image format

type ZeImageFormatLayout

type ZeImageFormatLayout uintptr

ZeImageFormatLayout (ze_image_format_layout_t) Supported image format layouts

const (
	ZE_IMAGE_FORMAT_LAYOUT_8            ZeImageFormatLayout = 0          // ZE_IMAGE_FORMAT_LAYOUT_8 8-bit single component layout
	ZE_IMAGE_FORMAT_LAYOUT_16           ZeImageFormatLayout = 1          // ZE_IMAGE_FORMAT_LAYOUT_16 16-bit single component layout
	ZE_IMAGE_FORMAT_LAYOUT_32           ZeImageFormatLayout = 2          // ZE_IMAGE_FORMAT_LAYOUT_32 32-bit single component layout
	ZE_IMAGE_FORMAT_LAYOUT_8_8          ZeImageFormatLayout = 3          // ZE_IMAGE_FORMAT_LAYOUT_8_8 2-component 8-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_8_8_8_8      ZeImageFormatLayout = 4          // ZE_IMAGE_FORMAT_LAYOUT_8_8_8_8 4-component 8-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_16_16        ZeImageFormatLayout = 5          // ZE_IMAGE_FORMAT_LAYOUT_16_16 2-component 16-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_16_16_16_16  ZeImageFormatLayout = 6          // ZE_IMAGE_FORMAT_LAYOUT_16_16_16_16 4-component 16-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_32_32        ZeImageFormatLayout = 7          // ZE_IMAGE_FORMAT_LAYOUT_32_32 2-component 32-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_32_32_32_32  ZeImageFormatLayout = 8          // ZE_IMAGE_FORMAT_LAYOUT_32_32_32_32 4-component 32-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_10_10_10_2   ZeImageFormatLayout = 9          // ZE_IMAGE_FORMAT_LAYOUT_10_10_10_2 4-component 10_10_10_2 layout
	ZE_IMAGE_FORMAT_LAYOUT_11_11_10     ZeImageFormatLayout = 10         // ZE_IMAGE_FORMAT_LAYOUT_11_11_10 3-component 11_11_10 layout
	ZE_IMAGE_FORMAT_LAYOUT_5_6_5        ZeImageFormatLayout = 11         // ZE_IMAGE_FORMAT_LAYOUT_5_6_5 3-component 5_6_5 layout
	ZE_IMAGE_FORMAT_LAYOUT_5_5_5_1      ZeImageFormatLayout = 12         // ZE_IMAGE_FORMAT_LAYOUT_5_5_5_1 4-component 5_5_5_1 layout
	ZE_IMAGE_FORMAT_LAYOUT_4_4_4_4      ZeImageFormatLayout = 13         // ZE_IMAGE_FORMAT_LAYOUT_4_4_4_4 4-component 4_4_4_4 layout
	ZE_IMAGE_FORMAT_LAYOUT_Y8           ZeImageFormatLayout = 14         // ZE_IMAGE_FORMAT_LAYOUT_Y8 Media Format: Y8. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_NV12         ZeImageFormatLayout = 15         // ZE_IMAGE_FORMAT_LAYOUT_NV12 Media Format: NV12. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_YUYV         ZeImageFormatLayout = 16         // ZE_IMAGE_FORMAT_LAYOUT_YUYV Media Format: YUYV. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_VYUY         ZeImageFormatLayout = 17         // ZE_IMAGE_FORMAT_LAYOUT_VYUY Media Format: VYUY. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_YVYU         ZeImageFormatLayout = 18         // ZE_IMAGE_FORMAT_LAYOUT_YVYU Media Format: YVYU. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_UYVY         ZeImageFormatLayout = 19         // ZE_IMAGE_FORMAT_LAYOUT_UYVY Media Format: UYVY. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_AYUV         ZeImageFormatLayout = 20         // ZE_IMAGE_FORMAT_LAYOUT_AYUV Media Format: AYUV. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_P010         ZeImageFormatLayout = 21         // ZE_IMAGE_FORMAT_LAYOUT_P010 Media Format: P010. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_Y410         ZeImageFormatLayout = 22         // ZE_IMAGE_FORMAT_LAYOUT_Y410 Media Format: Y410. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_P012         ZeImageFormatLayout = 23         // ZE_IMAGE_FORMAT_LAYOUT_P012 Media Format: P012. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_Y16          ZeImageFormatLayout = 24         // ZE_IMAGE_FORMAT_LAYOUT_Y16 Media Format: Y16. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_P016         ZeImageFormatLayout = 25         // ZE_IMAGE_FORMAT_LAYOUT_P016 Media Format: P016. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_Y216         ZeImageFormatLayout = 26         // ZE_IMAGE_FORMAT_LAYOUT_Y216 Media Format: Y216. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_P216         ZeImageFormatLayout = 27         // ZE_IMAGE_FORMAT_LAYOUT_P216 Media Format: P216. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_P8           ZeImageFormatLayout = 28         // ZE_IMAGE_FORMAT_LAYOUT_P8 Media Format: P8. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_YUY2         ZeImageFormatLayout = 29         // ZE_IMAGE_FORMAT_LAYOUT_YUY2 Media Format: YUY2. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_A8P8         ZeImageFormatLayout = 30         // ZE_IMAGE_FORMAT_LAYOUT_A8P8 Media Format: A8P8. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_IA44         ZeImageFormatLayout = 31         // ZE_IMAGE_FORMAT_LAYOUT_IA44 Media Format: IA44. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_AI44         ZeImageFormatLayout = 32         // ZE_IMAGE_FORMAT_LAYOUT_AI44 Media Format: AI44. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_Y416         ZeImageFormatLayout = 33         // ZE_IMAGE_FORMAT_LAYOUT_Y416 Media Format: Y416. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_Y210         ZeImageFormatLayout = 34         // ZE_IMAGE_FORMAT_LAYOUT_Y210 Media Format: Y210. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_I420         ZeImageFormatLayout = 35         // ZE_IMAGE_FORMAT_LAYOUT_I420 Media Format: I420. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_YV12         ZeImageFormatLayout = 36         // ZE_IMAGE_FORMAT_LAYOUT_YV12 Media Format: YV12. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_400P         ZeImageFormatLayout = 37         // ZE_IMAGE_FORMAT_LAYOUT_400P Media Format: 400P. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_422H         ZeImageFormatLayout = 38         // ZE_IMAGE_FORMAT_LAYOUT_422H Media Format: 422H. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_422V         ZeImageFormatLayout = 39         // ZE_IMAGE_FORMAT_LAYOUT_422V Media Format: 422V. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_444P         ZeImageFormatLayout = 40         // ZE_IMAGE_FORMAT_LAYOUT_444P Media Format: 444P. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_RGBP         ZeImageFormatLayout = 41         // ZE_IMAGE_FORMAT_LAYOUT_RGBP Media Format: RGBP. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_BRGP         ZeImageFormatLayout = 42         // ZE_IMAGE_FORMAT_LAYOUT_BRGP Media Format: BRGP. Format type and swizzle is ignored for this.
	ZE_IMAGE_FORMAT_LAYOUT_8_8_8        ZeImageFormatLayout = 43         // ZE_IMAGE_FORMAT_LAYOUT_8_8_8 3-component 8-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_16_16_16     ZeImageFormatLayout = 44         // ZE_IMAGE_FORMAT_LAYOUT_16_16_16 3-component 16-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_32_32_32     ZeImageFormatLayout = 45         // ZE_IMAGE_FORMAT_LAYOUT_32_32_32 3-component 32-bit layout
	ZE_IMAGE_FORMAT_LAYOUT_FORCE_UINT32 ZeImageFormatLayout = 0x7fffffff // ZE_IMAGE_FORMAT_LAYOUT_FORCE_UINT32 Value marking end of ZE_IMAGE_FORMAT_LAYOUT_* ENUMs

)

type ZeImageFormatSupportExtProperties

type ZeImageFormatSupportExtProperties struct {
	Stype     ZeStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Supported ZeBool          // Supported [out] boolean flag indicating whether the image format is supported on the queried device

}

ZeImageFormatSupportExtProperties (ze_image_format_support_ext_properties_t) Image format support query properties / / @details / - This structure may be passed to ::zeImageGetProperties via the pNext / member of ::ze_image_properties_t. / - The implementation shall populate the supported field based on the / ::ze_image_desc_t and ::ze_device_handle_t passed to / ::zeImageGetProperties. / - This provides a mechanism to query format support without requiring / image creation.

type ZeImageFormatSupportExtVersion

type ZeImageFormatSupportExtVersion uintptr

ZeImageFormatSupportExtVersion (ze_image_format_support_ext_version_t) Image Format Support Extension Version(s)

const (
	ZE_IMAGE_FORMAT_SUPPORT_EXT_VERSION_1_0          ZeImageFormatSupportExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_FORMAT_SUPPORT_EXT_VERSION_1_0 version 1.0
	ZE_IMAGE_FORMAT_SUPPORT_EXT_VERSION_CURRENT      ZeImageFormatSupportExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_FORMAT_SUPPORT_EXT_VERSION_CURRENT latest known version
	ZE_IMAGE_FORMAT_SUPPORT_EXT_VERSION_FORCE_UINT32 ZeImageFormatSupportExtVersion = 0x7fffffff                     // ZE_IMAGE_FORMAT_SUPPORT_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_FORMAT_SUPPORT_EXT_VERSION_* ENUMs

)

type ZeImageFormatSwizzle

type ZeImageFormatSwizzle uintptr

ZeImageFormatSwizzle (ze_image_format_swizzle_t) Supported image format component swizzle into channel

const (
	ZE_IMAGE_FORMAT_SWIZZLE_R            ZeImageFormatSwizzle = 0          // ZE_IMAGE_FORMAT_SWIZZLE_R Red component
	ZE_IMAGE_FORMAT_SWIZZLE_G            ZeImageFormatSwizzle = 1          // ZE_IMAGE_FORMAT_SWIZZLE_G Green component
	ZE_IMAGE_FORMAT_SWIZZLE_B            ZeImageFormatSwizzle = 2          // ZE_IMAGE_FORMAT_SWIZZLE_B Blue component
	ZE_IMAGE_FORMAT_SWIZZLE_A            ZeImageFormatSwizzle = 3          // ZE_IMAGE_FORMAT_SWIZZLE_A Alpha component
	ZE_IMAGE_FORMAT_SWIZZLE_0            ZeImageFormatSwizzle = 4          // ZE_IMAGE_FORMAT_SWIZZLE_0 Zero
	ZE_IMAGE_FORMAT_SWIZZLE_1            ZeImageFormatSwizzle = 5          // ZE_IMAGE_FORMAT_SWIZZLE_1 One
	ZE_IMAGE_FORMAT_SWIZZLE_X            ZeImageFormatSwizzle = 6          // ZE_IMAGE_FORMAT_SWIZZLE_X Don't care
	ZE_IMAGE_FORMAT_SWIZZLE_D            ZeImageFormatSwizzle = 7          // ZE_IMAGE_FORMAT_SWIZZLE_D Depth Component
	ZE_IMAGE_FORMAT_SWIZZLE_FORCE_UINT32 ZeImageFormatSwizzle = 0x7fffffff // ZE_IMAGE_FORMAT_SWIZZLE_FORCE_UINT32 Value marking end of ZE_IMAGE_FORMAT_SWIZZLE_* ENUMs

)

type ZeImageFormatType

type ZeImageFormatType uintptr

ZeImageFormatType (ze_image_format_type_t) Supported image format types

const (
	ZE_IMAGE_FORMAT_TYPE_UINT         ZeImageFormatType = 0          // ZE_IMAGE_FORMAT_TYPE_UINT Unsigned integer
	ZE_IMAGE_FORMAT_TYPE_SINT         ZeImageFormatType = 1          // ZE_IMAGE_FORMAT_TYPE_SINT Signed integer
	ZE_IMAGE_FORMAT_TYPE_UNORM        ZeImageFormatType = 2          // ZE_IMAGE_FORMAT_TYPE_UNORM Unsigned normalized integer
	ZE_IMAGE_FORMAT_TYPE_SNORM        ZeImageFormatType = 3          // ZE_IMAGE_FORMAT_TYPE_SNORM Signed normalized integer
	ZE_IMAGE_FORMAT_TYPE_FLOAT        ZeImageFormatType = 4          // ZE_IMAGE_FORMAT_TYPE_FLOAT Float
	ZE_IMAGE_FORMAT_TYPE_FORCE_UINT32 ZeImageFormatType = 0x7fffffff // ZE_IMAGE_FORMAT_TYPE_FORCE_UINT32 Value marking end of ZE_IMAGE_FORMAT_TYPE_* ENUMs

)

type ZeImageGetPropertiesParams

type ZeImageGetPropertiesParams struct {
	Phdevice          *ZeDeviceHandle
	Pdesc             **ZeImageDesc
	Ppimageproperties **ZeImageProperties
}

ZeImageGetPropertiesParams (ze_image_get_properties_params_t) Callback function parameters for zeImageGetProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeImageHandle

type ZeImageHandle uintptr

ZeImageHandle (ze_image_handle_t) Handle of driver's image object

type ZeImageMemoryPropertiesExp

type ZeImageMemoryPropertiesExp struct {
	Stype      ZeStructureType // Stype [in] type of this structure
	Pnext      unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Size       uint64          // Size [out] size of image allocation in bytes.
	Rowpitch   uint64          // Rowpitch [out] size of image row in bytes.
	Slicepitch uint64          // Slicepitch [out] size of image slice in bytes.

}

ZeImageMemoryPropertiesExp (ze_image_memory_properties_exp_t) Image memory properties

type ZeImageMemoryPropertiesExpVersion

type ZeImageMemoryPropertiesExpVersion uintptr

ZeImageMemoryPropertiesExpVersion (ze_image_memory_properties_exp_version_t) Image Memory Properties Extension Version(s)

const (
	ZE_IMAGE_MEMORY_PROPERTIES_EXP_VERSION_1_0          ZeImageMemoryPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_MEMORY_PROPERTIES_EXP_VERSION_1_0 version 1.0
	ZE_IMAGE_MEMORY_PROPERTIES_EXP_VERSION_CURRENT      ZeImageMemoryPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_MEMORY_PROPERTIES_EXP_VERSION_CURRENT latest known version
	ZE_IMAGE_MEMORY_PROPERTIES_EXP_VERSION_FORCE_UINT32 ZeImageMemoryPropertiesExpVersion = 0x7fffffff                     // ZE_IMAGE_MEMORY_PROPERTIES_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_MEMORY_PROPERTIES_EXP_VERSION_* ENUMs

)

type ZeImagePitchedExpDesc

type ZeImagePitchedExpDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Ptr   unsafe.Pointer  // Ptr [in] pointer to pitched device allocation allocated using ::zeMemAllocDevice

}

ZeImagePitchedExpDesc (ze_image_pitched_exp_desc_t) Image descriptor for bindless images created from pitched allocations. / This structure may be passed to ::zeImageCreate via pNext member of / ::ze_image_desc_t.

type ZeImageProperties

type ZeImageProperties struct {
	Stype              ZeStructureType           // Stype [in] type of this structure
	Pnext              unsafe.Pointer            // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Samplerfilterflags ZeImageSamplerFilterFlags // Samplerfilterflags [out] supported sampler filtering. returns 0 (unsupported) or a combination of ::ze_image_sampler_filter_flag_t.

}

ZeImageProperties (ze_image_properties_t) Image properties

type ZeImageQueryAllocPropertiesExtVersion

type ZeImageQueryAllocPropertiesExtVersion uintptr

ZeImageQueryAllocPropertiesExtVersion (ze_image_query_alloc_properties_ext_version_t) Image Query Allocation Properties Extension Version(s)

const (
	ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_VERSION_1_0          ZeImageQueryAllocPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_VERSION_1_0 version 1.0
	ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_VERSION_CURRENT      ZeImageQueryAllocPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_VERSION_CURRENT latest known version
	ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_VERSION_FORCE_UINT32 ZeImageQueryAllocPropertiesExtVersion = 0x7fffffff                     // ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_QUERY_ALLOC_PROPERTIES_EXT_VERSION_* ENUMs

)

type ZeImageRegion

type ZeImageRegion struct {
	Originx uint32 // Originx [in] The origin x offset for region in pixels
	Originy uint32 // Originy [in] The origin y offset for region in pixels
	Originz uint32 // Originz [in] The origin z offset for region in pixels
	Width   uint32 // Width [in] The region width relative to origin in pixels
	Height  uint32 // Height [in] The region height relative to origin in pixels
	Depth   uint32 // Depth [in] The region depth relative to origin. For 1D or 2D images, set this to 1.

}

ZeImageRegion (ze_image_region_t) Region descriptor

type ZeImageSamplerFilterFlags

type ZeImageSamplerFilterFlags uint32

ZeImageSamplerFilterFlags (ze_image_sampler_filter_flags_t) Supported sampler filtering flags

const (
	ZE_IMAGE_SAMPLER_FILTER_FLAG_POINT        ZeImageSamplerFilterFlags = (1 << 0)   // ZE_IMAGE_SAMPLER_FILTER_FLAG_POINT device supports point filtering
	ZE_IMAGE_SAMPLER_FILTER_FLAG_LINEAR       ZeImageSamplerFilterFlags = (1 << 1)   // ZE_IMAGE_SAMPLER_FILTER_FLAG_LINEAR device supports linear filtering
	ZE_IMAGE_SAMPLER_FILTER_FLAG_FORCE_UINT32 ZeImageSamplerFilterFlags = 0x7fffffff // ZE_IMAGE_SAMPLER_FILTER_FLAG_FORCE_UINT32 Value marking end of ZE_IMAGE_SAMPLER_FILTER_FLAG_* ENUMs

)

type ZeImageType

type ZeImageType uintptr

ZeImageType (ze_image_type_t) Supported image types

const (
	ZE_IMAGE_TYPE_1D           ZeImageType = 0          // ZE_IMAGE_TYPE_1D 1D
	ZE_IMAGE_TYPE_1DARRAY      ZeImageType = 1          // ZE_IMAGE_TYPE_1DARRAY 1D array
	ZE_IMAGE_TYPE_2D           ZeImageType = 2          // ZE_IMAGE_TYPE_2D 2D
	ZE_IMAGE_TYPE_2DARRAY      ZeImageType = 3          // ZE_IMAGE_TYPE_2DARRAY 2D array
	ZE_IMAGE_TYPE_3D           ZeImageType = 4          // ZE_IMAGE_TYPE_3D 3D
	ZE_IMAGE_TYPE_BUFFER       ZeImageType = 5          // ZE_IMAGE_TYPE_BUFFER Buffer
	ZE_IMAGE_TYPE_FORCE_UINT32 ZeImageType = 0x7fffffff // ZE_IMAGE_TYPE_FORCE_UINT32 Value marking end of ZE_IMAGE_TYPE_* ENUMs

)

type ZeImageViewExpVersion

type ZeImageViewExpVersion uintptr

ZeImageViewExpVersion (ze_image_view_exp_version_t) Image View Extension Version(s)

const (
	ZE_IMAGE_VIEW_EXP_VERSION_1_0          ZeImageViewExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXP_VERSION_1_0 version 1.0
	ZE_IMAGE_VIEW_EXP_VERSION_CURRENT      ZeImageViewExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXP_VERSION_CURRENT latest known version
	ZE_IMAGE_VIEW_EXP_VERSION_FORCE_UINT32 ZeImageViewExpVersion = 0x7fffffff                     // ZE_IMAGE_VIEW_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_VIEW_EXP_VERSION_* ENUMs

)

type ZeImageViewExtVersion

type ZeImageViewExtVersion uintptr

ZeImageViewExtVersion (ze_image_view_ext_version_t) Image View Extension Version(s)

const (
	ZE_IMAGE_VIEW_EXT_VERSION_1_0          ZeImageViewExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXT_VERSION_1_0 version 1.0
	ZE_IMAGE_VIEW_EXT_VERSION_CURRENT      ZeImageViewExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXT_VERSION_CURRENT latest known version
	ZE_IMAGE_VIEW_EXT_VERSION_FORCE_UINT32 ZeImageViewExtVersion = 0x7fffffff                     // ZE_IMAGE_VIEW_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_VIEW_EXT_VERSION_* ENUMs

)

type ZeImageViewPlanarExpDesc

type ZeImageViewPlanarExpDesc struct {
	Stype      ZeStructureType // Stype [in] type of this structure
	Pnext      unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Planeindex uint32          // Planeindex [DEPRECATED] no longer supported, use ::ze_image_view_planar_ext_desc_t instead

}

ZeImageViewPlanarExpDesc (ze_image_view_planar_exp_desc_t) Image view planar descriptor

type ZeImageViewPlanarExpVersion

type ZeImageViewPlanarExpVersion uintptr

ZeImageViewPlanarExpVersion (ze_image_view_planar_exp_version_t) Image View Planar Extension Version(s)

const (
	ZE_IMAGE_VIEW_PLANAR_EXP_VERSION_1_0          ZeImageViewPlanarExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_PLANAR_EXP_VERSION_1_0 version 1.0
	ZE_IMAGE_VIEW_PLANAR_EXP_VERSION_CURRENT      ZeImageViewPlanarExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_PLANAR_EXP_VERSION_CURRENT latest known version
	ZE_IMAGE_VIEW_PLANAR_EXP_VERSION_FORCE_UINT32 ZeImageViewPlanarExpVersion = 0x7fffffff                     // ZE_IMAGE_VIEW_PLANAR_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_VIEW_PLANAR_EXP_VERSION_* ENUMs

)

type ZeImageViewPlanarExtDesc

type ZeImageViewPlanarExtDesc struct {
	Stype      ZeStructureType // Stype [in] type of this structure
	Pnext      unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Planeindex uint32          // Planeindex [in] the 0-based plane index (e.g. NV12 is 0 = Y plane, 1 UV plane)

}

ZeImageViewPlanarExtDesc (ze_image_view_planar_ext_desc_t) Image view planar descriptor

type ZeImageViewPlanarExtVersion

type ZeImageViewPlanarExtVersion uintptr

ZeImageViewPlanarExtVersion (ze_image_view_planar_ext_version_t) Image View Planar Extension Version(s)

const (
	ZE_IMAGE_VIEW_PLANAR_EXT_VERSION_1_0          ZeImageViewPlanarExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_PLANAR_EXT_VERSION_1_0 version 1.0
	ZE_IMAGE_VIEW_PLANAR_EXT_VERSION_CURRENT      ZeImageViewPlanarExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_PLANAR_EXT_VERSION_CURRENT latest known version
	ZE_IMAGE_VIEW_PLANAR_EXT_VERSION_FORCE_UINT32 ZeImageViewPlanarExtVersion = 0x7fffffff                     // ZE_IMAGE_VIEW_PLANAR_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_VIEW_PLANAR_EXT_VERSION_* ENUMs

)

type ZeImmediateCommandListAppendExpVersion

type ZeImmediateCommandListAppendExpVersion uintptr

ZeImmediateCommandListAppendExpVersion (ze_immediate_command_list_append_exp_version_t) Immediate Command List Append Extension Version(s)

const (
	ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_VERSION_1_0          ZeImmediateCommandListAppendExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_VERSION_1_0 version 1.0
	ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_VERSION_CURRENT      ZeImmediateCommandListAppendExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_VERSION_CURRENT latest known version
	ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_VERSION_FORCE_UINT32 ZeImmediateCommandListAppendExpVersion = 0x7fffffff                     // ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_IMMEDIATE_COMMAND_LIST_APPEND_EXP_VERSION_* ENUMs

)

type ZeInitDriverTypeDesc

type ZeInitDriverTypeDesc struct {
	Stype ZeStructureType       // Stype [in] type of this structure
	Pnext unsafe.Pointer        // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeInitDriverTypeFlags // Flags [in] driver type init flags. must be a valid combination of ::ze_init_driver_type_flag_t or UINT32_MAX; driver types are init and retrieved based on these init flags in zeInitDrivers().

}

ZeInitDriverTypeDesc (ze_init_driver_type_desc_t) Init Driver Type descriptor

type ZeInitDriverTypeFlags

type ZeInitDriverTypeFlags uint32

ZeInitDriverTypeFlags (ze_init_driver_type_flags_t) Supported driver initialization type flags / / @details / - Bit Field which details the driver types to be initialized and / returned to the user. / - Value Definition: / - 0, do not init or retrieve any drivers. / - ZE_INIT_DRIVER_TYPE_FLAG_GPU, GPU Drivers are Init and driver handles / retrieved. / - ZE_INIT_DRIVER_TYPE_FLAG_NPU, NPU Drivers are Init and driver handles / retrieved. / - ZE_INIT_DRIVER_TYPE_FLAG_GPU | ZE_INIT_DRIVER_TYPE_FLAG_NPU, NPU & GPU / Drivers are Init and driver handles retrieved. / - UINT32_MAX All Drivers of any type are Init and driver handles / retrieved.

const (
	ZE_INIT_DRIVER_TYPE_FLAG_GPU          ZeInitDriverTypeFlags = (1 << 0)   // ZE_INIT_DRIVER_TYPE_FLAG_GPU initialize and retrieve GPU drivers
	ZE_INIT_DRIVER_TYPE_FLAG_NPU          ZeInitDriverTypeFlags = (1 << 1)   // ZE_INIT_DRIVER_TYPE_FLAG_NPU initialize and retrieve NPU drivers
	ZE_INIT_DRIVER_TYPE_FLAG_FORCE_UINT32 ZeInitDriverTypeFlags = 0x7fffffff // ZE_INIT_DRIVER_TYPE_FLAG_FORCE_UINT32 Value marking end of ZE_INIT_DRIVER_TYPE_FLAG_* ENUMs

)

type ZeInitFlags

type ZeInitFlags uint32

ZeInitFlags (ze_init_flags_t) Supported initialization flags

const (
	ZE_INIT_FLAG_GPU_ONLY     ZeInitFlags = (1 << 0)   // ZE_INIT_FLAG_GPU_ONLY only initialize GPU drivers
	ZE_INIT_FLAG_VPU_ONLY     ZeInitFlags = (1 << 1)   // ZE_INIT_FLAG_VPU_ONLY only initialize VPU drivers
	ZE_INIT_FLAG_FORCE_UINT32 ZeInitFlags = 0x7fffffff // ZE_INIT_FLAG_FORCE_UINT32 Value marking end of ZE_INIT_FLAG_* ENUMs

)

type ZeInitParams

type ZeInitParams struct {
	Pflags *ZeInitFlags
}

ZeInitParams (ze_init_params_t) Callback function parameters for zeInit / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeIpcEventCounterBasedHandle

type ZeIpcEventCounterBasedHandle struct {
	Data [ZE_MAX_IPC_HANDLE_SIZE]byte // Data [out] Opaque data representing an IPC handle

}

ZeIpcEventCounterBasedHandle (ze_ipc_event_counter_based_handle_t) IPC handle to counter based event

type ZeIpcEventPoolHandle

type ZeIpcEventPoolHandle struct {
	Data [ZE_MAX_IPC_HANDLE_SIZE]byte // Data [out] Opaque data representing an IPC handle

}

ZeIpcEventPoolHandle (ze_ipc_event_pool_handle_t) IPC handle to a event pool allocation

type ZeIpcMemHandle

type ZeIpcMemHandle struct {
	Data [ZE_MAX_IPC_HANDLE_SIZE]byte // Data [out] Opaque data representing an IPC handle

}

ZeIpcMemHandle (ze_ipc_mem_handle_t) IPC handle to a memory allocation

type ZeIpcMemHandleTypeExtDesc

type ZeIpcMemHandleTypeExtDesc struct {
	Stype     ZeStructureType         // Stype [in] type of this structure
	Pnext     unsafe.Pointer          // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Typeflags ZeIpcMemHandleTypeFlags // Typeflags [in] valid combination of ::ze_ipc_mem_handle_type_flag_t

}

ZeIpcMemHandleTypeExtDesc (ze_ipc_mem_handle_type_ext_desc_t) ['IPC Memory Handle Type Extension Descriptor', 'Used in / ::zeMemGetIpcHandleWithProperties, ::zeMemAllocDevice, and / ::zeMemAllocHost, ::zePhysicalMemCreate to specify the IPC memory / handle type to create for this allocation.']

type ZeIpcMemHandleTypeExtVersion

type ZeIpcMemHandleTypeExtVersion uintptr

ZeIpcMemHandleTypeExtVersion (ze_ipc_mem_handle_type_ext_version_t) IPC Memory Handle Type Extension Version(s)

const (
	ZE_IPC_MEM_HANDLE_TYPE_EXT_VERSION_1_0          ZeIpcMemHandleTypeExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IPC_MEM_HANDLE_TYPE_EXT_VERSION_1_0 version 1.0
	ZE_IPC_MEM_HANDLE_TYPE_EXT_VERSION_CURRENT      ZeIpcMemHandleTypeExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_IPC_MEM_HANDLE_TYPE_EXT_VERSION_CURRENT latest known version
	ZE_IPC_MEM_HANDLE_TYPE_EXT_VERSION_FORCE_UINT32 ZeIpcMemHandleTypeExtVersion = 0x7fffffff                     // ZE_IPC_MEM_HANDLE_TYPE_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_IPC_MEM_HANDLE_TYPE_EXT_VERSION_* ENUMs

)

type ZeIpcMemHandleTypeFlags

type ZeIpcMemHandleTypeFlags uint32

ZeIpcMemHandleTypeFlags (ze_ipc_mem_handle_type_flags_t) Supported IPC memory handle type flags

const (
	ZE_IPC_MEM_HANDLE_TYPE_FLAG_DEFAULT           ZeIpcMemHandleTypeFlags = (1 << 0) // ZE_IPC_MEM_HANDLE_TYPE_FLAG_DEFAULT Local IPC memory handle type for use within the same machine.
	ZE_IPC_MEM_HANDLE_TYPE_FLAG_FABRIC_ACCESSIBLE ZeIpcMemHandleTypeFlags = (1 << 1) // ZE_IPC_MEM_HANDLE_TYPE_FLAG_FABRIC_ACCESSIBLE Fabric accessible IPC memory handle type for use across machines via a

	ZE_IPC_MEM_HANDLE_TYPE_FLAG_FORCE_UINT32 ZeIpcMemHandleTypeFlags = 0x7fffffff // ZE_IPC_MEM_HANDLE_TYPE_FLAG_FORCE_UINT32 Value marking end of ZE_IPC_MEM_HANDLE_TYPE_FLAG_* ENUMs

)

type ZeIpcMemoryFlags

type ZeIpcMemoryFlags uint32

ZeIpcMemoryFlags (ze_ipc_memory_flags_t) Supported IPC memory flags

const (
	ZE_IPC_MEMORY_FLAG_BIAS_CACHED   ZeIpcMemoryFlags = (1 << 0)   // ZE_IPC_MEMORY_FLAG_BIAS_CACHED device should cache allocation
	ZE_IPC_MEMORY_FLAG_BIAS_UNCACHED ZeIpcMemoryFlags = (1 << 1)   // ZE_IPC_MEMORY_FLAG_BIAS_UNCACHED device should not cache allocation (UC)
	ZE_IPC_MEMORY_FLAG_FORCE_UINT32  ZeIpcMemoryFlags = 0x7fffffff // ZE_IPC_MEMORY_FLAG_FORCE_UINT32 Value marking end of ZE_IPC_MEMORY_FLAG_* ENUMs

)

type ZeIpcPropertyFlags

type ZeIpcPropertyFlags uint32

ZeIpcPropertyFlags (ze_ipc_property_flags_t) Supported IPC property flags

const (
	ZE_IPC_PROPERTY_FLAG_MEMORY ZeIpcPropertyFlags = (1 << 0) // ZE_IPC_PROPERTY_FLAG_MEMORY Supports passing memory allocations between processes. See

	ZE_IPC_PROPERTY_FLAG_EVENT_POOL ZeIpcPropertyFlags = (1 << 1) // ZE_IPC_PROPERTY_FLAG_EVENT_POOL Supports passing event pools between processes. See

	ZE_IPC_PROPERTY_FLAG_FORCE_UINT32 ZeIpcPropertyFlags = 0x7fffffff // ZE_IPC_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZE_IPC_PROPERTY_FLAG_* ENUMs

)

type ZeKernelAllocationExpProperties

type ZeKernelAllocationExpProperties struct {
	Stype    ZeStructureType // Stype [in] type of this structure
	Pnext    unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Base     uint64          // Base [out] base address of the allocation
	Size     uintptr         // Size [out] size of allocation
	Type     ZeMemoryType    // Type [out] type of allocation
	Argindex uint32          // Argindex [out] kernel argument index for current allocation, -1 for driver internal (not kernel argument) allocations

}

ZeKernelAllocationExpProperties (ze_kernel_allocation_exp_properties_t) Kernel allocation properties

type ZeKernelCallbacks

type ZeKernelCallbacks struct {
	Pfncreatecb                          ZePfnkernelcreatecb
	Pfndestroycb                         ZePfnkerneldestroycb
	Pfnsetcacheconfigcb                  ZePfnkernelsetcacheconfigcb
	Pfnsetgroupsizecb                    ZePfnkernelsetgroupsizecb
	Pfnsuggestgroupsizecb                ZePfnkernelsuggestgroupsizecb
	Pfnsuggestmaxcooperativegroupcountcb ZePfnkernelsuggestmaxcooperativegroupcountcb
	Pfnsetargumentvaluecb                ZePfnkernelsetargumentvaluecb
	Pfnsetindirectaccesscb               ZePfnkernelsetindirectaccesscb
	Pfngetindirectaccesscb               ZePfnkernelgetindirectaccesscb
	Pfngetsourceattributescb             ZePfnkernelgetsourceattributescb
	Pfngetpropertiescb                   ZePfnkernelgetpropertiescb
	Pfngetnamecb                         ZePfnkernelgetnamecb
}

ZeKernelCallbacks (ze_kernel_callbacks_t) Table of Kernel callback functions pointers

type ZeKernelCreateParams

type ZeKernelCreateParams struct {
	Phmodule  *ZeModuleHandle
	Pdesc     **ZeKernelDesc
	Pphkernel **ZeKernelHandle
}

ZeKernelCreateParams (ze_kernel_create_params_t) Callback function parameters for zeKernelCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelDesc

type ZeKernelDesc struct {
	Stype       ZeStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags       ZeKernelFlags   // Flags [in] creation flags. must be 0 (default) or a valid combination of ::ze_kernel_flag_t; default behavior may use driver-based residency.
	Pkernelname *byte           // Pkernelname [in] null-terminated name of kernel in module

}

ZeKernelDesc (ze_kernel_desc_t) Kernel descriptor

type ZeKernelDestroyParams

type ZeKernelDestroyParams struct {
	Phkernel *ZeKernelHandle
}

ZeKernelDestroyParams (ze_kernel_destroy_params_t) Callback function parameters for zeKernelDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelFlags

type ZeKernelFlags uint32

ZeKernelFlags (ze_kernel_flags_t) Supported kernel creation flags

const (
	ZE_KERNEL_FLAG_FORCE_RESIDENCY    ZeKernelFlags = (1 << 0) // ZE_KERNEL_FLAG_FORCE_RESIDENCY force all device allocations to be resident during execution
	ZE_KERNEL_FLAG_EXPLICIT_RESIDENCY ZeKernelFlags = (1 << 1) // ZE_KERNEL_FLAG_EXPLICIT_RESIDENCY application is responsible for all residency of device allocations.

	ZE_KERNEL_FLAG_FORCE_UINT32 ZeKernelFlags = 0x7fffffff // ZE_KERNEL_FLAG_FORCE_UINT32 Value marking end of ZE_KERNEL_FLAG_* ENUMs

)

type ZeKernelGetAllocationPropertiesExpVersion

type ZeKernelGetAllocationPropertiesExpVersion uintptr

ZeKernelGetAllocationPropertiesExpVersion (ze_kernel_get_allocation_properties_exp_version_t) Get Kernel Allocation Properties Extension Version(s)

const (
	ZE_KERNEL_GET_ALLOCATION_PROPERTIES_EXP_VERSION_1_0          ZeKernelGetAllocationPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_KERNEL_GET_ALLOCATION_PROPERTIES_EXP_VERSION_1_0 version 1.0
	ZE_KERNEL_GET_ALLOCATION_PROPERTIES_EXP_VERSION_CURRENT      ZeKernelGetAllocationPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_KERNEL_GET_ALLOCATION_PROPERTIES_EXP_VERSION_CURRENT latest known version
	ZE_KERNEL_GET_ALLOCATION_PROPERTIES_EXP_VERSION_FORCE_UINT32 ZeKernelGetAllocationPropertiesExpVersion = 0x7fffffff                     // ZE_KERNEL_GET_ALLOCATION_PROPERTIES_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_KERNEL_GET_ALLOCATION_PROPERTIES_EXP_VERSION_* ENUMs

)

type ZeKernelGetBinaryExpVersion

type ZeKernelGetBinaryExpVersion uintptr

ZeKernelGetBinaryExpVersion (ze_kernel_get_binary_exp_version_t) Get Kernel Binary Extension Version(s)

const (
	ZE_KERNEL_GET_BINARY_EXP_VERSION_1_0          ZeKernelGetBinaryExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_KERNEL_GET_BINARY_EXP_VERSION_1_0 version 1.0
	ZE_KERNEL_GET_BINARY_EXP_VERSION_CURRENT      ZeKernelGetBinaryExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_KERNEL_GET_BINARY_EXP_VERSION_CURRENT latest known version
	ZE_KERNEL_GET_BINARY_EXP_VERSION_FORCE_UINT32 ZeKernelGetBinaryExpVersion = 0x7fffffff                     // ZE_KERNEL_GET_BINARY_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_KERNEL_GET_BINARY_EXP_VERSION_* ENUMs

)

type ZeKernelGetIndirectAccessParams

type ZeKernelGetIndirectAccessParams struct {
	Phkernel *ZeKernelHandle
	Ppflags  **ZeKernelIndirectAccessFlags
}

ZeKernelGetIndirectAccessParams (ze_kernel_get_indirect_access_params_t) Callback function parameters for zeKernelGetIndirectAccess / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelGetNameParams

type ZeKernelGetNameParams struct {
	Phkernel *ZeKernelHandle
	Ppsize   **uintptr
	Ppname   **byte
}

ZeKernelGetNameParams (ze_kernel_get_name_params_t) Callback function parameters for zeKernelGetName / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelGetPropertiesParams

type ZeKernelGetPropertiesParams struct {
	Phkernel           *ZeKernelHandle
	Ppkernelproperties **ZeKernelProperties
}

ZeKernelGetPropertiesParams (ze_kernel_get_properties_params_t) Callback function parameters for zeKernelGetProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelGetSourceAttributesParams

type ZeKernelGetSourceAttributesParams struct {
	Phkernel *ZeKernelHandle
	Ppsize   **uint32
	Ppstring ***byte
}

ZeKernelGetSourceAttributesParams (ze_kernel_get_source_attributes_params_t) Callback function parameters for zeKernelGetSourceAttributes / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelHandle

type ZeKernelHandle uintptr

ZeKernelHandle (ze_kernel_handle_t) Handle of driver's kernel object

type ZeKernelIndirectAccessFlags

type ZeKernelIndirectAccessFlags uint32

ZeKernelIndirectAccessFlags (ze_kernel_indirect_access_flags_t) Kernel indirect access flags

const (
	ZE_KERNEL_INDIRECT_ACCESS_FLAG_HOST         ZeKernelIndirectAccessFlags = (1 << 0)   // ZE_KERNEL_INDIRECT_ACCESS_FLAG_HOST Indicates that the kernel accesses host allocations indirectly.
	ZE_KERNEL_INDIRECT_ACCESS_FLAG_DEVICE       ZeKernelIndirectAccessFlags = (1 << 1)   // ZE_KERNEL_INDIRECT_ACCESS_FLAG_DEVICE Indicates that the kernel accesses device allocations indirectly.
	ZE_KERNEL_INDIRECT_ACCESS_FLAG_SHARED       ZeKernelIndirectAccessFlags = (1 << 2)   // ZE_KERNEL_INDIRECT_ACCESS_FLAG_SHARED Indicates that the kernel accesses shared allocations indirectly.
	ZE_KERNEL_INDIRECT_ACCESS_FLAG_FORCE_UINT32 ZeKernelIndirectAccessFlags = 0x7fffffff // ZE_KERNEL_INDIRECT_ACCESS_FLAG_FORCE_UINT32 Value marking end of ZE_KERNEL_INDIRECT_ACCESS_FLAG_* ENUMs

)

type ZeKernelMaxGroupSizeExtProperties

type ZeKernelMaxGroupSizeExtProperties ZeKernelMaxGroupSizePropertiesExt

ZeKernelMaxGroupSizeExtProperties (ze_kernel_max_group_size_ext_properties_t) compiler-independent type

type ZeKernelMaxGroupSizePropertiesExt

type ZeKernelMaxGroupSizePropertiesExt struct {
	Stype        ZeStructureType // Stype [in] type of this structure
	Pnext        unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Maxgroupsize uint32          // Maxgroupsize [out] maximum group size that can be used to execute the kernel. This value may be less than or equal to the `maxTotalGroupSize` member of ::ze_device_compute_properties_t.

}

ZeKernelMaxGroupSizePropertiesExt (ze_kernel_max_group_size_properties_ext_t) Additional kernel max group size properties / / @details / - This structure may be passed to ::zeKernelGetProperties, via the / `pNext` member of ::ze_kernel_properties_t, to query additional kernel / max group size properties.

type ZeKernelMaxGroupSizePropertiesExtVersion

type ZeKernelMaxGroupSizePropertiesExtVersion uintptr

ZeKernelMaxGroupSizePropertiesExtVersion (ze_kernel_max_group_size_properties_ext_version_t) Kernel Max Group Size Properties Extension Version(s)

const (
	ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_VERSION_1_0          ZeKernelMaxGroupSizePropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_VERSION_1_0 version 1.0
	ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_VERSION_CURRENT      ZeKernelMaxGroupSizePropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_VERSION_CURRENT latest known version
	ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_VERSION_FORCE_UINT32 ZeKernelMaxGroupSizePropertiesExtVersion = 0x7fffffff                     // ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_KERNEL_MAX_GROUP_SIZE_PROPERTIES_EXT_VERSION_* ENUMs

)

type ZeKernelPreferredGroupSizeProperties

type ZeKernelPreferredGroupSizeProperties struct {
	Stype             ZeStructureType // Stype [in] type of this structure
	Pnext             unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Preferredmultiple uint32          // Preferredmultiple [out] preferred group size multiple

}

ZeKernelPreferredGroupSizeProperties (ze_kernel_preferred_group_size_properties_t) Additional kernel preferred group size properties / / @details / - This structure may be passed to ::zeKernelGetProperties, via the / `pNext` member of ::ze_kernel_properties_t, to query additional kernel / preferred group size properties.

type ZeKernelProperties

type ZeKernelProperties struct {
	Stype                ZeStructureType // Stype [in] type of this structure
	Pnext                unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Numkernelargs        uint32          // Numkernelargs [out] number of kernel arguments.
	Requiredgroupsizex   uint32          // Requiredgroupsizex [out] required group size in the X dimension, or zero if there is no required group size
	Requiredgroupsizey   uint32          // Requiredgroupsizey [out] required group size in the Y dimension, or zero if there is no required group size
	Requiredgroupsizez   uint32          // Requiredgroupsizez [out] required group size in the Z dimension, or zero if there is no required group size
	Requirednumsubgroups uint32          // Requirednumsubgroups [out] required number of subgroups per thread group, or zero if there is no required number of subgroups
	Requiredsubgroupsize uint32          // Requiredsubgroupsize [out] required subgroup size, or zero if there is no required subgroup size
	Maxsubgroupsize      uint32          // Maxsubgroupsize [out] maximum subgroup size
	Maxnumsubgroups      uint32          // Maxnumsubgroups [out] maximum number of subgroups per thread group
	Localmemsize         uint32          // Localmemsize [out] local memory size used by each thread group
	Privatememsize       uint32          // Privatememsize [out] private memory size allocated by compiler used by each thread
	Spillmemsize         uint32          // Spillmemsize [out] spill memory size allocated by compiler
	Uuid                 ZeKernelUuid    // Uuid [out] universal unique identifier.

}

ZeKernelProperties (ze_kernel_properties_t) Kernel properties

type ZeKernelSetArgumentValueParams

type ZeKernelSetArgumentValueParams struct {
	Phkernel   *ZeKernelHandle
	Pargindex  *uint32
	Pargsize   *uintptr
	Ppargvalue *unsafe.Pointer
}

ZeKernelSetArgumentValueParams (ze_kernel_set_argument_value_params_t) Callback function parameters for zeKernelSetArgumentValue / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelSetCacheConfigParams

type ZeKernelSetCacheConfigParams struct {
	Phkernel *ZeKernelHandle
	Pflags   *ZeCacheConfigFlags
}

ZeKernelSetCacheConfigParams (ze_kernel_set_cache_config_params_t) Callback function parameters for zeKernelSetCacheConfig / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelSetGroupSizeParams

type ZeKernelSetGroupSizeParams struct {
	Phkernel    *ZeKernelHandle
	Pgroupsizex *uint32
	Pgroupsizey *uint32
	Pgroupsizez *uint32
}

ZeKernelSetGroupSizeParams (ze_kernel_set_group_size_params_t) Callback function parameters for zeKernelSetGroupSize / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelSetIndirectAccessParams

type ZeKernelSetIndirectAccessParams struct {
	Phkernel *ZeKernelHandle
	Pflags   *ZeKernelIndirectAccessFlags
}

ZeKernelSetIndirectAccessParams (ze_kernel_set_indirect_access_params_t) Callback function parameters for zeKernelSetIndirectAccess / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelSuggestGroupSizeParams

type ZeKernelSuggestGroupSizeParams struct {
	Phkernel     *ZeKernelHandle
	Pglobalsizex *uint32
	Pglobalsizey *uint32
	Pglobalsizez *uint32
	Pgroupsizex  **uint32
	Pgroupsizey  **uint32
	Pgroupsizez  **uint32
}

ZeKernelSuggestGroupSizeParams (ze_kernel_suggest_group_size_params_t) Callback function parameters for zeKernelSuggestGroupSize / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelSuggestMaxCooperativeGroupCountParams

type ZeKernelSuggestMaxCooperativeGroupCountParams struct {
	Phkernel         *ZeKernelHandle
	Ptotalgroupcount **uint32
}

ZeKernelSuggestMaxCooperativeGroupCountParams (ze_kernel_suggest_max_cooperative_group_count_params_t) Callback function parameters for zeKernelSuggestMaxCooperativeGroupCount / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeKernelTimestampData

type ZeKernelTimestampData struct {
	Kernelstart uint64 // Kernelstart [out] device clock at start of kernel execution
	Kernelend   uint64 // Kernelend [out] device clock at end of kernel execution

}

ZeKernelTimestampData (ze_kernel_timestamp_data_t) Kernel timestamp clock data / / @details / - The timestamp frequency can be queried from the `timerResolution` / member of ::ze_device_properties_t. / - The number of valid bits in the timestamp value can be queried from / the `kernelTimestampValidBits` member of ::ze_device_properties_t.

type ZeKernelTimestampResult

type ZeKernelTimestampResult struct {
	Global  ZeKernelTimestampData // Global [out] wall-clock data
	Context ZeKernelTimestampData // Context [out] context-active data; only includes clocks while device context was actively executing.

}

ZeKernelTimestampResult (ze_kernel_timestamp_result_t) Kernel timestamp result

type ZeKernelUuid

type ZeKernelUuid struct {
	Kid [ZE_MAX_KERNEL_UUID_SIZE]uint8 // Kid [out] opaque data representing a kernel UUID
	Mid [ZE_MAX_MODULE_UUID_SIZE]uint8 // Mid [out] opaque data representing the kernel's module UUID

}

ZeKernelUuid (ze_kernel_uuid_t) Kernel universal unique id (UUID)

type ZeLatencyUnit

type ZeLatencyUnit uintptr

ZeLatencyUnit (ze_latency_unit_t) Latency unit

const (
	ZE_LATENCY_UNIT_UNKNOWN ZeLatencyUnit = 0 // ZE_LATENCY_UNIT_UNKNOWN The unit used for latency is unknown
	ZE_LATENCY_UNIT_NANOSEC ZeLatencyUnit = 1 // ZE_LATENCY_UNIT_NANOSEC Latency is provided in nanosecs
	ZE_LATENCY_UNIT_CLOCK   ZeLatencyUnit = 2 // ZE_LATENCY_UNIT_CLOCK Latency is provided in clocks
	ZE_LATENCY_UNIT_HOP     ZeLatencyUnit = 3 // ZE_LATENCY_UNIT_HOP Latency is provided in hops (normalized so that the lowest latency

	ZE_LATENCY_UNIT_FORCE_UINT32 ZeLatencyUnit = 0x7fffffff // ZE_LATENCY_UNIT_FORCE_UINT32 Value marking end of ZE_LATENCY_UNIT_* ENUMs

)

type ZeLinkageInspectionExtDesc

type ZeLinkageInspectionExtDesc struct {
	Stype ZeStructureType             // Stype [in] type of this structure
	Pnext unsafe.Pointer              // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeLinkageInspectionExtFlags // Flags [in] flags specifying module linkage inspection. must be 0 (default) or a valid combination of ::ze_linkage_inspection_ext_flag_t.

}

ZeLinkageInspectionExtDesc (ze_linkage_inspection_ext_desc_t) Module linkage inspection descriptor / / @details / - This structure may be passed to ::zeModuleInspectLinkageExt.

type ZeLinkageInspectionExtFlags

type ZeLinkageInspectionExtFlags uint32

ZeLinkageInspectionExtFlags (ze_linkage_inspection_ext_flags_t) Supported module linkage inspection flags

const (
	ZE_LINKAGE_INSPECTION_EXT_FLAG_IMPORTS              ZeLinkageInspectionExtFlags = (1 << 0)   // ZE_LINKAGE_INSPECTION_EXT_FLAG_IMPORTS List all imports of modules
	ZE_LINKAGE_INSPECTION_EXT_FLAG_UNRESOLVABLE_IMPORTS ZeLinkageInspectionExtFlags = (1 << 1)   // ZE_LINKAGE_INSPECTION_EXT_FLAG_UNRESOLVABLE_IMPORTS List all imports of modules that do not have a corresponding export
	ZE_LINKAGE_INSPECTION_EXT_FLAG_EXPORTS              ZeLinkageInspectionExtFlags = (1 << 2)   // ZE_LINKAGE_INSPECTION_EXT_FLAG_EXPORTS List all exports of modules
	ZE_LINKAGE_INSPECTION_EXT_FLAG_FORCE_UINT32         ZeLinkageInspectionExtFlags = 0x7fffffff // ZE_LINKAGE_INSPECTION_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_LINKAGE_INSPECTION_EXT_FLAG_* ENUMs

)

type ZeLinkageInspectionExtVersion

type ZeLinkageInspectionExtVersion uintptr

ZeLinkageInspectionExtVersion (ze_linkage_inspection_ext_version_t) Linkage Inspection Extension Version(s)

const (
	ZE_LINKAGE_INSPECTION_EXT_VERSION_1_0          ZeLinkageInspectionExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_LINKAGE_INSPECTION_EXT_VERSION_1_0 version 1.0
	ZE_LINKAGE_INSPECTION_EXT_VERSION_CURRENT      ZeLinkageInspectionExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_LINKAGE_INSPECTION_EXT_VERSION_CURRENT latest known version
	ZE_LINKAGE_INSPECTION_EXT_VERSION_FORCE_UINT32 ZeLinkageInspectionExtVersion = 0x7fffffff                     // ZE_LINKAGE_INSPECTION_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_LINKAGE_INSPECTION_EXT_VERSION_* ENUMs

)

type ZeLinkonceOdrExtVersion

type ZeLinkonceOdrExtVersion uintptr

ZeLinkonceOdrExtVersion (ze_linkonce_odr_ext_version_t) Linkonce ODR Extension Version(s)

const (
	ZE_LINKONCE_ODR_EXT_VERSION_1_0          ZeLinkonceOdrExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_LINKONCE_ODR_EXT_VERSION_1_0 version 1.0
	ZE_LINKONCE_ODR_EXT_VERSION_CURRENT      ZeLinkonceOdrExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_LINKONCE_ODR_EXT_VERSION_CURRENT latest known version
	ZE_LINKONCE_ODR_EXT_VERSION_FORCE_UINT32 ZeLinkonceOdrExtVersion = 0x7fffffff                     // ZE_LINKONCE_ODR_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_LINKONCE_ODR_EXT_VERSION_* ENUMs

)

type ZeMemAllocDeviceParams

type ZeMemAllocDeviceParams struct {
	Phcontext   *ZeContextHandle
	PdeviceDesc **ZeDeviceMemAllocDesc
	Psize       *uintptr
	Palignment  *uintptr
	Phdevice    *ZeDeviceHandle
	Ppptr       **unsafe.Pointer
}

ZeMemAllocDeviceParams (ze_mem_alloc_device_params_t) Callback function parameters for zeMemAllocDevice / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemAllocHostParams

type ZeMemAllocHostParams struct {
	Phcontext  *ZeContextHandle
	PhostDesc  **ZeHostMemAllocDesc
	Psize      *uintptr
	Palignment *uintptr
	Ppptr      **unsafe.Pointer
}

ZeMemAllocHostParams (ze_mem_alloc_host_params_t) Callback function parameters for zeMemAllocHost / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemAllocSharedParams

type ZeMemAllocSharedParams struct {
	Phcontext   *ZeContextHandle
	PdeviceDesc **ZeDeviceMemAllocDesc
	PhostDesc   **ZeHostMemAllocDesc
	Psize       *uintptr
	Palignment  *uintptr
	Phdevice    *ZeDeviceHandle
	Ppptr       **unsafe.Pointer
}

ZeMemAllocSharedParams (ze_mem_alloc_shared_params_t) Callback function parameters for zeMemAllocShared / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemCallbacks

type ZeMemCallbacks struct {
	Pfnallocsharedcb        ZePfnmemallocsharedcb
	Pfnallocdevicecb        ZePfnmemallocdevicecb
	Pfnallochostcb          ZePfnmemallochostcb
	Pfnfreecb               ZePfnmemfreecb
	Pfngetallocpropertiescb ZePfnmemgetallocpropertiescb
	Pfngetaddressrangecb    ZePfnmemgetaddressrangecb
	Pfngetipchandlecb       ZePfnmemgetipchandlecb
	Pfnopenipchandlecb      ZePfnmemopenipchandlecb
	Pfncloseipchandlecb     ZePfnmemcloseipchandlecb
}

ZeMemCallbacks (ze_mem_callbacks_t) Table of Mem callback functions pointers

type ZeMemCloseIpcHandleParams

type ZeMemCloseIpcHandleParams struct {
	Phcontext *ZeContextHandle
	Pptr      *unsafe.Pointer
}

ZeMemCloseIpcHandleParams (ze_mem_close_ipc_handle_params_t) Callback function parameters for zeMemCloseIpcHandle / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemFreeParams

type ZeMemFreeParams struct {
	Phcontext *ZeContextHandle
	Pptr      *unsafe.Pointer
}

ZeMemFreeParams (ze_mem_free_params_t) Callback function parameters for zeMemFree / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemGetAddressRangeParams

type ZeMemGetAddressRangeParams struct {
	Phcontext *ZeContextHandle
	Pptr      *unsafe.Pointer
	Ppbase    **unsafe.Pointer
	Ppsize    **uintptr
}

ZeMemGetAddressRangeParams (ze_mem_get_address_range_params_t) Callback function parameters for zeMemGetAddressRange / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemGetAllocPropertiesParams

type ZeMemGetAllocPropertiesParams struct {
	Phcontext            *ZeContextHandle
	Pptr                 *unsafe.Pointer
	Ppmemallocproperties **ZeMemoryAllocationProperties
	Pphdevice            **ZeDeviceHandle
}

ZeMemGetAllocPropertiesParams (ze_mem_get_alloc_properties_params_t) Callback function parameters for zeMemGetAllocProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemGetIpcHandleParams

type ZeMemGetIpcHandleParams struct {
	Phcontext   *ZeContextHandle
	Pptr        *unsafe.Pointer
	Ppipchandle **ZeIpcMemHandle
}

ZeMemGetIpcHandleParams (ze_mem_get_ipc_handle_params_t) Callback function parameters for zeMemGetIpcHandle / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemOpenIpcHandleParams

type ZeMemOpenIpcHandleParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
	Phandle   *ZeIpcMemHandle
	Pflags    *ZeIpcMemoryFlags
	Ppptr     **unsafe.Pointer
}

ZeMemOpenIpcHandleParams (ze_mem_open_ipc_handle_params_t) Callback function parameters for zeMemOpenIpcHandle / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeMemoryAccessAttribute

type ZeMemoryAccessAttribute uintptr

ZeMemoryAccessAttribute (ze_memory_access_attribute_t) Virtual memory page access attributes

const (
	ZE_MEMORY_ACCESS_ATTRIBUTE_NONE         ZeMemoryAccessAttribute = 0          // ZE_MEMORY_ACCESS_ATTRIBUTE_NONE Indicates the memory page is inaccessible.
	ZE_MEMORY_ACCESS_ATTRIBUTE_READWRITE    ZeMemoryAccessAttribute = 1          // ZE_MEMORY_ACCESS_ATTRIBUTE_READWRITE Indicates the memory page supports read write access.
	ZE_MEMORY_ACCESS_ATTRIBUTE_READONLY     ZeMemoryAccessAttribute = 2          // ZE_MEMORY_ACCESS_ATTRIBUTE_READONLY Indicates the memory page supports read-only access.
	ZE_MEMORY_ACCESS_ATTRIBUTE_FORCE_UINT32 ZeMemoryAccessAttribute = 0x7fffffff // ZE_MEMORY_ACCESS_ATTRIBUTE_FORCE_UINT32 Value marking end of ZE_MEMORY_ACCESS_ATTRIBUTE_* ENUMs

)

type ZeMemoryAccessCapFlags

type ZeMemoryAccessCapFlags uint32

ZeMemoryAccessCapFlags (ze_memory_access_cap_flags_t) Memory access capability flags / / @details / - Supported access capabilities for different types of memory / allocations

const (
	ZE_MEMORY_ACCESS_CAP_FLAG_RW                ZeMemoryAccessCapFlags = (1 << 0)   // ZE_MEMORY_ACCESS_CAP_FLAG_RW Supports load/store access
	ZE_MEMORY_ACCESS_CAP_FLAG_ATOMIC            ZeMemoryAccessCapFlags = (1 << 1)   // ZE_MEMORY_ACCESS_CAP_FLAG_ATOMIC Supports atomic access
	ZE_MEMORY_ACCESS_CAP_FLAG_CONCURRENT        ZeMemoryAccessCapFlags = (1 << 2)   // ZE_MEMORY_ACCESS_CAP_FLAG_CONCURRENT Supports concurrent access
	ZE_MEMORY_ACCESS_CAP_FLAG_CONCURRENT_ATOMIC ZeMemoryAccessCapFlags = (1 << 3)   // ZE_MEMORY_ACCESS_CAP_FLAG_CONCURRENT_ATOMIC Supports concurrent atomic access
	ZE_MEMORY_ACCESS_CAP_FLAG_FORCE_UINT32      ZeMemoryAccessCapFlags = 0x7fffffff // ZE_MEMORY_ACCESS_CAP_FLAG_FORCE_UINT32 Value marking end of ZE_MEMORY_ACCESS_CAP_FLAG_* ENUMs

)

type ZeMemoryAdvice

type ZeMemoryAdvice uintptr

ZeMemoryAdvice (ze_memory_advice_t) Supported memory advice hints

const (
	ZE_MEMORY_ADVICE_SET_READ_MOSTLY                        ZeMemoryAdvice = 0 // ZE_MEMORY_ADVICE_SET_READ_MOSTLY hint that memory will be read from frequently and written to rarely
	ZE_MEMORY_ADVICE_CLEAR_READ_MOSTLY                      ZeMemoryAdvice = 1 // ZE_MEMORY_ADVICE_CLEAR_READ_MOSTLY removes the effect of ::ZE_MEMORY_ADVICE_SET_READ_MOSTLY
	ZE_MEMORY_ADVICE_SET_PREFERRED_LOCATION                 ZeMemoryAdvice = 2 // ZE_MEMORY_ADVICE_SET_PREFERRED_LOCATION hint that the preferred memory location is the specified device
	ZE_MEMORY_ADVICE_CLEAR_PREFERRED_LOCATION               ZeMemoryAdvice = 3 // ZE_MEMORY_ADVICE_CLEAR_PREFERRED_LOCATION removes the effect of ::ZE_MEMORY_ADVICE_SET_PREFERRED_LOCATION
	ZE_MEMORY_ADVICE_SET_NON_ATOMIC_MOSTLY                  ZeMemoryAdvice = 4 // ZE_MEMORY_ADVICE_SET_NON_ATOMIC_MOSTLY hints that memory will mostly be accessed non-atomically
	ZE_MEMORY_ADVICE_CLEAR_NON_ATOMIC_MOSTLY                ZeMemoryAdvice = 5 // ZE_MEMORY_ADVICE_CLEAR_NON_ATOMIC_MOSTLY removes the effect of ::ZE_MEMORY_ADVICE_SET_NON_ATOMIC_MOSTLY
	ZE_MEMORY_ADVICE_BIAS_CACHED                            ZeMemoryAdvice = 6 // ZE_MEMORY_ADVICE_BIAS_CACHED hints that memory should be cached
	ZE_MEMORY_ADVICE_BIAS_UNCACHED                          ZeMemoryAdvice = 7 // ZE_MEMORY_ADVICE_BIAS_UNCACHED hints that memory should be not be cached
	ZE_MEMORY_ADVICE_SET_SYSTEM_MEMORY_PREFERRED_LOCATION   ZeMemoryAdvice = 8 // ZE_MEMORY_ADVICE_SET_SYSTEM_MEMORY_PREFERRED_LOCATION hint that the preferred memory location is host memory
	ZE_MEMORY_ADVICE_CLEAR_SYSTEM_MEMORY_PREFERRED_LOCATION ZeMemoryAdvice = 9 // ZE_MEMORY_ADVICE_CLEAR_SYSTEM_MEMORY_PREFERRED_LOCATION removes the effect of

	ZE_MEMORY_ADVICE_FORCE_UINT32 ZeMemoryAdvice = 0x7fffffff // ZE_MEMORY_ADVICE_FORCE_UINT32 Value marking end of ZE_MEMORY_ADVICE_* ENUMs

)

type ZeMemoryAllocationProperties

type ZeMemoryAllocationProperties struct {
	Stype    ZeStructureType // Stype [in] type of this structure
	Pnext    unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type     ZeMemoryType    // Type [out] type of allocated memory
	Id       uint64          // Id [out] identifier for this allocation
	Pagesize uint64          // Pagesize [out] page size used for allocation

}

ZeMemoryAllocationProperties (ze_memory_allocation_properties_t) Memory allocation properties queried using ::zeMemGetAllocProperties

type ZeMemoryAtomicAttrExpFlags

type ZeMemoryAtomicAttrExpFlags uint32

ZeMemoryAtomicAttrExpFlags (ze_memory_atomic_attr_exp_flags_t) atomic access attribute flags

const (
	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_ATOMICS      ZeMemoryAtomicAttrExpFlags = (1 << 0) // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_ATOMICS Atomics on the pointer are not allowed
	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_HOST_ATOMICS ZeMemoryAtomicAttrExpFlags = (1 << 1) // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_HOST_ATOMICS Host atomics on the pointer are not allowed
	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_HOST_ATOMICS    ZeMemoryAtomicAttrExpFlags = (1 << 2) // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_HOST_ATOMICS Host atomics on the pointer are allowed. Requires

	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_DEVICE_ATOMICS ZeMemoryAtomicAttrExpFlags = (1 << 3) // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_DEVICE_ATOMICS Device atomics on the pointer are not allowed
	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_DEVICE_ATOMICS    ZeMemoryAtomicAttrExpFlags = (1 << 4) // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_DEVICE_ATOMICS Device atomics on the pointer are allowed. Requires

	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_SYSTEM_ATOMICS ZeMemoryAtomicAttrExpFlags = (1 << 5) // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_NO_SYSTEM_ATOMICS Concurrent atomics on the pointer from both host and device are not

	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_SYSTEM_ATOMICS ZeMemoryAtomicAttrExpFlags = (1 << 6) // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_SYSTEM_ATOMICS Concurrent atomics on the pointer from both host and device are

	ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_FORCE_UINT32 ZeMemoryAtomicAttrExpFlags = 0x7fffffff // ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_MEMORY_ATOMIC_ATTR_EXP_FLAG_* ENUMs

)

type ZeMemoryCompressionHintsExtDesc

type ZeMemoryCompressionHintsExtDesc struct {
	Stype ZeStructureType                  // Stype [in] type of this structure
	Pnext unsafe.Pointer                   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeMemoryCompressionHintsExtFlags // Flags [in] flags specifying if allocation should be compressible or not. Must be set to one of the ::ze_memory_compression_hints_ext_flag_t;

}

ZeMemoryCompressionHintsExtDesc (ze_memory_compression_hints_ext_desc_t) Compression hints memory allocation descriptor / / @details / - This structure may be passed to ::zeMemAllocShared or / ::zeMemAllocDevice, via the `pNext` member of / ::ze_device_mem_alloc_desc_t. / - This structure may be passed to ::zeMemAllocHost, via the `pNext` / member of ::ze_host_mem_alloc_desc_t. / - This structure may be passed to ::zeImageCreate, via the `pNext` / member of ::ze_image_desc_t.

type ZeMemoryCompressionHintsExtFlags

type ZeMemoryCompressionHintsExtFlags uint32

ZeMemoryCompressionHintsExtFlags (ze_memory_compression_hints_ext_flags_t) Supported memory compression hints flags

const (
	ZE_MEMORY_COMPRESSION_HINTS_EXT_FLAG_COMPRESSED   ZeMemoryCompressionHintsExtFlags = (1 << 0)   // ZE_MEMORY_COMPRESSION_HINTS_EXT_FLAG_COMPRESSED Hint Driver implementation to make allocation compressible
	ZE_MEMORY_COMPRESSION_HINTS_EXT_FLAG_UNCOMPRESSED ZeMemoryCompressionHintsExtFlags = (1 << 1)   // ZE_MEMORY_COMPRESSION_HINTS_EXT_FLAG_UNCOMPRESSED Hint Driver implementation to make allocation not compressible
	ZE_MEMORY_COMPRESSION_HINTS_EXT_FLAG_FORCE_UINT32 ZeMemoryCompressionHintsExtFlags = 0x7fffffff // ZE_MEMORY_COMPRESSION_HINTS_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_MEMORY_COMPRESSION_HINTS_EXT_FLAG_* ENUMs

)

type ZeMemoryCompressionHintsExtVersion

type ZeMemoryCompressionHintsExtVersion uintptr

ZeMemoryCompressionHintsExtVersion (ze_memory_compression_hints_ext_version_t) Memory Compression Hints Extension Version(s)

const (
	ZE_MEMORY_COMPRESSION_HINTS_EXT_VERSION_1_0          ZeMemoryCompressionHintsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_MEMORY_COMPRESSION_HINTS_EXT_VERSION_1_0 version 1.0
	ZE_MEMORY_COMPRESSION_HINTS_EXT_VERSION_CURRENT      ZeMemoryCompressionHintsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_MEMORY_COMPRESSION_HINTS_EXT_VERSION_CURRENT latest known version
	ZE_MEMORY_COMPRESSION_HINTS_EXT_VERSION_FORCE_UINT32 ZeMemoryCompressionHintsExtVersion = 0x7fffffff                     // ZE_MEMORY_COMPRESSION_HINTS_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_MEMORY_COMPRESSION_HINTS_EXT_VERSION_* ENUMs

)

type ZeMemoryFreeExtDesc

type ZeMemoryFreeExtDesc struct {
	Stype      ZeStructureType                  // Stype [in] type of this structure
	Pnext      unsafe.Pointer                   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Freepolicy ZeDriverMemoryFreePolicyExtFlags // Freepolicy [in] flags specifying the memory free policy. must be 0 (default) or a supported ::ze_driver_memory_free_policy_ext_flag_t; default behavior is to free immediately.

}

ZeMemoryFreeExtDesc (ze_memory_free_ext_desc_t) Memory free descriptor with free policy

type ZeMemoryFreePoliciesExtVersion

type ZeMemoryFreePoliciesExtVersion uintptr

ZeMemoryFreePoliciesExtVersion (ze_memory_free_policies_ext_version_t) Memory Free Policies Extension Version(s)

const (
	ZE_MEMORY_FREE_POLICIES_EXT_VERSION_1_0          ZeMemoryFreePoliciesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_MEMORY_FREE_POLICIES_EXT_VERSION_1_0 version 1.0
	ZE_MEMORY_FREE_POLICIES_EXT_VERSION_CURRENT      ZeMemoryFreePoliciesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_MEMORY_FREE_POLICIES_EXT_VERSION_CURRENT latest known version
	ZE_MEMORY_FREE_POLICIES_EXT_VERSION_FORCE_UINT32 ZeMemoryFreePoliciesExtVersion = 0x7fffffff                     // ZE_MEMORY_FREE_POLICIES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_MEMORY_FREE_POLICIES_EXT_VERSION_* ENUMs

)

type ZeMemorySubAllocationsExpProperties

type ZeMemorySubAllocationsExpProperties struct {
	Stype           ZeStructureType  // Stype [in] type of this structure
	Pnext           unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Pcount          *uint32          // Pcount [in,out] pointer to the number of sub-allocations. if count is zero, then the driver shall update the value with the total number of sub-allocations on which the allocation has been divided. if count is greater than the number of sub-allocations, then the driver shall update the value with the correct number of sub-allocations.
	Psuballocations *ZeSubAllocation // Psuballocations [in,out][optional][range(0, *pCount)] array of properties for sub-allocations. if count is less than the number of sub-allocations available, then driver shall only retrieve properties for that number of sub-allocations.

}

ZeMemorySubAllocationsExpProperties (ze_memory_sub_allocations_exp_properties_t) Sub-Allocations Properties / / @details / - This structure may be passed to ::zeMemGetAllocProperties, via the / `pNext` member of ::ze_memory_allocation_properties_t.

type ZeMemoryType

type ZeMemoryType uintptr

ZeMemoryType (ze_memory_type_t) Memory allocation type

const (
	ZE_MEMORY_TYPE_UNKNOWN       ZeMemoryType = 0 // ZE_MEMORY_TYPE_UNKNOWN the memory pointed to is of unknown type
	ZE_MEMORY_TYPE_HOST          ZeMemoryType = 1 // ZE_MEMORY_TYPE_HOST the memory pointed to is a host allocation
	ZE_MEMORY_TYPE_DEVICE        ZeMemoryType = 2 // ZE_MEMORY_TYPE_DEVICE the memory pointed to is a device allocation
	ZE_MEMORY_TYPE_SHARED        ZeMemoryType = 3 // ZE_MEMORY_TYPE_SHARED the memory pointed to is a shared ownership allocation
	ZE_MEMORY_TYPE_HOST_IMPORTED ZeMemoryType = 4 // ZE_MEMORY_TYPE_HOST_IMPORTED the memory pointed to is a host allocation created from external

	ZE_MEMORY_TYPE_FORCE_UINT32 ZeMemoryType = 0x7fffffff // ZE_MEMORY_TYPE_FORCE_UINT32 Value marking end of ZE_MEMORY_TYPE_* ENUMs

)

type ZeMetricGlobalTimestampsExpVersion

type ZeMetricGlobalTimestampsExpVersion uintptr

ZeMetricGlobalTimestampsExpVersion (ze_metric_global_timestamps_exp_version_t) Global Metric Timestamps Experimental Extension Version(s)

const (
	ZE_METRIC_GLOBAL_TIMESTAMPS_EXP_VERSION_1_0          ZeMetricGlobalTimestampsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_METRIC_GLOBAL_TIMESTAMPS_EXP_VERSION_1_0 version 1.0
	ZE_METRIC_GLOBAL_TIMESTAMPS_EXP_VERSION_CURRENT      ZeMetricGlobalTimestampsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_METRIC_GLOBAL_TIMESTAMPS_EXP_VERSION_CURRENT latest known version
	ZE_METRIC_GLOBAL_TIMESTAMPS_EXP_VERSION_FORCE_UINT32 ZeMetricGlobalTimestampsExpVersion = 0x7fffffff                     // ZE_METRIC_GLOBAL_TIMESTAMPS_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_METRIC_GLOBAL_TIMESTAMPS_EXP_VERSION_* ENUMs

)

type ZeModuleBuildLogCallbacks

type ZeModuleBuildLogCallbacks struct {
	Pfndestroycb   ZePfnmodulebuildlogdestroycb
	Pfngetstringcb ZePfnmodulebuildloggetstringcb
}

ZeModuleBuildLogCallbacks (ze_module_build_log_callbacks_t) Table of ModuleBuildLog callback functions pointers

type ZeModuleBuildLogDestroyParams

type ZeModuleBuildLogDestroyParams struct {
	Phmodulebuildlog *ZeModuleBuildLogHandle
}

ZeModuleBuildLogDestroyParams (ze_module_build_log_destroy_params_t) Callback function parameters for zeModuleBuildLogDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleBuildLogGetStringParams

type ZeModuleBuildLogGetStringParams struct {
	Phmodulebuildlog *ZeModuleBuildLogHandle
	Ppsize           **uintptr
	Ppbuildlog       **byte
}

ZeModuleBuildLogGetStringParams (ze_module_build_log_get_string_params_t) Callback function parameters for zeModuleBuildLogGetString / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleBuildLogHandle

type ZeModuleBuildLogHandle uintptr

ZeModuleBuildLogHandle (ze_module_build_log_handle_t) Handle of module's build log object

type ZeModuleCallbacks

type ZeModuleCallbacks struct {
	Pfncreatecb             ZePfnmodulecreatecb
	Pfndestroycb            ZePfnmoduledestroycb
	Pfndynamiclinkcb        ZePfnmoduledynamiclinkcb
	Pfngetnativebinarycb    ZePfnmodulegetnativebinarycb
	Pfngetglobalpointercb   ZePfnmodulegetglobalpointercb
	Pfngetkernelnamescb     ZePfnmodulegetkernelnamescb
	Pfngetpropertiescb      ZePfnmodulegetpropertiescb
	Pfngetfunctionpointercb ZePfnmodulegetfunctionpointercb
}

ZeModuleCallbacks (ze_module_callbacks_t) Table of Module callback functions pointers

type ZeModuleConstants

type ZeModuleConstants struct {
	Numconstants    uint32          // Numconstants [in] Number of specialization constants.
	Pconstantids    *uint32         // Pconstantids [in][range(0, numConstants)] Array of IDs that is sized to numConstants.
	Pconstantvalues *unsafe.Pointer // Pconstantvalues [in][range(0, numConstants)] Array of pointers to values that is sized to numConstants.

}

ZeModuleConstants (ze_module_constants_t) Specialization constants - User defined constants

type ZeModuleCreateParams

type ZeModuleCreateParams struct {
	Phcontext   *ZeContextHandle
	Phdevice    *ZeDeviceHandle
	Pdesc       **ZeModuleDesc
	Pphmodule   **ZeModuleHandle
	Pphbuildlog **ZeModuleBuildLogHandle
}

ZeModuleCreateParams (ze_module_create_params_t) Callback function parameters for zeModuleCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleDesc

type ZeModuleDesc struct {
	Stype        ZeStructureType    // Stype [in] type of this structure
	Pnext        unsafe.Pointer     // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Format       ZeModuleFormat     // Format [in] Module format passed in with pInputModule
	Inputsize    uintptr            // Inputsize [in] size of input IL or ISA from pInputModule.
	Pinputmodule *uint8             // Pinputmodule [in] pointer to IL or ISA
	Pbuildflags  *byte              // Pbuildflags [in][optional] string containing one or more (comma-separated) compiler flags. If unsupported, flag is ignored with a warning.  - "-ze-opt-disable"       - Disable optimizations  - "-ze-opt-level"       - Specifies optimization level for compiler. Levels are implementation specific.           - 0 is no optimizations (equivalent to -ze-opt-disable)           - 1 is optimize minimally (may be the same as 2)           - 2 is optimize more (default)  - "-ze-opt-greater-than-4GB-buffer-required"       - Use 64-bit offset calculations for buffers.  - "-ze-opt-large-register-file"       - Increase number of registers available to threads.  - "-ze-opt-has-buffer-offset-arg"       - Extend stateless to stateful optimization to more         cases with the use of additional offset (e.g. 64-bit         pointer to binding table with 32-bit offset).  - "-g"       - Include debugging information.
	Pconstants   *ZeModuleConstants // Pconstants [in][optional] pointer to specialization constants. Valid only for SPIR-V input. This must be set to nullptr if no specialization constants are provided.

}

ZeModuleDesc (ze_module_desc_t) Module descriptor

type ZeModuleDestroyParams

type ZeModuleDestroyParams struct {
	Phmodule *ZeModuleHandle
}

ZeModuleDestroyParams (ze_module_destroy_params_t) Callback function parameters for zeModuleDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleDynamicLinkParams

type ZeModuleDynamicLinkParams struct {
	Pnummodules *uint32
	Pphmodules  **ZeModuleHandle
	Pphlinklog  **ZeModuleBuildLogHandle
}

ZeModuleDynamicLinkParams (ze_module_dynamic_link_params_t) Callback function parameters for zeModuleDynamicLink / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleFormat

type ZeModuleFormat uintptr

ZeModuleFormat (ze_module_format_t) Supported module creation input formats

const (
	ZE_MODULE_FORMAT_IL_SPIRV     ZeModuleFormat = 0          // ZE_MODULE_FORMAT_IL_SPIRV Format is SPIRV IL format
	ZE_MODULE_FORMAT_NATIVE       ZeModuleFormat = 1          // ZE_MODULE_FORMAT_NATIVE Format is device native format
	ZE_MODULE_FORMAT_FORCE_UINT32 ZeModuleFormat = 0x7fffffff // ZE_MODULE_FORMAT_FORCE_UINT32 Value marking end of ZE_MODULE_FORMAT_* ENUMs

)

type ZeModuleGetFunctionPointerParams

type ZeModuleGetFunctionPointerParams struct {
	Phmodule       *ZeModuleHandle
	Ppfunctionname **byte
	Ppfnfunction   **unsafe.Pointer
}

ZeModuleGetFunctionPointerParams (ze_module_get_function_pointer_params_t) Callback function parameters for zeModuleGetFunctionPointer / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleGetGlobalPointerParams

type ZeModuleGetGlobalPointerParams struct {
	Phmodule     *ZeModuleHandle
	Ppglobalname **byte
	Ppsize       **uintptr
	Ppptr        **unsafe.Pointer
}

ZeModuleGetGlobalPointerParams (ze_module_get_global_pointer_params_t) Callback function parameters for zeModuleGetGlobalPointer / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleGetKernelNamesParams

type ZeModuleGetKernelNamesParams struct {
	Phmodule *ZeModuleHandle
	Ppcount  **uint32
	Ppnames  ***byte
}

ZeModuleGetKernelNamesParams (ze_module_get_kernel_names_params_t) Callback function parameters for zeModuleGetKernelNames / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleGetNativeBinaryParams

type ZeModuleGetNativeBinaryParams struct {
	Phmodule             *ZeModuleHandle
	Ppsize               **uintptr
	Ppmodulenativebinary **uint8
}

ZeModuleGetNativeBinaryParams (ze_module_get_native_binary_params_t) Callback function parameters for zeModuleGetNativeBinary / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleGetPropertiesParams

type ZeModuleGetPropertiesParams struct {
	Phmodule           *ZeModuleHandle
	Ppmoduleproperties **ZeModuleProperties
}

ZeModuleGetPropertiesParams (ze_module_get_properties_params_t) Callback function parameters for zeModuleGetProperties / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeModuleHandle

type ZeModuleHandle uintptr

ZeModuleHandle (ze_module_handle_t) Handle of driver's module object

type ZeModuleProgramExpDesc

type ZeModuleProgramExpDesc struct {
	Stype         ZeStructureType     // Stype [in] type of this structure
	Pnext         unsafe.Pointer      // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Count         uint32              // Count [in] Count of input modules
	Inputsizes    *uintptr            // Inputsizes [in][range(0, count)] sizes of each input module in pInputModules.
	Pinputmodules **uint8             // Pinputmodules [in][range(0, count)] pointer to an array of binary modules in format specified as part of ::ze_module_desc_t.
	Pbuildflags   **byte              // Pbuildflags [in][optional][range(0, count)] array of strings containing build flags. See pBuildFlags in ::ze_module_desc_t.
	Pconstants    **ZeModuleConstants // Pconstants [in][optional][range(0, count)] pointer to array of specialization constant strings. Valid only for SPIR-V input. This must be set to nullptr if no specialization constants are provided.

}

ZeModuleProgramExpDesc (ze_module_program_exp_desc_t) Module extended descriptor to support multiple input modules. / / @details / - Implementation must support ::ZE_MODULE_PROGRAM_EXP_NAME extension / - Modules support import and export linkage for functions and global / variables. / - pInputModules, pBuildFlags, and pConstants from ::ze_module_desc_t is / ignored. / - Format in ::ze_module_desc_t needs to be set to / ::ZE_MODULE_FORMAT_IL_SPIRV or ::ZE_MODULE_FORMAT_NATIVE. / - All modules in the list must be of the same format and match the / format specified in ::ze_module_desc_t.

type ZeModuleProgramExpVersion

type ZeModuleProgramExpVersion uintptr

ZeModuleProgramExpVersion (ze_module_program_exp_version_t) Module Program Extension Version(s)

const (
	ZE_MODULE_PROGRAM_EXP_VERSION_1_0          ZeModuleProgramExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_MODULE_PROGRAM_EXP_VERSION_1_0 version 1.0
	ZE_MODULE_PROGRAM_EXP_VERSION_CURRENT      ZeModuleProgramExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_MODULE_PROGRAM_EXP_VERSION_CURRENT latest known version
	ZE_MODULE_PROGRAM_EXP_VERSION_FORCE_UINT32 ZeModuleProgramExpVersion = 0x7fffffff                     // ZE_MODULE_PROGRAM_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_MODULE_PROGRAM_EXP_VERSION_* ENUMs

)

type ZeModuleProperties

type ZeModuleProperties struct {
	Stype ZeStructureType       // Stype [in] type of this structure
	Pnext unsafe.Pointer        // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeModulePropertyFlags // Flags [out] 0 (none) or a valid combination of ::ze_module_property_flag_t

}

ZeModuleProperties (ze_module_properties_t) Module properties

type ZeModulePropertyFlags

type ZeModulePropertyFlags uint32

ZeModulePropertyFlags (ze_module_property_flags_t) Supported module property flags

const (
	ZE_MODULE_PROPERTY_FLAG_IMPORTS ZeModulePropertyFlags = (1 << 0) // ZE_MODULE_PROPERTY_FLAG_IMPORTS Module has imports (i.e. imported global variables and/or kernels).

	ZE_MODULE_PROPERTY_FLAG_FORCE_UINT32 ZeModulePropertyFlags = 0x7fffffff // ZE_MODULE_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZE_MODULE_PROPERTY_FLAG_* ENUMs

)

type ZeMutableCommandExpFlags

type ZeMutableCommandExpFlags uint32

ZeMutableCommandExpFlags (ze_mutable_command_exp_flags_t) Mutable command flags

const (
	ZE_MUTABLE_COMMAND_EXP_FLAG_KERNEL_ARGUMENTS   ZeMutableCommandExpFlags = (1 << 0)   // ZE_MUTABLE_COMMAND_EXP_FLAG_KERNEL_ARGUMENTS kernel arguments
	ZE_MUTABLE_COMMAND_EXP_FLAG_GROUP_COUNT        ZeMutableCommandExpFlags = (1 << 1)   // ZE_MUTABLE_COMMAND_EXP_FLAG_GROUP_COUNT kernel group count
	ZE_MUTABLE_COMMAND_EXP_FLAG_GROUP_SIZE         ZeMutableCommandExpFlags = (1 << 2)   // ZE_MUTABLE_COMMAND_EXP_FLAG_GROUP_SIZE kernel group size
	ZE_MUTABLE_COMMAND_EXP_FLAG_GLOBAL_OFFSET      ZeMutableCommandExpFlags = (1 << 3)   // ZE_MUTABLE_COMMAND_EXP_FLAG_GLOBAL_OFFSET kernel global offset
	ZE_MUTABLE_COMMAND_EXP_FLAG_SIGNAL_EVENT       ZeMutableCommandExpFlags = (1 << 4)   // ZE_MUTABLE_COMMAND_EXP_FLAG_SIGNAL_EVENT command signal event
	ZE_MUTABLE_COMMAND_EXP_FLAG_WAIT_EVENTS        ZeMutableCommandExpFlags = (1 << 5)   // ZE_MUTABLE_COMMAND_EXP_FLAG_WAIT_EVENTS command wait events
	ZE_MUTABLE_COMMAND_EXP_FLAG_KERNEL_INSTRUCTION ZeMutableCommandExpFlags = (1 << 6)   // ZE_MUTABLE_COMMAND_EXP_FLAG_KERNEL_INSTRUCTION command kernel
	ZE_MUTABLE_COMMAND_EXP_FLAG_GRAPH_ARGUMENTS    ZeMutableCommandExpFlags = (1 << 7)   // ZE_MUTABLE_COMMAND_EXP_FLAG_GRAPH_ARGUMENTS graph arguments
	ZE_MUTABLE_COMMAND_EXP_FLAG_FORCE_UINT32       ZeMutableCommandExpFlags = 0x7fffffff // ZE_MUTABLE_COMMAND_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_MUTABLE_COMMAND_EXP_FLAG_* ENUMs

)

type ZeMutableCommandIdExpDesc

type ZeMutableCommandIdExpDesc struct {
	Stype ZeStructureType          // Stype [in] type of this structure
	Pnext unsafe.Pointer           // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeMutableCommandExpFlags // Flags [in] mutable command flags.  - must be 0 (default, equivalent to setting all flags bar kernel instruction), or a valid combination of ::ze_mutable_command_exp_flag_t  - in order to include kernel instruction mutation, ::ZE_MUTABLE_COMMAND_EXP_FLAG_KERNEL_INSTRUCTION must be explictly included

}

ZeMutableCommandIdExpDesc (ze_mutable_command_id_exp_desc_t) Mutable command identifier descriptor

type ZeMutableCommandListExpDesc

type ZeMutableCommandListExpDesc struct {
	Stype ZeStructureType              // Stype [in] type of this structure
	Pnext unsafe.Pointer               // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeMutableCommandListExpFlags // Flags [in] mutable command list flags.  - must be 0 (default) or a valid combination of ::ze_mutable_command_list_exp_flag_t

}

ZeMutableCommandListExpDesc (ze_mutable_command_list_exp_desc_t) Mutable command list descriptor

type ZeMutableCommandListExpFlags

type ZeMutableCommandListExpFlags uint32

ZeMutableCommandListExpFlags (ze_mutable_command_list_exp_flags_t) Mutable command list flags

const (
	ZE_MUTABLE_COMMAND_LIST_EXP_FLAG_RESERVED     ZeMutableCommandListExpFlags = (1 << 0)   // ZE_MUTABLE_COMMAND_LIST_EXP_FLAG_RESERVED reserved
	ZE_MUTABLE_COMMAND_LIST_EXP_FLAG_FORCE_UINT32 ZeMutableCommandListExpFlags = 0x7fffffff // ZE_MUTABLE_COMMAND_LIST_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_MUTABLE_COMMAND_LIST_EXP_FLAG_* ENUMs

)

type ZeMutableCommandListExpProperties

type ZeMutableCommandListExpProperties struct {
	Stype                   ZeStructureType              // Stype [in] type of this structure
	Pnext                   unsafe.Pointer               // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Mutablecommandlistflags ZeMutableCommandListExpFlags // Mutablecommandlistflags [out] mutable command list flags
	Mutablecommandflags     ZeMutableCommandExpFlags     // Mutablecommandflags [out] mutable command flags

}

ZeMutableCommandListExpProperties (ze_mutable_command_list_exp_properties_t) Mutable command list properties

type ZeMutableCommandListExpVersion

type ZeMutableCommandListExpVersion uintptr

ZeMutableCommandListExpVersion (ze_mutable_command_list_exp_version_t) Mutable Command List Extension Version(s)

const (
	ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_1_0          ZeMutableCommandListExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_1_0 version 1.0
	ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_1_1          ZeMutableCommandListExpVersion = ((1 << 16) | (1 & 0x0000ffff)) // ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_1_1 version 1.1
	ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_CURRENT      ZeMutableCommandListExpVersion = ((1 << 16) | (1 & 0x0000ffff)) // ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_CURRENT latest known version
	ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_FORCE_UINT32 ZeMutableCommandListExpVersion = 0x7fffffff                     // ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_MUTABLE_COMMAND_LIST_EXP_VERSION_* ENUMs

)

type ZeMutableCommandsExpDesc

type ZeMutableCommandsExpDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags uint32          // Flags [in] must be 0, this field is reserved for future use

}

ZeMutableCommandsExpDesc (ze_mutable_commands_exp_desc_t) Mutable commands descriptor

type ZeMutableGlobalOffsetExpDesc

type ZeMutableGlobalOffsetExpDesc struct {
	Stype     ZeStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Commandid uint64          // Commandid [in] command identifier
	Offsetx   uint32          // Offsetx [in] global offset for X dimension to use for this kernel
	Offsety   uint32          // Offsety [in] global offset for Y dimension to use for this kernel
	Offsetz   uint32          // Offsetz [in] global offset for Z dimension to use for this kernel

}

ZeMutableGlobalOffsetExpDesc (ze_mutable_global_offset_exp_desc_t) Mutable kernel global offset descriptor

type ZeMutableGraphArgumentExpDesc

type ZeMutableGraphArgumentExpDesc struct {
	Stype     ZeStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Commandid uint64          // Commandid [in] command identifier
	Argindex  uint32          // Argindex [in] graph argument index
	Pargvalue unsafe.Pointer  // Pargvalue [in] pointer to graph argument value

}

ZeMutableGraphArgumentExpDesc (ze_mutable_graph_argument_exp_desc_t) Mutable graph argument descriptor

type ZeMutableGroupCountExpDesc

type ZeMutableGroupCountExpDesc struct {
	Stype       ZeStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Commandid   uint64          // Commandid [in] command identifier
	Pgroupcount *ZeGroupCount   // Pgroupcount [in] pointer to group count

}

ZeMutableGroupCountExpDesc (ze_mutable_group_count_exp_desc_t) Mutable kernel group count descriptor

type ZeMutableGroupSizeExpDesc

type ZeMutableGroupSizeExpDesc struct {
	Stype      ZeStructureType // Stype [in] type of this structure
	Pnext      unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Commandid  uint64          // Commandid [in] command identifier
	Groupsizex uint32          // Groupsizex [in] group size for X dimension to use for the kernel
	Groupsizey uint32          // Groupsizey [in] group size for Y dimension to use for the kernel
	Groupsizez uint32          // Groupsizez [in] group size for Z dimension to use for the kernel

}

ZeMutableGroupSizeExpDesc (ze_mutable_group_size_exp_desc_t) Mutable kernel group size descriptor

type ZeMutableKernelArgumentExpDesc

type ZeMutableKernelArgumentExpDesc struct {
	Stype     ZeStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Commandid uint64          // Commandid [in] command identifier
	Argindex  uint32          // Argindex [in] kernel argument index
	Argsize   uintptr         // Argsize [in] kernel argument size
	Pargvalue unsafe.Pointer  // Pargvalue [in] pointer to kernel argument value

}

ZeMutableKernelArgumentExpDesc (ze_mutable_kernel_argument_exp_desc_t) Mutable kernel argument descriptor

type ZeNativeKernelUuid

type ZeNativeKernelUuid struct {
	Id [ZE_MAX_NATIVE_KERNEL_UUID_SIZE]uint8 // Id [out] opaque data representing a native kernel UUID

}

ZeNativeKernelUuid (ze_native_kernel_uuid_t) Native kernel universal unique id (UUID)

type ZePciAddressExt

type ZePciAddressExt struct {
	Domain   uint32 // Domain [out] PCI domain number
	Bus      uint32 // Bus [out] PCI BDF bus number
	Device   uint32 // Device [out] PCI BDF device number
	Function uint32 // Function [out] PCI BDF function number

}

ZePciAddressExt (ze_pci_address_ext_t) Device PCI address / / @details / - This structure may be passed to ::zeDevicePciGetPropertiesExt as an / attribute of ::ze_pci_ext_properties_t. / - A PCI BDF address is the bus:device:function address of the device and / is useful for locating the device in the PCI switch fabric.

type ZePciExtProperties

type ZePciExtProperties struct {
	Stype    ZeStructureType // Stype [in] type of this structure
	Pnext    unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Address  ZePciAddressExt // Address [out] The BDF address
	Maxspeed ZePciSpeedExt   // Maxspeed [out] Fastest port configuration supported by the device (sum of all lanes)

}

ZePciExtProperties (ze_pci_ext_properties_t) Static PCI properties

type ZePciPropertiesExtVersion

type ZePciPropertiesExtVersion uintptr

ZePciPropertiesExtVersion (ze_pci_properties_ext_version_t) PCI Properties Extension Version(s)

const (
	ZE_PCI_PROPERTIES_EXT_VERSION_1_0          ZePciPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_PCI_PROPERTIES_EXT_VERSION_1_0 version 1.0
	ZE_PCI_PROPERTIES_EXT_VERSION_CURRENT      ZePciPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_PCI_PROPERTIES_EXT_VERSION_CURRENT latest known version
	ZE_PCI_PROPERTIES_EXT_VERSION_FORCE_UINT32 ZePciPropertiesExtVersion = 0x7fffffff                     // ZE_PCI_PROPERTIES_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_PCI_PROPERTIES_EXT_VERSION_* ENUMs

)

type ZePciSpeedExt

type ZePciSpeedExt struct {
	Genversion   int32 // Genversion [out] The link generation. A value of -1 means that this property is unknown.
	Width        int32 // Width [out] The number of lanes. A value of -1 means that this property is unknown.
	Maxbandwidth int64 // Maxbandwidth [out] The theoretical maximum bandwidth in bytes/sec (sum of all lanes). A value of -1 means that this property is unknown.

}

ZePciSpeedExt (ze_pci_speed_ext_t) Device PCI speed

type ZePfncommandlistappendbarriercb

type ZePfncommandlistappendbarriercb uintptr

ZePfncommandlistappendbarriercb (ze_pfnCommandListAppendBarrierCb_t) Callback function-pointer for zeCommandListAppendBarrier / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendeventresetcb

type ZePfncommandlistappendeventresetcb uintptr

ZePfncommandlistappendeventresetcb (ze_pfnCommandListAppendEventResetCb_t) Callback function-pointer for zeCommandListAppendEventReset / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendimagecopycb

type ZePfncommandlistappendimagecopycb uintptr

ZePfncommandlistappendimagecopycb (ze_pfnCommandListAppendImageCopyCb_t) Callback function-pointer for zeCommandListAppendImageCopy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendimagecopyfrommemorycb

type ZePfncommandlistappendimagecopyfrommemorycb uintptr

ZePfncommandlistappendimagecopyfrommemorycb (ze_pfnCommandListAppendImageCopyFromMemoryCb_t) Callback function-pointer for zeCommandListAppendImageCopyFromMemory / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendimagecopyregioncb

type ZePfncommandlistappendimagecopyregioncb uintptr

ZePfncommandlistappendimagecopyregioncb (ze_pfnCommandListAppendImageCopyRegionCb_t) Callback function-pointer for zeCommandListAppendImageCopyRegion / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendimagecopytomemorycb

type ZePfncommandlistappendimagecopytomemorycb uintptr

ZePfncommandlistappendimagecopytomemorycb (ze_pfnCommandListAppendImageCopyToMemoryCb_t) Callback function-pointer for zeCommandListAppendImageCopyToMemory / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendlaunchcooperativekernelcb

type ZePfncommandlistappendlaunchcooperativekernelcb uintptr

ZePfncommandlistappendlaunchcooperativekernelcb (ze_pfnCommandListAppendLaunchCooperativeKernelCb_t) Callback function-pointer for zeCommandListAppendLaunchCooperativeKernel / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendlaunchkernelcb

type ZePfncommandlistappendlaunchkernelcb uintptr

ZePfncommandlistappendlaunchkernelcb (ze_pfnCommandListAppendLaunchKernelCb_t) Callback function-pointer for zeCommandListAppendLaunchKernel / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendlaunchkernelindirectcb

type ZePfncommandlistappendlaunchkernelindirectcb uintptr

ZePfncommandlistappendlaunchkernelindirectcb (ze_pfnCommandListAppendLaunchKernelIndirectCb_t) Callback function-pointer for zeCommandListAppendLaunchKernelIndirect / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendlaunchmultiplekernelsindirectcb

type ZePfncommandlistappendlaunchmultiplekernelsindirectcb uintptr

ZePfncommandlistappendlaunchmultiplekernelsindirectcb (ze_pfnCommandListAppendLaunchMultipleKernelsIndirectCb_t) Callback function-pointer for zeCommandListAppendLaunchMultipleKernelsIndirect / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendmemadvisecb

type ZePfncommandlistappendmemadvisecb uintptr

ZePfncommandlistappendmemadvisecb (ze_pfnCommandListAppendMemAdviseCb_t) Callback function-pointer for zeCommandListAppendMemAdvise / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendmemorycopycb

type ZePfncommandlistappendmemorycopycb uintptr

ZePfncommandlistappendmemorycopycb (ze_pfnCommandListAppendMemoryCopyCb_t) Callback function-pointer for zeCommandListAppendMemoryCopy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendmemorycopyfromcontextcb

type ZePfncommandlistappendmemorycopyfromcontextcb uintptr

ZePfncommandlistappendmemorycopyfromcontextcb (ze_pfnCommandListAppendMemoryCopyFromContextCb_t) Callback function-pointer for zeCommandListAppendMemoryCopyFromContext / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendmemorycopyregioncb

type ZePfncommandlistappendmemorycopyregioncb uintptr

ZePfncommandlistappendmemorycopyregioncb (ze_pfnCommandListAppendMemoryCopyRegionCb_t) Callback function-pointer for zeCommandListAppendMemoryCopyRegion / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendmemoryfillcb

type ZePfncommandlistappendmemoryfillcb uintptr

ZePfncommandlistappendmemoryfillcb (ze_pfnCommandListAppendMemoryFillCb_t) Callback function-pointer for zeCommandListAppendMemoryFill / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendmemoryprefetchcb

type ZePfncommandlistappendmemoryprefetchcb uintptr

ZePfncommandlistappendmemoryprefetchcb (ze_pfnCommandListAppendMemoryPrefetchCb_t) Callback function-pointer for zeCommandListAppendMemoryPrefetch / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendmemoryrangesbarriercb

type ZePfncommandlistappendmemoryrangesbarriercb uintptr

ZePfncommandlistappendmemoryrangesbarriercb (ze_pfnCommandListAppendMemoryRangesBarrierCb_t) Callback function-pointer for zeCommandListAppendMemoryRangesBarrier / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendquerykerneltimestampscb

type ZePfncommandlistappendquerykerneltimestampscb uintptr

ZePfncommandlistappendquerykerneltimestampscb (ze_pfnCommandListAppendQueryKernelTimestampsCb_t) Callback function-pointer for zeCommandListAppendQueryKernelTimestamps / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendsignaleventcb

type ZePfncommandlistappendsignaleventcb uintptr

ZePfncommandlistappendsignaleventcb (ze_pfnCommandListAppendSignalEventCb_t) Callback function-pointer for zeCommandListAppendSignalEvent / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendwaitoneventscb

type ZePfncommandlistappendwaitoneventscb uintptr

ZePfncommandlistappendwaitoneventscb (ze_pfnCommandListAppendWaitOnEventsCb_t) Callback function-pointer for zeCommandListAppendWaitOnEvents / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistappendwriteglobaltimestampcb

type ZePfncommandlistappendwriteglobaltimestampcb uintptr

ZePfncommandlistappendwriteglobaltimestampcb (ze_pfnCommandListAppendWriteGlobalTimestampCb_t) Callback function-pointer for zeCommandListAppendWriteGlobalTimestamp / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistclosecb

type ZePfncommandlistclosecb uintptr

ZePfncommandlistclosecb (ze_pfnCommandListCloseCb_t) Callback function-pointer for zeCommandListClose / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistcreatecb

type ZePfncommandlistcreatecb uintptr

ZePfncommandlistcreatecb (ze_pfnCommandListCreateCb_t) Callback function-pointer for zeCommandListCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistcreateimmediatecb

type ZePfncommandlistcreateimmediatecb uintptr

ZePfncommandlistcreateimmediatecb (ze_pfnCommandListCreateImmediateCb_t) Callback function-pointer for zeCommandListCreateImmediate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistdestroycb

type ZePfncommandlistdestroycb uintptr

ZePfncommandlistdestroycb (ze_pfnCommandListDestroyCb_t) Callback function-pointer for zeCommandListDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandlistresetcb

type ZePfncommandlistresetcb uintptr

ZePfncommandlistresetcb (ze_pfnCommandListResetCb_t) Callback function-pointer for zeCommandListReset / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandqueuecreatecb

type ZePfncommandqueuecreatecb uintptr

ZePfncommandqueuecreatecb (ze_pfnCommandQueueCreateCb_t) Callback function-pointer for zeCommandQueueCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandqueuedestroycb

type ZePfncommandqueuedestroycb uintptr

ZePfncommandqueuedestroycb (ze_pfnCommandQueueDestroyCb_t) Callback function-pointer for zeCommandQueueDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandqueueexecutecommandlistscb

type ZePfncommandqueueexecutecommandlistscb uintptr

ZePfncommandqueueexecutecommandlistscb (ze_pfnCommandQueueExecuteCommandListsCb_t) Callback function-pointer for zeCommandQueueExecuteCommandLists / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncommandqueuesynchronizecb

type ZePfncommandqueuesynchronizecb uintptr

ZePfncommandqueuesynchronizecb (ze_pfnCommandQueueSynchronizeCb_t) Callback function-pointer for zeCommandQueueSynchronize / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextcreatecb

type ZePfncontextcreatecb uintptr

ZePfncontextcreatecb (ze_pfnContextCreateCb_t) Callback function-pointer for zeContextCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextdestroycb

type ZePfncontextdestroycb uintptr

ZePfncontextdestroycb (ze_pfnContextDestroyCb_t) Callback function-pointer for zeContextDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextevictimagecb

type ZePfncontextevictimagecb uintptr

ZePfncontextevictimagecb (ze_pfnContextEvictImageCb_t) Callback function-pointer for zeContextEvictImage / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextevictmemorycb

type ZePfncontextevictmemorycb uintptr

ZePfncontextevictmemorycb (ze_pfnContextEvictMemoryCb_t) Callback function-pointer for zeContextEvictMemory / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextgetstatuscb

type ZePfncontextgetstatuscb uintptr

ZePfncontextgetstatuscb (ze_pfnContextGetStatusCb_t) Callback function-pointer for zeContextGetStatus / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextmakeimageresidentcb

type ZePfncontextmakeimageresidentcb uintptr

ZePfncontextmakeimageresidentcb (ze_pfnContextMakeImageResidentCb_t) Callback function-pointer for zeContextMakeImageResident / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextmakememoryresidentcb

type ZePfncontextmakememoryresidentcb uintptr

ZePfncontextmakememoryresidentcb (ze_pfnContextMakeMemoryResidentCb_t) Callback function-pointer for zeContextMakeMemoryResident / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfncontextsystembarriercb

type ZePfncontextsystembarriercb uintptr

ZePfncontextsystembarriercb (ze_pfnContextSystemBarrierCb_t) Callback function-pointer for zeContextSystemBarrier / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicecanaccesspeercb

type ZePfndevicecanaccesspeercb uintptr

ZePfndevicecanaccesspeercb (ze_pfnDeviceCanAccessPeerCb_t) Callback function-pointer for zeDeviceCanAccessPeer / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetcachepropertiescb

type ZePfndevicegetcachepropertiescb uintptr

ZePfndevicegetcachepropertiescb (ze_pfnDeviceGetCachePropertiesCb_t) Callback function-pointer for zeDeviceGetCacheProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetcb

type ZePfndevicegetcb uintptr

ZePfndevicegetcb (ze_pfnDeviceGetCb_t) Callback function-pointer for zeDeviceGet / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetcommandqueuegrouppropertiescb

type ZePfndevicegetcommandqueuegrouppropertiescb uintptr

ZePfndevicegetcommandqueuegrouppropertiescb (ze_pfnDeviceGetCommandQueueGroupPropertiesCb_t) Callback function-pointer for zeDeviceGetCommandQueueGroupProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetcomputepropertiescb

type ZePfndevicegetcomputepropertiescb uintptr

ZePfndevicegetcomputepropertiescb (ze_pfnDeviceGetComputePropertiesCb_t) Callback function-pointer for zeDeviceGetComputeProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetexternalmemorypropertiescb

type ZePfndevicegetexternalmemorypropertiescb uintptr

ZePfndevicegetexternalmemorypropertiescb (ze_pfnDeviceGetExternalMemoryPropertiesCb_t) Callback function-pointer for zeDeviceGetExternalMemoryProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetimagepropertiescb

type ZePfndevicegetimagepropertiescb uintptr

ZePfndevicegetimagepropertiescb (ze_pfnDeviceGetImagePropertiesCb_t) Callback function-pointer for zeDeviceGetImageProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetmemoryaccesspropertiescb

type ZePfndevicegetmemoryaccesspropertiescb uintptr

ZePfndevicegetmemoryaccesspropertiescb (ze_pfnDeviceGetMemoryAccessPropertiesCb_t) Callback function-pointer for zeDeviceGetMemoryAccessProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetmemorypropertiescb

type ZePfndevicegetmemorypropertiescb uintptr

ZePfndevicegetmemorypropertiescb (ze_pfnDeviceGetMemoryPropertiesCb_t) Callback function-pointer for zeDeviceGetMemoryProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetmodulepropertiescb

type ZePfndevicegetmodulepropertiescb uintptr

ZePfndevicegetmodulepropertiescb (ze_pfnDeviceGetModulePropertiesCb_t) Callback function-pointer for zeDeviceGetModuleProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetp2ppropertiescb

type ZePfndevicegetp2ppropertiescb uintptr

ZePfndevicegetp2ppropertiescb (ze_pfnDeviceGetP2PPropertiesCb_t) Callback function-pointer for zeDeviceGetP2PProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetpropertiescb

type ZePfndevicegetpropertiescb uintptr

ZePfndevicegetpropertiescb (ze_pfnDeviceGetPropertiesCb_t) Callback function-pointer for zeDeviceGetProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetstatuscb

type ZePfndevicegetstatuscb uintptr

ZePfndevicegetstatuscb (ze_pfnDeviceGetStatusCb_t) Callback function-pointer for zeDeviceGetStatus / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndevicegetsubdevicescb

type ZePfndevicegetsubdevicescb uintptr

ZePfndevicegetsubdevicescb (ze_pfnDeviceGetSubDevicesCb_t) Callback function-pointer for zeDeviceGetSubDevices / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndrivergetapiversioncb

type ZePfndrivergetapiversioncb uintptr

ZePfndrivergetapiversioncb (ze_pfnDriverGetApiVersionCb_t) Callback function-pointer for zeDriverGetApiVersion / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndrivergetcb

type ZePfndrivergetcb uintptr

ZePfndrivergetcb (ze_pfnDriverGetCb_t) Callback function-pointer for zeDriverGet / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndrivergetextensionpropertiescb

type ZePfndrivergetextensionpropertiescb uintptr

ZePfndrivergetextensionpropertiescb (ze_pfnDriverGetExtensionPropertiesCb_t) Callback function-pointer for zeDriverGetExtensionProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndrivergetipcpropertiescb

type ZePfndrivergetipcpropertiescb uintptr

ZePfndrivergetipcpropertiescb (ze_pfnDriverGetIpcPropertiesCb_t) Callback function-pointer for zeDriverGetIpcProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfndrivergetpropertiescb

type ZePfndrivergetpropertiescb uintptr

ZePfndrivergetpropertiescb (ze_pfnDriverGetPropertiesCb_t) Callback function-pointer for zeDriverGetProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventcreatecb

type ZePfneventcreatecb uintptr

ZePfneventcreatecb (ze_pfnEventCreateCb_t) Callback function-pointer for zeEventCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventdestroycb

type ZePfneventdestroycb uintptr

ZePfneventdestroycb (ze_pfnEventDestroyCb_t) Callback function-pointer for zeEventDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventhostresetcb

type ZePfneventhostresetcb uintptr

ZePfneventhostresetcb (ze_pfnEventHostResetCb_t) Callback function-pointer for zeEventHostReset / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventhostsignalcb

type ZePfneventhostsignalcb uintptr

ZePfneventhostsignalcb (ze_pfnEventHostSignalCb_t) Callback function-pointer for zeEventHostSignal / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventhostsynchronizecb

type ZePfneventhostsynchronizecb uintptr

ZePfneventhostsynchronizecb (ze_pfnEventHostSynchronizeCb_t) Callback function-pointer for zeEventHostSynchronize / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventpoolcloseipchandlecb

type ZePfneventpoolcloseipchandlecb uintptr

ZePfneventpoolcloseipchandlecb (ze_pfnEventPoolCloseIpcHandleCb_t) Callback function-pointer for zeEventPoolCloseIpcHandle / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventpoolcreatecb

type ZePfneventpoolcreatecb uintptr

ZePfneventpoolcreatecb (ze_pfnEventPoolCreateCb_t) Callback function-pointer for zeEventPoolCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventpooldestroycb

type ZePfneventpooldestroycb uintptr

ZePfneventpooldestroycb (ze_pfnEventPoolDestroyCb_t) Callback function-pointer for zeEventPoolDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventpoolgetipchandlecb

type ZePfneventpoolgetipchandlecb uintptr

ZePfneventpoolgetipchandlecb (ze_pfnEventPoolGetIpcHandleCb_t) Callback function-pointer for zeEventPoolGetIpcHandle / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventpoolopenipchandlecb

type ZePfneventpoolopenipchandlecb uintptr

ZePfneventpoolopenipchandlecb (ze_pfnEventPoolOpenIpcHandleCb_t) Callback function-pointer for zeEventPoolOpenIpcHandle / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventquerykerneltimestampcb

type ZePfneventquerykerneltimestampcb uintptr

ZePfneventquerykerneltimestampcb (ze_pfnEventQueryKernelTimestampCb_t) Callback function-pointer for zeEventQueryKernelTimestamp / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfneventquerystatuscb

type ZePfneventquerystatuscb uintptr

ZePfneventquerystatuscb (ze_pfnEventQueryStatusCb_t) Callback function-pointer for zeEventQueryStatus / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnfencecreatecb

type ZePfnfencecreatecb uintptr

ZePfnfencecreatecb (ze_pfnFenceCreateCb_t) Callback function-pointer for zeFenceCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnfencedestroycb

type ZePfnfencedestroycb uintptr

ZePfnfencedestroycb (ze_pfnFenceDestroyCb_t) Callback function-pointer for zeFenceDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnfencehostsynchronizecb

type ZePfnfencehostsynchronizecb uintptr

ZePfnfencehostsynchronizecb (ze_pfnFenceHostSynchronizeCb_t) Callback function-pointer for zeFenceHostSynchronize / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnfencequerystatuscb

type ZePfnfencequerystatuscb uintptr

ZePfnfencequerystatuscb (ze_pfnFenceQueryStatusCb_t) Callback function-pointer for zeFenceQueryStatus / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnfenceresetcb

type ZePfnfenceresetcb uintptr

ZePfnfenceresetcb (ze_pfnFenceResetCb_t) Callback function-pointer for zeFenceReset / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnimagecreatecb

type ZePfnimagecreatecb uintptr

ZePfnimagecreatecb (ze_pfnImageCreateCb_t) Callback function-pointer for zeImageCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnimagedestroycb

type ZePfnimagedestroycb uintptr

ZePfnimagedestroycb (ze_pfnImageDestroyCb_t) Callback function-pointer for zeImageDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnimagegetpropertiescb

type ZePfnimagegetpropertiescb uintptr

ZePfnimagegetpropertiescb (ze_pfnImageGetPropertiesCb_t) Callback function-pointer for zeImageGetProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfninitcb

type ZePfninitcb uintptr

ZePfninitcb (ze_pfnInitCb_t) Callback function-pointer for zeInit / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelcreatecb

type ZePfnkernelcreatecb uintptr

ZePfnkernelcreatecb (ze_pfnKernelCreateCb_t) Callback function-pointer for zeKernelCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkerneldestroycb

type ZePfnkerneldestroycb uintptr

ZePfnkerneldestroycb (ze_pfnKernelDestroyCb_t) Callback function-pointer for zeKernelDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelgetindirectaccesscb

type ZePfnkernelgetindirectaccesscb uintptr

ZePfnkernelgetindirectaccesscb (ze_pfnKernelGetIndirectAccessCb_t) Callback function-pointer for zeKernelGetIndirectAccess / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelgetnamecb

type ZePfnkernelgetnamecb uintptr

ZePfnkernelgetnamecb (ze_pfnKernelGetNameCb_t) Callback function-pointer for zeKernelGetName / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelgetpropertiescb

type ZePfnkernelgetpropertiescb uintptr

ZePfnkernelgetpropertiescb (ze_pfnKernelGetPropertiesCb_t) Callback function-pointer for zeKernelGetProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelgetsourceattributescb

type ZePfnkernelgetsourceattributescb uintptr

ZePfnkernelgetsourceattributescb (ze_pfnKernelGetSourceAttributesCb_t) Callback function-pointer for zeKernelGetSourceAttributes / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelsetargumentvaluecb

type ZePfnkernelsetargumentvaluecb uintptr

ZePfnkernelsetargumentvaluecb (ze_pfnKernelSetArgumentValueCb_t) Callback function-pointer for zeKernelSetArgumentValue / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelsetcacheconfigcb

type ZePfnkernelsetcacheconfigcb uintptr

ZePfnkernelsetcacheconfigcb (ze_pfnKernelSetCacheConfigCb_t) Callback function-pointer for zeKernelSetCacheConfig / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelsetgroupsizecb

type ZePfnkernelsetgroupsizecb uintptr

ZePfnkernelsetgroupsizecb (ze_pfnKernelSetGroupSizeCb_t) Callback function-pointer for zeKernelSetGroupSize / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelsetindirectaccesscb

type ZePfnkernelsetindirectaccesscb uintptr

ZePfnkernelsetindirectaccesscb (ze_pfnKernelSetIndirectAccessCb_t) Callback function-pointer for zeKernelSetIndirectAccess / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelsuggestgroupsizecb

type ZePfnkernelsuggestgroupsizecb uintptr

ZePfnkernelsuggestgroupsizecb (ze_pfnKernelSuggestGroupSizeCb_t) Callback function-pointer for zeKernelSuggestGroupSize / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnkernelsuggestmaxcooperativegroupcountcb

type ZePfnkernelsuggestmaxcooperativegroupcountcb uintptr

ZePfnkernelsuggestmaxcooperativegroupcountcb (ze_pfnKernelSuggestMaxCooperativeGroupCountCb_t) Callback function-pointer for zeKernelSuggestMaxCooperativeGroupCount / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemallocdevicecb

type ZePfnmemallocdevicecb uintptr

ZePfnmemallocdevicecb (ze_pfnMemAllocDeviceCb_t) Callback function-pointer for zeMemAllocDevice / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemallochostcb

type ZePfnmemallochostcb uintptr

ZePfnmemallochostcb (ze_pfnMemAllocHostCb_t) Callback function-pointer for zeMemAllocHost / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemallocsharedcb

type ZePfnmemallocsharedcb uintptr

ZePfnmemallocsharedcb (ze_pfnMemAllocSharedCb_t) Callback function-pointer for zeMemAllocShared / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemcloseipchandlecb

type ZePfnmemcloseipchandlecb uintptr

ZePfnmemcloseipchandlecb (ze_pfnMemCloseIpcHandleCb_t) Callback function-pointer for zeMemCloseIpcHandle / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemfreecb

type ZePfnmemfreecb uintptr

ZePfnmemfreecb (ze_pfnMemFreeCb_t) Callback function-pointer for zeMemFree / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemgetaddressrangecb

type ZePfnmemgetaddressrangecb uintptr

ZePfnmemgetaddressrangecb (ze_pfnMemGetAddressRangeCb_t) Callback function-pointer for zeMemGetAddressRange / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemgetallocpropertiescb

type ZePfnmemgetallocpropertiescb uintptr

ZePfnmemgetallocpropertiescb (ze_pfnMemGetAllocPropertiesCb_t) Callback function-pointer for zeMemGetAllocProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemgetipchandlecb

type ZePfnmemgetipchandlecb uintptr

ZePfnmemgetipchandlecb (ze_pfnMemGetIpcHandleCb_t) Callback function-pointer for zeMemGetIpcHandle / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmemopenipchandlecb

type ZePfnmemopenipchandlecb uintptr

ZePfnmemopenipchandlecb (ze_pfnMemOpenIpcHandleCb_t) Callback function-pointer for zeMemOpenIpcHandle / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulebuildlogdestroycb

type ZePfnmodulebuildlogdestroycb uintptr

ZePfnmodulebuildlogdestroycb (ze_pfnModuleBuildLogDestroyCb_t) Callback function-pointer for zeModuleBuildLogDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulebuildloggetstringcb

type ZePfnmodulebuildloggetstringcb uintptr

ZePfnmodulebuildloggetstringcb (ze_pfnModuleBuildLogGetStringCb_t) Callback function-pointer for zeModuleBuildLogGetString / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulecreatecb

type ZePfnmodulecreatecb uintptr

ZePfnmodulecreatecb (ze_pfnModuleCreateCb_t) Callback function-pointer for zeModuleCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmoduledestroycb

type ZePfnmoduledestroycb uintptr

ZePfnmoduledestroycb (ze_pfnModuleDestroyCb_t) Callback function-pointer for zeModuleDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmoduledynamiclinkcb

type ZePfnmoduledynamiclinkcb uintptr

ZePfnmoduledynamiclinkcb (ze_pfnModuleDynamicLinkCb_t) Callback function-pointer for zeModuleDynamicLink / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulegetfunctionpointercb

type ZePfnmodulegetfunctionpointercb uintptr

ZePfnmodulegetfunctionpointercb (ze_pfnModuleGetFunctionPointerCb_t) Callback function-pointer for zeModuleGetFunctionPointer / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulegetglobalpointercb

type ZePfnmodulegetglobalpointercb uintptr

ZePfnmodulegetglobalpointercb (ze_pfnModuleGetGlobalPointerCb_t) Callback function-pointer for zeModuleGetGlobalPointer / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulegetkernelnamescb

type ZePfnmodulegetkernelnamescb uintptr

ZePfnmodulegetkernelnamescb (ze_pfnModuleGetKernelNamesCb_t) Callback function-pointer for zeModuleGetKernelNames / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulegetnativebinarycb

type ZePfnmodulegetnativebinarycb uintptr

ZePfnmodulegetnativebinarycb (ze_pfnModuleGetNativeBinaryCb_t) Callback function-pointer for zeModuleGetNativeBinary / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnmodulegetpropertiescb

type ZePfnmodulegetpropertiescb uintptr

ZePfnmodulegetpropertiescb (ze_pfnModuleGetPropertiesCb_t) Callback function-pointer for zeModuleGetProperties / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnphysicalmemcreatecb

type ZePfnphysicalmemcreatecb uintptr

ZePfnphysicalmemcreatecb (ze_pfnPhysicalMemCreateCb_t) Callback function-pointer for zePhysicalMemCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnphysicalmemdestroycb

type ZePfnphysicalmemdestroycb uintptr

ZePfnphysicalmemdestroycb (ze_pfnPhysicalMemDestroyCb_t) Callback function-pointer for zePhysicalMemDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnsamplercreatecb

type ZePfnsamplercreatecb uintptr

ZePfnsamplercreatecb (ze_pfnSamplerCreateCb_t) Callback function-pointer for zeSamplerCreate / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnsamplerdestroycb

type ZePfnsamplerdestroycb uintptr

ZePfnsamplerdestroycb (ze_pfnSamplerDestroyCb_t) Callback function-pointer for zeSamplerDestroy / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnvirtualmemfreecb

type ZePfnvirtualmemfreecb uintptr

ZePfnvirtualmemfreecb (ze_pfnVirtualMemFreeCb_t) Callback function-pointer for zeVirtualMemFree / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnvirtualmemgetaccessattributecb

type ZePfnvirtualmemgetaccessattributecb uintptr

ZePfnvirtualmemgetaccessattributecb (ze_pfnVirtualMemGetAccessAttributeCb_t) Callback function-pointer for zeVirtualMemGetAccessAttribute / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnvirtualmemmapcb

type ZePfnvirtualmemmapcb uintptr

ZePfnvirtualmemmapcb (ze_pfnVirtualMemMapCb_t) Callback function-pointer for zeVirtualMemMap / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnvirtualmemquerypagesizecb

type ZePfnvirtualmemquerypagesizecb uintptr

ZePfnvirtualmemquerypagesizecb (ze_pfnVirtualMemQueryPageSizeCb_t) Callback function-pointer for zeVirtualMemQueryPageSize / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnvirtualmemreservecb

type ZePfnvirtualmemreservecb uintptr

ZePfnvirtualmemreservecb (ze_pfnVirtualMemReserveCb_t) Callback function-pointer for zeVirtualMemReserve / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnvirtualmemsetaccessattributecb

type ZePfnvirtualmemsetaccessattributecb uintptr

ZePfnvirtualmemsetaccessattributecb (ze_pfnVirtualMemSetAccessAttributeCb_t) Callback function-pointer for zeVirtualMemSetAccessAttribute / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePfnvirtualmemunmapcb

type ZePfnvirtualmemunmapcb uintptr

ZePfnvirtualmemunmapcb (ze_pfnVirtualMemUnmapCb_t) Callback function-pointer for zeVirtualMemUnmap / @param[in] params Parameters passed to this instance / @param[in] result Return value / @param[in] pTracerUserData Per-Tracer user data / @param[in,out] ppTracerInstanceUserData Per-Tracer, Per-Instance user data gozel warn: please use C function pointer loaded from C library!

type ZePhysicalMemCallbacks

type ZePhysicalMemCallbacks struct {
	Pfncreatecb  ZePfnphysicalmemcreatecb
	Pfndestroycb ZePfnphysicalmemdestroycb
}

ZePhysicalMemCallbacks (ze_physical_mem_callbacks_t) Table of PhysicalMem callback functions pointers

type ZePhysicalMemCreateParams

type ZePhysicalMemCreateParams struct {
	Phcontext         *ZeContextHandle
	Phdevice          *ZeDeviceHandle
	Pdesc             **ZePhysicalMemDesc
	Pphphysicalmemory **ZePhysicalMemHandle
}

ZePhysicalMemCreateParams (ze_physical_mem_create_params_t) Callback function parameters for zePhysicalMemCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZePhysicalMemDesc

type ZePhysicalMemDesc struct {
	Stype ZeStructureType    // Stype [in] type of this structure
	Pnext unsafe.Pointer     // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZePhysicalMemFlags // Flags [in] creation flags. must be 0 (default) or a valid combination of ::ze_physical_mem_flag_t; default is to create physical device memory.
	Size  uintptr            // Size [in] size in bytes to reserve; must be page aligned.

}

ZePhysicalMemDesc (ze_physical_mem_desc_t) Physical memory descriptor

type ZePhysicalMemDestroyParams

type ZePhysicalMemDestroyParams struct {
	Phcontext        *ZeContextHandle
	Phphysicalmemory *ZePhysicalMemHandle
}

ZePhysicalMemDestroyParams (ze_physical_mem_destroy_params_t) Callback function parameters for zePhysicalMemDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZePhysicalMemFlags

type ZePhysicalMemFlags uint32

ZePhysicalMemFlags (ze_physical_mem_flags_t) Supported physical memory creation flags

const (
	ZE_PHYSICAL_MEM_FLAG_ALLOCATE_ON_DEVICE ZePhysicalMemFlags = (1 << 0)   // ZE_PHYSICAL_MEM_FLAG_ALLOCATE_ON_DEVICE [default] allocate physical device memory.
	ZE_PHYSICAL_MEM_FLAG_ALLOCATE_ON_HOST   ZePhysicalMemFlags = (1 << 1)   // ZE_PHYSICAL_MEM_FLAG_ALLOCATE_ON_HOST Allocate physical host memory instead.
	ZE_PHYSICAL_MEM_FLAG_FORCE_UINT32       ZePhysicalMemFlags = 0x7fffffff // ZE_PHYSICAL_MEM_FLAG_FORCE_UINT32 Value marking end of ZE_PHYSICAL_MEM_FLAG_* ENUMs

)

type ZePhysicalMemHandle

type ZePhysicalMemHandle uintptr

ZePhysicalMemHandle (ze_physical_mem_handle_t) Handle of physical memory object

type ZePhysicalMemProperties

type ZePhysicalMemProperties struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Id    uint64          // Id [out] unique identifier for the physical memory object
	Size  uint64          // Size [out] size of the physical memory object in bytes

}

ZePhysicalMemProperties (ze_physical_mem_properties_t) Physical memory properties queried using ::zePhysicalMemGetProperties

type ZePitchedAlloc2dimageLinearPitchExpInfo

type ZePitchedAlloc2dimageLinearPitchExpInfo struct {
	Stype             ZeStructureType // Stype [in] type of this structure
	Pnext             unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Pitchalign        uintptr         // Pitchalign [out] Required pitch Aligment in Bytes.
	Maxsupportedpitch uintptr         // Maxsupportedpitch [out] Maximum allowed pitch in Bytes.

}

ZePitchedAlloc2dimageLinearPitchExpInfo (ze_pitched_alloc_2dimage_linear_pitch_exp_info_t) Pitch information for 2-dimensional linear pitched allocations / / @details / - This structure may be passed to ::zeDeviceGetImageProperties in / conjunction with the ::ze_device_pitched_alloc_exp_properties_t via / its pNext member

type ZePowerSavingHintExpVersion

type ZePowerSavingHintExpVersion uintptr

ZePowerSavingHintExpVersion (ze_power_saving_hint_exp_version_t) Power Saving Hint Extension Version(s)

const (
	ZE_POWER_SAVING_HINT_EXP_VERSION_1_0          ZePowerSavingHintExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_POWER_SAVING_HINT_EXP_VERSION_1_0 version 1.0
	ZE_POWER_SAVING_HINT_EXP_VERSION_CURRENT      ZePowerSavingHintExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_POWER_SAVING_HINT_EXP_VERSION_CURRENT latest known version
	ZE_POWER_SAVING_HINT_EXP_VERSION_FORCE_UINT32 ZePowerSavingHintExpVersion = 0x7fffffff                     // ZE_POWER_SAVING_HINT_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_POWER_SAVING_HINT_EXP_VERSION_* ENUMs

)

type ZePowerSavingHintType

type ZePowerSavingHintType uintptr

ZePowerSavingHintType (ze_power_saving_hint_type_t) Supported device types

const (
	ZE_POWER_SAVING_HINT_TYPE_MIN ZePowerSavingHintType = 0 // ZE_POWER_SAVING_HINT_TYPE_MIN Minumum power savings. The device will make no attempt to save power

	ZE_POWER_SAVING_HINT_TYPE_MAX ZePowerSavingHintType = 100 // ZE_POWER_SAVING_HINT_TYPE_MAX Maximum power savings. The device will do everything to bring power to

	ZE_POWER_SAVING_HINT_TYPE_FORCE_UINT32 ZePowerSavingHintType = 0x7fffffff // ZE_POWER_SAVING_HINT_TYPE_FORCE_UINT32 Value marking end of ZE_POWER_SAVING_HINT_TYPE_* ENUMs

)

type ZeRaytracingExtVersion

type ZeRaytracingExtVersion uintptr

ZeRaytracingExtVersion (ze_raytracing_ext_version_t) Raytracing Extension Version(s)

const (
	ZE_RAYTRACING_EXT_VERSION_1_0          ZeRaytracingExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RAYTRACING_EXT_VERSION_1_0 version 1.0
	ZE_RAYTRACING_EXT_VERSION_CURRENT      ZeRaytracingExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RAYTRACING_EXT_VERSION_CURRENT latest known version
	ZE_RAYTRACING_EXT_VERSION_FORCE_UINT32 ZeRaytracingExtVersion = 0x7fffffff                     // ZE_RAYTRACING_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_RAYTRACING_EXT_VERSION_* ENUMs

)

type ZeRaytracingMemAllocExtDesc

type ZeRaytracingMemAllocExtDesc struct {
	Stype ZeStructureType              // Stype [in] type of this structure
	Pnext unsafe.Pointer               // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeRaytracingMemAllocExtFlags // Flags [in] flags specifying additional allocation controls. must be 0 (default) or a valid combination of ::ze_raytracing_mem_alloc_ext_flag_t; default behavior may use implicit driver-based heuristics.

}

ZeRaytracingMemAllocExtDesc (ze_raytracing_mem_alloc_ext_desc_t) Raytracing memory allocation descriptor / / @details / - This structure must be passed to ::zeMemAllocShared or / ::zeMemAllocDevice, via the `pNext` member of / ::ze_device_mem_alloc_desc_t, for any memory allocation that is to be / accessed by raytracing fixed-function of the device.

type ZeRaytracingMemAllocExtFlags

type ZeRaytracingMemAllocExtFlags uint32

ZeRaytracingMemAllocExtFlags (ze_raytracing_mem_alloc_ext_flags_t) Supported raytracing memory allocation flags

const (
	ZE_RAYTRACING_MEM_ALLOC_EXT_FLAG_TBD          ZeRaytracingMemAllocExtFlags = (1 << 0)   // ZE_RAYTRACING_MEM_ALLOC_EXT_FLAG_TBD reserved for future use
	ZE_RAYTRACING_MEM_ALLOC_EXT_FLAG_FORCE_UINT32 ZeRaytracingMemAllocExtFlags = 0x7fffffff // ZE_RAYTRACING_MEM_ALLOC_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_RAYTRACING_MEM_ALLOC_EXT_FLAG_* ENUMs

)

type ZeRelaxedAllocationLimitsExpDesc

type ZeRelaxedAllocationLimitsExpDesc struct {
	Stype ZeStructureType                   // Stype [in] type of this structure
	Pnext unsafe.Pointer                    // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeRelaxedAllocationLimitsExpFlags // Flags [in] flags specifying allocation limits to relax. must be 0 (default) or a valid combination of ::ze_relaxed_allocation_limits_exp_flag_t;

}

ZeRelaxedAllocationLimitsExpDesc (ze_relaxed_allocation_limits_exp_desc_t) Relaxed limits memory allocation descriptor / / @details / - This structure may be passed to ::zeMemAllocShared or / ::zeMemAllocDevice, via the `pNext` member of / ::ze_device_mem_alloc_desc_t. / - This structure may also be passed to ::zeMemAllocHost, via the `pNext` / member of ::ze_host_mem_alloc_desc_t.

type ZeRelaxedAllocationLimitsExpFlags

type ZeRelaxedAllocationLimitsExpFlags uint32

ZeRelaxedAllocationLimitsExpFlags (ze_relaxed_allocation_limits_exp_flags_t) Supported relaxed memory allocation flags

const (
	ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_MAX_SIZE ZeRelaxedAllocationLimitsExpFlags = (1 << 0) // ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_MAX_SIZE Allocation size may exceed the `maxMemAllocSize` member of

	ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_FORCE_UINT32 ZeRelaxedAllocationLimitsExpFlags = 0x7fffffff // ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_* ENUMs

)

type ZeRelaxedAllocationLimitsExpVersion

type ZeRelaxedAllocationLimitsExpVersion uintptr

ZeRelaxedAllocationLimitsExpVersion (ze_relaxed_allocation_limits_exp_version_t) Relaxed Allocation Limits Extension Version(s)

const (
	ZE_RELAXED_ALLOCATION_LIMITS_EXP_VERSION_1_0          ZeRelaxedAllocationLimitsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RELAXED_ALLOCATION_LIMITS_EXP_VERSION_1_0 version 1.0
	ZE_RELAXED_ALLOCATION_LIMITS_EXP_VERSION_CURRENT      ZeRelaxedAllocationLimitsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RELAXED_ALLOCATION_LIMITS_EXP_VERSION_CURRENT latest known version
	ZE_RELAXED_ALLOCATION_LIMITS_EXP_VERSION_FORCE_UINT32 ZeRelaxedAllocationLimitsExpVersion = 0x7fffffff                     // ZE_RELAXED_ALLOCATION_LIMITS_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_RELAXED_ALLOCATION_LIMITS_EXP_VERSION_* ENUMs

)

type ZeResult

type ZeResult uintptr

ZeResult (ze_result_t) Defines Return/Error codes

const (
	ZE_RESULT_SUCCESS                         ZeResult = 0          // ZE_RESULT_SUCCESS [Core] success
	ZE_RESULT_NOT_READY                       ZeResult = 1          // ZE_RESULT_NOT_READY [Core] synchronization primitive not signaled
	ZE_RESULT_ERROR_DEVICE_LOST               ZeResult = 0x70000001 // ZE_RESULT_ERROR_DEVICE_LOST [Core] device hung, reset, was removed, or driver update occurred
	ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY        ZeResult = 0x70000002 // ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY [Core] insufficient host memory to satisfy call
	ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY      ZeResult = 0x70000003 // ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY [Core] insufficient device memory to satisfy call
	ZE_RESULT_ERROR_MODULE_BUILD_FAILURE      ZeResult = 0x70000004 // ZE_RESULT_ERROR_MODULE_BUILD_FAILURE [Core] error occurred when building module, see build log for details
	ZE_RESULT_ERROR_MODULE_LINK_FAILURE       ZeResult = 0x70000005 // ZE_RESULT_ERROR_MODULE_LINK_FAILURE [Core] error occurred when linking modules, see build log for details
	ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET     ZeResult = 0x70000006 // ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET [Core] device requires a reset
	ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE ZeResult = 0x70000007 // ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE [Core] device currently in low power state
	ZE_RESULT_EXP_ERROR_DEVICE_IS_NOT_VERTEX  ZeResult = 0x7ff00001 // ZE_RESULT_EXP_ERROR_DEVICE_IS_NOT_VERTEX [Core, Experimental] device is not represented by a fabric vertex
	ZE_RESULT_EXP_ERROR_VERTEX_IS_NOT_DEVICE  ZeResult = 0x7ff00002 // ZE_RESULT_EXP_ERROR_VERTEX_IS_NOT_DEVICE [Core, Experimental] fabric vertex does not represent a device
	ZE_RESULT_EXP_ERROR_REMOTE_DEVICE         ZeResult = 0x7ff00003 // ZE_RESULT_EXP_ERROR_REMOTE_DEVICE [Core, Experimental] fabric vertex represents a remote device or

	ZE_RESULT_EXP_ERROR_OPERANDS_INCOMPATIBLE ZeResult = 0x7ff00004 // ZE_RESULT_EXP_ERROR_OPERANDS_INCOMPATIBLE [Core, Experimental] operands of comparison are not compatible
	ZE_RESULT_EXP_RTAS_BUILD_RETRY            ZeResult = 0x7ff00005 // ZE_RESULT_EXP_RTAS_BUILD_RETRY [Core, Experimental] ray tracing acceleration structure build

	ZE_RESULT_EXP_RTAS_BUILD_DEFERRED ZeResult = 0x7ff00006 // ZE_RESULT_EXP_RTAS_BUILD_DEFERRED [Core, Experimental] ray tracing acceleration structure build

	ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS ZeResult = 0x70010000 // ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS [Sysman] access denied due to permission level
	ZE_RESULT_ERROR_NOT_AVAILABLE            ZeResult = 0x70010001 // ZE_RESULT_ERROR_NOT_AVAILABLE [Sysman] resource already in use and simultaneous access not allowed

	ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE ZeResult = 0x70020000 // ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE [Common] external required dependency is unavailable or missing
	ZE_RESULT_WARNING_DROPPED_DATA         ZeResult = 0x70020001 // ZE_RESULT_WARNING_DROPPED_DATA [Tools] data may have been dropped
	ZE_RESULT_ERROR_UNINITIALIZED          ZeResult = 0x78000001 // ZE_RESULT_ERROR_UNINITIALIZED [Validation] driver is not initialized
	ZE_RESULT_ERROR_UNSUPPORTED_VERSION    ZeResult = 0x78000002 // ZE_RESULT_ERROR_UNSUPPORTED_VERSION [Validation] generic error code for unsupported versions
	ZE_RESULT_ERROR_UNSUPPORTED_FEATURE    ZeResult = 0x78000003 // ZE_RESULT_ERROR_UNSUPPORTED_FEATURE [Validation] generic error code for unsupported features
	ZE_RESULT_ERROR_INVALID_ARGUMENT       ZeResult = 0x78000004 // ZE_RESULT_ERROR_INVALID_ARGUMENT [Validation] generic error code for invalid arguments
	ZE_RESULT_ERROR_INVALID_NULL_HANDLE    ZeResult = 0x78000005 // ZE_RESULT_ERROR_INVALID_NULL_HANDLE [Validation] handle argument is not valid
	ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE   ZeResult = 0x78000006 // ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE [Validation] object pointed to by handle still in-use by device
	ZE_RESULT_ERROR_INVALID_NULL_POINTER   ZeResult = 0x78000007 // ZE_RESULT_ERROR_INVALID_NULL_POINTER [Validation] pointer argument may not be nullptr
	ZE_RESULT_ERROR_INVALID_SIZE           ZeResult = 0x78000008 // ZE_RESULT_ERROR_INVALID_SIZE [Validation] size argument is invalid (e.g., must not be zero)
	ZE_RESULT_ERROR_UNSUPPORTED_SIZE       ZeResult = 0x78000009 // ZE_RESULT_ERROR_UNSUPPORTED_SIZE [Validation] size argument is not supported by the device (e.g., too

	ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT ZeResult = 0x7800000a // ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT [Validation] alignment argument is not supported by the device (e.g.,

	ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT ZeResult = 0x7800000b // ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT [Validation] synchronization object in invalid state
	ZE_RESULT_ERROR_INVALID_ENUMERATION            ZeResult = 0x7800000c // ZE_RESULT_ERROR_INVALID_ENUMERATION [Validation] enumerator argument is not valid
	ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION        ZeResult = 0x7800000d // ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION [Validation] enumerator argument is not supported by the device
	ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT       ZeResult = 0x7800000e // ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT [Validation] image format is not supported by the device
	ZE_RESULT_ERROR_INVALID_NATIVE_BINARY          ZeResult = 0x7800000f // ZE_RESULT_ERROR_INVALID_NATIVE_BINARY [Validation] native binary is not supported by the device
	ZE_RESULT_ERROR_INVALID_GLOBAL_NAME            ZeResult = 0x78000010 // ZE_RESULT_ERROR_INVALID_GLOBAL_NAME [Validation] global variable is not found in the module
	ZE_RESULT_ERROR_INVALID_KERNEL_NAME            ZeResult = 0x78000011 // ZE_RESULT_ERROR_INVALID_KERNEL_NAME [Validation] kernel name is not found in the module
	ZE_RESULT_ERROR_INVALID_FUNCTION_NAME          ZeResult = 0x78000012 // ZE_RESULT_ERROR_INVALID_FUNCTION_NAME [Validation] function name is not found in the module
	ZE_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION   ZeResult = 0x78000013 // ZE_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION [Validation] group size dimension is not valid for the kernel or

	ZE_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION ZeResult = 0x78000014 // ZE_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION [Validation] global width dimension is not valid for the kernel or

	ZE_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_INDEX  ZeResult = 0x78000015 // ZE_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_INDEX [Validation] kernel argument index is not valid for kernel
	ZE_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_SIZE   ZeResult = 0x78000016 // ZE_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_SIZE [Validation] kernel argument size does not match kernel
	ZE_RESULT_ERROR_INVALID_KERNEL_ATTRIBUTE_VALUE ZeResult = 0x78000017 // ZE_RESULT_ERROR_INVALID_KERNEL_ATTRIBUTE_VALUE [Validation] value of kernel attribute is not valid for the kernel or

	ZE_RESULT_ERROR_INVALID_MODULE_UNLINKED ZeResult = 0x78000018 // ZE_RESULT_ERROR_INVALID_MODULE_UNLINKED [Validation] module with imports needs to be linked before kernels can

	ZE_RESULT_ERROR_INVALID_COMMAND_LIST_TYPE ZeResult = 0x78000019 // ZE_RESULT_ERROR_INVALID_COMMAND_LIST_TYPE [Validation] command list type does not match command queue type
	ZE_RESULT_ERROR_OVERLAPPING_REGIONS       ZeResult = 0x7800001a // ZE_RESULT_ERROR_OVERLAPPING_REGIONS [Validation] copy operations do not support overlapping regions of

	ZE_RESULT_WARNING_ACTION_REQUIRED     ZeResult = 0x7800001b // ZE_RESULT_WARNING_ACTION_REQUIRED [Sysman] an action is required to complete the desired operation
	ZE_RESULT_ERROR_INVALID_KERNEL_HANDLE ZeResult = 0x7800001c // ZE_RESULT_ERROR_INVALID_KERNEL_HANDLE [Core, Validation] kernel handle is invalid for the operation
	ZE_RESULT_EXT_RTAS_BUILD_RETRY        ZeResult = 0x7800001d // ZE_RESULT_EXT_RTAS_BUILD_RETRY [Core, Extension] ray tracing acceleration structure build operation

	ZE_RESULT_EXT_RTAS_BUILD_DEFERRED ZeResult = 0x7800001e // ZE_RESULT_EXT_RTAS_BUILD_DEFERRED [Core, Extension] ray tracing acceleration structure build operation

	ZE_RESULT_EXT_ERROR_OPERANDS_INCOMPATIBLE   ZeResult = 0x7800001f // ZE_RESULT_EXT_ERROR_OPERANDS_INCOMPATIBLE [Core, Extension] operands of comparison are not compatible
	ZE_RESULT_ERROR_SURVIVABILITY_MODE_DETECTED ZeResult = 0x78000020 // ZE_RESULT_ERROR_SURVIVABILITY_MODE_DETECTED [Sysman] device is in survivability mode, firmware update needed
	ZE_RESULT_ERROR_ADDRESS_NOT_FOUND           ZeResult = 0x78000021 // ZE_RESULT_ERROR_ADDRESS_NOT_FOUND [Core] address not found within specified or current context
	ZE_RESULT_ERROR_UNKNOWN                     ZeResult = 0x7ffffffe // ZE_RESULT_ERROR_UNKNOWN [Core] unknown or internal error
	ZE_RESULT_FORCE_UINT32                      ZeResult = 0x7fffffff // ZE_RESULT_FORCE_UINT32 Value marking end of ZE_RESULT_* ENUMs

)

func ZeCommandListAppendBarrier

func ZeCommandListAppendBarrier(
	hCommandList ZeCommandListHandle,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendBarrier Appends an execution and global memory barrier into a command list. / / @details / - The application must ensure the events are accessible by the device on / which the command list was created. / - If numWaitEvents is zero, then all previous commands, enqueued on same / command queue, must complete prior to the execution of the barrier. / This is not the case when numWaitEvents is non-zero. / - If numWaitEvents is non-zero, then only all phWaitEvents must be / signaled prior to the execution of the barrier. / - This command blocks all following commands from beginning until the / execution of the barrier completes. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **vkCmdPipelineBarrier** / - clEnqueueBarrierWithWaitList / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendEventReset

func ZeCommandListAppendEventReset(
	hCommandList ZeCommandListHandle,
	hEvent ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendEventReset Appends a reset of an event back to not signaled state into a command / list. / / @details / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the command list and events were created / on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - vkResetEvent / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeCommandListAppendImageCopy

func ZeCommandListAppendImageCopy(
	hCommandList ZeCommandListHandle,
	hDstImage ZeImageHandle,
	hSrcImage ZeImageHandle,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendImageCopy Copies an image. / / @details / - The application must ensure the image and events are accessible by the / device on which the command list was created. / - The application must ensure the image format descriptors for both / source and destination images are the same. / - The application must ensure the command list, images and events were / created on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clEnqueueCopyImage** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hDstImage` / + `nullptr == hSrcImage` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendImageCopyFromMemory

func ZeCommandListAppendImageCopyFromMemory(
	hCommandList ZeCommandListHandle,
	hDstImage ZeImageHandle,
	srcptr unsafe.Pointer,
	pDstRegion *ZeImageRegion,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendImageCopyFromMemory Copies to an image from device or shared memory. / / @details / - The application must ensure the memory pointed to by srcptr is / accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by srcptr as / it is free to be modified by either the Host or device up until / execution. / - The application must ensure the image and events are accessible by the / device on which the command list was created. / - The application must ensure the image format descriptor for the / destination image is a single-planar format. / - The application must ensure the command list, image and events were / created, and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clEnqueueWriteImage / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hDstImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == srcptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendImageCopyFromMemoryExt

func ZeCommandListAppendImageCopyFromMemoryExt(
	hCommandList ZeCommandListHandle,
	hDstImage ZeImageHandle,
	srcptr unsafe.Pointer,
	pDstRegion *ZeImageRegion,
	srcRowPitch uint32,
	srcSlicePitch uint32,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendImageCopyFromMemoryExt Copies to an image from device or shared memory. / / @details / - The application must ensure the memory pointed to by srcptr is / accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by srcptr as / it is free to be modified by either the Host or device up until / execution. / - The application must ensure the image and events are accessible by the / device on which the command list was created. / - The application must ensure the image format descriptor for the / destination image is a single-planar format. / - The application must ensure that the rowPitch is set to 0 if image is / a 1D image. Otherwise the rowPitch must be greater than or equal to / the element size in bytes x width. / - If rowPitch is set to 0, the appropriate row pitch is calculated based / on the size of each element in bytes multiplied by width / - The application must ensure that the slicePitch is set to 0 if image / is a 1D or 2D image. Otherwise this value must be greater than or / equal to rowPitch x height. / - If slicePitch is set to 0, the appropriate slice pitch is calculated / based on the rowPitch x height. / - The application must ensure the command list, image and events were / created, and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clEnqueueWriteImage / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hDstImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == srcptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendImageCopyRegion

func ZeCommandListAppendImageCopyRegion(
	hCommandList ZeCommandListHandle,
	hDstImage ZeImageHandle,
	hSrcImage ZeImageHandle,
	pDstRegion *ZeImageRegion,
	pSrcRegion *ZeImageRegion,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendImageCopyRegion Copies a region of an image to another image. / / @details / - The application must ensure the image and events are accessible by the / device on which the command list was created. / - The region width and height for both src and dst must be same. The / origins can be different. / - The src and dst regions cannot be overlapping. / - The application must ensure the image format descriptors for both / source and destination images are the same. / - The application must ensure the command list, images and events were / created, and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hDstImage` / + `nullptr == hSrcImage` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_OVERLAPPING_REGIONS / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendImageCopyToMemory

func ZeCommandListAppendImageCopyToMemory(
	hCommandList ZeCommandListHandle,
	dstptr unsafe.Pointer,
	hSrcImage ZeImageHandle,
	pSrcRegion *ZeImageRegion,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendImageCopyToMemory Copies from an image to device or shared memory. / / @details / - The application must ensure the memory pointed to by dstptr is / accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by dstptr as / it is free to be modified by either the Host or device up until / execution. / - The application must ensure the image and events are accessible by the / device on which the command list was created. / - The application must ensure the image format descriptor for the source / image is a single-planar format. / - The application must ensure the command list, image and events were / created, and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clEnqueueReadImage / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hSrcImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendImageCopyToMemoryExt

func ZeCommandListAppendImageCopyToMemoryExt(
	hCommandList ZeCommandListHandle,
	dstptr unsafe.Pointer,
	hSrcImage ZeImageHandle,
	pSrcRegion *ZeImageRegion,
	destRowPitch uint32,
	destSlicePitch uint32,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendImageCopyToMemoryExt Copies from an image to device or shared memory. / / @details / - The application must ensure the memory pointed to by dstptr is / accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by dstptr as / it is free to be modified by either the Host or device up until / execution. / - The application must ensure the image and events are accessible by the / device on which the command list was created. / - The application must ensure the image format descriptor for the source / image is a single-planar format. / - The application must ensure that the rowPitch is set to 0 if image is / a 1D image. Otherwise the rowPitch must be greater than or equal to / the element size in bytes x width. / - If rowPitch is set to 0, the appropriate row pitch is calculated based / on the size of each element in bytes multiplied by width / - The application must ensure that the slicePitch is set to 0 if image / is a 1D or 2D image. Otherwise this value must be greater than or / equal to rowPitch x height. / - If slicePitch is set to 0, the appropriate slice pitch is calculated / based on the rowPitch x height. / - The application must ensure the command list, image and events were / created, and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clEnqueueReadImage / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hSrcImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendLaunchCooperativeKernel

func ZeCommandListAppendLaunchCooperativeKernel(
	hCommandList ZeCommandListHandle,
	hKernel ZeKernelHandle,
	pLaunchFuncArgs *ZeGroupCount,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendLaunchCooperativeKernel Launch kernel cooperatively over one or more work groups. / / @details / - The application must ensure the kernel and events are accessible by / the device on which the command list was created. / - This may **only** be called for a command list created with command / queue group ordinal that supports compute. / - This may only be used for a command list that are submitted to command / queue with cooperative flag set. / - The application must ensure the command list, kernel and events were / created on the same context. / - This function may **not** be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / - Use ::zeKernelSuggestMaxCooperativeGroupCount to recommend max group / count for device for cooperative functions that device supports. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pLaunchFuncArgs` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendLaunchKernel

func ZeCommandListAppendLaunchKernel(
	hCommandList ZeCommandListHandle,
	hKernel ZeKernelHandle,
	pLaunchFuncArgs *ZeGroupCount,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendLaunchKernel Launch kernel over one or more work groups. / / @details / - The application must ensure the kernel and events are accessible by / the device on which the command list was created. / - This may **only** be called for a command list created with command / queue group ordinal that supports compute. / - The application must ensure the command list, kernel and events were / created on the same context. / - This function may **not** be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pLaunchFuncArgs` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendLaunchKernelIndirect

func ZeCommandListAppendLaunchKernelIndirect(
	hCommandList ZeCommandListHandle,
	hKernel ZeKernelHandle,
	pLaunchArgumentsBuffer *ZeGroupCount,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendLaunchKernelIndirect Launch kernel over one or more work groups using indirect arguments. / / @details / - The application must ensure the kernel and events are accessible by / the device on which the command list was created. / - The application must ensure the launch arguments are visible to the / device on which the command list was created. / - The implementation must not access the contents of the launch / arguments as they are free to be modified by either the Host or device / up until execution. / - This may **only** be called for a command list created with command / queue group ordinal that supports compute. / - The application must ensure the command list, kernel and events were / created, and the memory was allocated, on the same context. / - This function may **not** be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pLaunchArgumentsBuffer` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendLaunchKernelWithArguments

func ZeCommandListAppendLaunchKernelWithArguments(
	hCommandList ZeCommandListHandle,
	hKernel ZeKernelHandle,
	groupCounts *ZeGroupCount,
	groupSizes *ZeGroupSize,
	pArguments *unsafe.Pointer,
	pNext unsafe.Pointer,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendLaunchKernelWithArguments Launch kernel over one or more work groups with specifying work group / size and all kernel arguments and allow to pass additional extensions. / / @details / - The application must ensure the kernel and events are accessible by / the device on which the command list was created. / - This may **only** be called for a command list created with command / queue group ordinal that supports compute. / - The application must ensure the command list, kernel and events were / created on the same context. / - This function may **not** be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / - This function supports both immediate and regular command lists. / - This function changes kernel state as if separate / ${x}KernelSetGroupSize and ${x}KernelSetArgumentValue functions were / called. / - This function allows to pass additional extensions in the form of / `${x}_base_desc_t` / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + when passed additional extensions are invalid or incompatible with the device or command list / - ::ZE_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION - "as per ${x}KernelSetGroupSize" / - ::ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT - "as per ${x}KernelSetArgumentValue"

func ZeCommandListAppendLaunchKernelWithParameters

func ZeCommandListAppendLaunchKernelWithParameters(
	hCommandList ZeCommandListHandle,
	hKernel ZeKernelHandle,
	pGroupCounts *ZeGroupCount,
	pNext unsafe.Pointer,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendLaunchKernelWithParameters Launch kernel over one or more work groups and allow to pass / additional parameters. / / @details / - The application must ensure the kernel and events are accessible by / the device on which the command list was created. / - This may **only** be called for a command list created with command / queue group ordinal that supports compute. / - The application must ensure the command list, kernel and events were / created on the same context. / - This function may **not** be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / - This function allows to pass additional parameters in the form of / `${x}_base_desc_t` / - This function can replace ::zeCommandListAppendLaunchCooperativeKernel / with additional parameter / `${x}_command_list_append_launch_kernel_param_cooperative_desc_t` / - This function supports both immediate and regular command lists. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pGroupCounts` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + when passed additional parameters are invalid or incompatible with the device or command list

func ZeCommandListAppendLaunchMultipleKernelsIndirect

func ZeCommandListAppendLaunchMultipleKernelsIndirect(
	hCommandList ZeCommandListHandle,
	numKernels uint32,
	phKernels *ZeKernelHandle,
	pCountBuffer *uint32,
	pLaunchArgumentsBuffer *ZeGroupCount,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendLaunchMultipleKernelsIndirect Launch multiple kernels over one or more work groups using an array of / indirect arguments. / / @details / - The application must ensure the kernel and events are accessible by / the device on which the command list was created. / - The application must ensure the array of launch arguments and count / buffer are visible to the device on which the command list was / created. / - The implementation must not access the contents of the array of launch / arguments or count buffer as they are free to be modified by either / the Host or device up until execution. / - This may **only** be called for a command list created with command / queue group ordinal that supports compute. / - The application must enusre the command list, kernel and events were / created, and the memory was allocated, on the same context. / - This function may **not** be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phKernels` / + `nullptr == pCountBuffer` / + `nullptr == pLaunchArgumentsBuffer` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendMemAdvise

func ZeCommandListAppendMemAdvise(
	hCommandList ZeCommandListHandle,
	hDevice ZeDeviceHandle,
	ptr unsafe.Pointer,
	size uintptr,
	advice ZeMemoryAdvice,
) (ZeResult, error)

ZeCommandListAppendMemAdvise Provides advice about the use of a shared memory range / / @details / - Memory advice is a performance hint only and is not required for / functional correctness. / - Memory advice can be used to override driver heuristics to explicitly / control shared memory behavior. / - Not all memory advice hints may be supported for all allocation types / for all devices. / If a memory advice hint is not supported by the device it will be ignored. / - Memory advice may only be supported at a device-specific granularity, / such as at a page boundary. / In this case, the memory range may be expanded such that the start and / end of the range satisfy granularity requirements. / - The application must ensure the memory pointed to by ptr is accessible / by the device on which the command list was created. / - The application must ensure the command list was created, and memory / was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle, and the memory was / allocated. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_MEMORY_ADVICE_CLEAR_SYSTEM_MEMORY_PREFERRED_LOCATION < advice` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeCommandListAppendMemoryCopy

func ZeCommandListAppendMemoryCopy(
	hCommandList ZeCommandListHandle,
	dstptr unsafe.Pointer,
	srcptr unsafe.Pointer,
	size uintptr,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendMemoryCopy Copies host, device, or shared memory. / / @details / - The application must ensure the memory pointed to by dstptr and srcptr / is accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by dstptr and / srcptr as they are free to be modified by either the Host or device up / until execution. / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the command list and events were created, / and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clEnqueueCopyBuffer** / - **clEnqueueReadBuffer** / - **clEnqueueWriteBuffer** / - **clEnqueueSVMMemcpy** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / + `nullptr == srcptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendMemoryCopyFromContext

func ZeCommandListAppendMemoryCopyFromContext(
	hCommandList ZeCommandListHandle,
	dstptr unsafe.Pointer,
	hContextSrc ZeContextHandle,
	srcptr unsafe.Pointer,
	size uintptr,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendMemoryCopyFromContext Copies host, device, or shared memory from another context. / / @details / - The current active and source context must be from the same driver. / - The application must ensure the memory pointed to by dstptr and srcptr / is accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by dstptr and / srcptr as they are free to be modified by either the Host or device up / until execution. / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the command list and events were created, / and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hContextSrc` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / + `nullptr == srcptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendMemoryCopyRegion

func ZeCommandListAppendMemoryCopyRegion(
	hCommandList ZeCommandListHandle,
	dstptr unsafe.Pointer,
	dstRegion *ZeCopyRegion,
	dstPitch uint32,
	dstSlicePitch uint32,
	srcptr unsafe.Pointer,
	srcRegion *ZeCopyRegion,
	srcPitch uint32,
	srcSlicePitch uint32,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendMemoryCopyRegion Copies a region from a 2D or 3D array of host, device, or shared / memory. / / @details / - The application must ensure the memory pointed to by dstptr and srcptr / is accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by dstptr and / srcptr as they are free to be modified by either the Host or device up / until execution. / - The region width, height, and depth for both src and dst must be same. / The origins can be different. / - The src and dst regions cannot be overlapping. / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the command list and events were created, / and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / + `nullptr == dstRegion` / + `nullptr == srcptr` / + `nullptr == srcRegion` / - ::ZE_RESULT_ERROR_OVERLAPPING_REGIONS / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendMemoryFill

func ZeCommandListAppendMemoryFill(
	hCommandList ZeCommandListHandle,
	ptr unsafe.Pointer,
	pattern unsafe.Pointer,
	pattern_size uintptr,
	size uintptr,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendMemoryFill Initializes host, device, or shared memory. / / @details / - The application must ensure the memory pointed to by ptr is accessible / by the device on which the command list was created. / - The implementation must not access the memory pointed to by ptr as it / is free to be modified by either the Host or device up until / execution. / - The ptr must be aligned to pattern_size / - The value to initialize memory to is described by the pattern and the / pattern size. / - The pattern size must be a power-of-two and less than or equal to the / `maxMemoryFillPatternSize` member of / ::ze_command_queue_group_properties_t. / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the command list and events were created, / and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clEnqueueFillBuffer** / - **clEnqueueSVMMemFill** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / + `nullptr == pattern` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendMemoryPrefetch

func ZeCommandListAppendMemoryPrefetch(
	hCommandList ZeCommandListHandle,
	ptr unsafe.Pointer,
	size uintptr,
) (ZeResult, error)

ZeCommandListAppendMemoryPrefetch Asynchronously prefetches shared memory to the device associated with / the specified command list / / @details / - This is a hint to improve performance only and is not required for / correctness. / - Only prefetching to the device associated with the specified command / list is supported. / Prefetching to the host or to a peer device is not supported. / - Prefetching may not be supported for all allocation types for all devices. / If memory prefetching is not supported for the specified memory range / the prefetch hint may be ignored. / - Prefetching may only be supported at a device-specific granularity, / such as at a page boundary. / In this case, the memory range may be expanded such that the start and / end of the range satisfy granularity requirements. / - The application must ensure the memory pointed to by ptr is accessible / by the device on which the command list was created. / - The application must ensure the command list was created, and the / memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clEnqueueSVMMigrateMem / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr`

func ZeCommandListAppendMemoryRangesBarrier

func ZeCommandListAppendMemoryRangesBarrier(
	hCommandList ZeCommandListHandle,
	numRanges uint32,
	pRangeSizes *uintptr,
	pRanges *unsafe.Pointer,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendMemoryRangesBarrier Appends a global memory ranges barrier into a command list. / / @details / - The application must ensure the events are accessible by the device on / which the command list was created. / - If numWaitEvents is zero, then all previous commands are completed / prior to the execution of the barrier. / - If numWaitEvents is non-zero, then then all phWaitEvents must be / signaled prior to the execution of the barrier. / - This command blocks all following commands from beginning until the / execution of the barrier completes. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRangeSizes` / + `nullptr == pRanges` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendQueryKernelTimestamps

func ZeCommandListAppendQueryKernelTimestamps(
	hCommandList ZeCommandListHandle,
	numEvents uint32,
	phEvents *ZeEventHandle,
	dstptr unsafe.Pointer,
	pOffsets *uintptr,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendQueryKernelTimestamps Appends a query of an events' timestamp value(s) into a command list. / / @details / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the events were created from an event pool / that was created using ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP flag. / - The application must ensure the memory pointed to by both dstptr and / pOffsets is accessible by the device on which the command list was / created. / - The value(s) written to the destination buffer are undefined if any / timestamp event has not been signaled. / - If pOffsets is nullptr, then multiple results will be appended / sequentially into memory in the same order as phEvents. / - The application must ensure the command list and events were created, / and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phEvents` / + `nullptr == dstptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListAppendSignalEvent

func ZeCommandListAppendSignalEvent(
	hCommandList ZeCommandListHandle,
	hEvent ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendSignalEvent Appends a signal of the event from the device into a command list. / / @details / - The application must ensure the events are accessible by the device on / which the command list was created. / - The duration of an event created from an event pool that was created / using ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP or / ::ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP flags is undefined. / However, for consistency and orthogonality the event will report / correctly as signaled when used by other event API functionality. / - The application must ensure the command list and events were created / on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clSetUserEventStatus** / - vkCmdSetEvent / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeCommandListAppendSignalExternalSemaphoreExt

func ZeCommandListAppendSignalExternalSemaphoreExt(
	hCommandList ZeCommandListHandle,
	numSemaphores uint32,
	phSemaphores *ZeExternalSemaphoreExtHandle,
	signalParams *ZeExternalSemaphoreSignalParamsExt,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendSignalExternalSemaphoreExt Signal an external semaphore / / @details / - Signals an external semaphore. / - This function must only be used with an immediate command list. / - This function may be called from simultaneous threads with the same / command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phSemaphores` / + `nullptr == signalParams` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)` / + `(nullptr == phSemaphores) && (0 < numSemaphores)` / + `(nullptr == signalParams) && (0 < numSemaphores)` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + Commandlist handle does not correspond to an immediate command list

func ZeCommandListAppendWaitExternalSemaphoreExt

func ZeCommandListAppendWaitExternalSemaphoreExt(
	hCommandList ZeCommandListHandle,
	numSemaphores uint32,
	phSemaphores *ZeExternalSemaphoreExtHandle,
	waitParams *ZeExternalSemaphoreWaitParamsExt,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendWaitExternalSemaphoreExt Wait on external semaphores / / @details / - Waits on external semaphores. / - This function must only be used with an immediate command list. / - This function may be called from simultaneous threads with the same / command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phSemaphores` / + `nullptr == waitParams` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)` / + `(nullptr == phSemaphores) && (0 < numSemaphores)` / + `(nullptr == waitParams) && (0 < numSemaphores)` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + Commandlist handle does not correspond to an immediate command list

func ZeCommandListAppendWaitOnEvents

func ZeCommandListAppendWaitOnEvents(
	hCommandList ZeCommandListHandle,
	numEvents uint32,
	phEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendWaitOnEvents Appends wait on event(s) on the device into a command list. / / @details / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the command list and events were created / on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phEvents` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeCommandListAppendWriteGlobalTimestamp

func ZeCommandListAppendWriteGlobalTimestamp(
	hCommandList ZeCommandListHandle,
	dstptr *uint64,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListAppendWriteGlobalTimestamp Appends a memory write of the device's global timestamp value into a / command list. / / @details / - The application must ensure the events are accessible by the device on / which the command list was created. / - The timestamp frequency can be queried from the `timerResolution` / member of ::ze_device_properties_t. / - The number of valid bits in the timestamp value can be queried from / the `timestampValidBits` member of ::ze_device_properties_t. / - The application must ensure the memory pointed to by dstptr is / accessible by the device on which the command list was created. / - The application must ensure the command list and events were created, / and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeCommandListClose

func ZeCommandListClose(
	hCommandList ZeCommandListHandle,
) (ZeResult, error)

ZeCommandListClose Closes a command list; ready to be executed by a command queue. / / @details / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList`

func ZeCommandListCreate

func ZeCommandListCreate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeCommandListDesc,
	phCommandList *ZeCommandListHandle,
) (ZeResult, error)

ZeCommandListCreate Creates a command list on the context. / / @details / - A command list represents a sequence of commands for execution on a / command queue. / - The command list is created in the 'open' state. / - The application must only use the command list for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phCommandList` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3f < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeCommandListCreateCloneExp

func ZeCommandListCreateCloneExp(
	hCommandList ZeCommandListHandle,
	phClonedCommandList *ZeCommandListHandle,
) (ZeResult, error)

ZeCommandListCreateCloneExp Creates a command list as the clone of another command list. / / @details / - The source command list must be created with the / ::ZE_COMMAND_LIST_FLAG_EXP_CLONEABLE flag. / - The source command list must be closed prior to cloning. / - The source command list may be cloned while it is running on the / device. / - The cloned command list inherits all properties of the source command / list. / - The cloned command list must be destroyed prior to the source command / list. / - The application must only use the command list for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phClonedCommandList`

func ZeCommandListCreateImmediate

func ZeCommandListCreateImmediate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	altdesc *ZeCommandQueueDesc,
	phCommandList *ZeCommandListHandle,
) (ZeResult, error)

ZeCommandListCreateImmediate Creates an immediate command list on the context. / / @details / - An immediate command list is used for low-latency submission of / commands. / - An immediate command list creates an implicit command queue. / - Immediate command lists must not be passed to / ::zeCommandQueueExecuteCommandLists. / - Commands appended into an immediate command list may execute / synchronously, by blocking until the command is complete. / - The command list is created in the 'open' state and never needs to be / closed. / - The application must only use the command list for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == altdesc` / + `nullptr == phCommandList` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < altdesc->flags` / + `::ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS < altdesc->mode` / + `::ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_HIGH < altdesc->priority` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeCommandListDestroy

func ZeCommandListDestroy(
	hCommandList ZeCommandListHandle,
) (ZeResult, error)

ZeCommandListDestroy Destroys a command list. / / @details / - The application must ensure the device is not currently referencing / the command list before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this command list. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeCommandListGetContextHandle

func ZeCommandListGetContextHandle(
	hCommandList ZeCommandListHandle,
	phContext *ZeContextHandle,
) (ZeResult, error)

ZeCommandListGetContextHandle Gets the handle of the context on which the command list was created. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phContext`

func ZeCommandListGetDeviceHandle

func ZeCommandListGetDeviceHandle(
	hCommandList ZeCommandListHandle,
	phDevice *ZeDeviceHandle,
) (ZeResult, error)

ZeCommandListGetDeviceHandle Gets the handle of the device on which the command list was created. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phDevice`

func ZeCommandListGetNextCommandIdExp

func ZeCommandListGetNextCommandIdExp(
	hCommandList ZeCommandListHandle,
	desc *ZeMutableCommandIdExpDesc,
	pCommandId *uint64,
) (ZeResult, error)

ZeCommandListGetNextCommandIdExp Returns a unique command identifier for the next command to be / appended to a command list. / / @details / - This function may only be called for a mutable command list. / - This function may not be called on a closed command list. / - This function may be called from simultaneous threads with the same / command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == pCommandId` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0xff < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeCommandListGetNextCommandIdWithKernelsExp

func ZeCommandListGetNextCommandIdWithKernelsExp(
	hCommandList ZeCommandListHandle,
	desc *ZeMutableCommandIdExpDesc,
	numKernels uint32,
	phKernels *ZeKernelHandle,
	pCommandId *uint64,
) (ZeResult, error)

ZeCommandListGetNextCommandIdWithKernelsExp Returns a unique command identifier for the next command to be / appended to a command list. Provides possible kernel handles for / kernel mutation when ::ZE_MUTABLE_COMMAND_EXP_FLAG_KERNEL_INSTRUCTION / flag is present. / / @details / - This function may only be called for a mutable command list. / - This function may not be called on a closed command list. / - This function may be called from simultaneous threads with the same / command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == pCommandId` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0xff < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeCommandListGetOrdinal

func ZeCommandListGetOrdinal(
	hCommandList ZeCommandListHandle,
	pOrdinal *uint32,
) (ZeResult, error)

ZeCommandListGetOrdinal Gets the command queue group ordinal to which the command list is / submitted. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pOrdinal`

func ZeCommandListHostSynchronize

func ZeCommandListHostSynchronize(
	hCommandList ZeCommandListHandle,
	timeout uint64,
) (ZeResult, error)

ZeCommandListHostSynchronize Synchronizes an immediate command list by waiting on the host for the / completion of all commands previously submitted to it. / / @details / - The application must call this function only with command lists / created with ::zeCommandListCreateImmediate. / - Waiting on one immediate command list shall not block the concurrent / execution of commands appended to other / immediate command lists created with either a different ordinal or / different index. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_NOT_READY / + timeout expired / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + handle does not correspond to an immediate command list

func ZeCommandListImmediateAppendCommandListsExp

func ZeCommandListImmediateAppendCommandListsExp(
	hCommandListImmediate ZeCommandListHandle,
	numCommandLists uint32,
	phCommandLists *ZeCommandListHandle,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListImmediateAppendCommandListsExp Appends command lists to dispatch from an immediate command list. / / @details / - The application must call this function only with command lists / created with ::zeCommandListCreateImmediate. / - The command lists passed to this function in the `phCommandLists` / argument must be regular command lists (i.e. not immediate command / lists). / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandListImmediate` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phCommandLists`

func ZeCommandListImmediateGetIndex

func ZeCommandListImmediateGetIndex(
	hCommandListImmediate ZeCommandListHandle,
	pIndex *uint32,
) (ZeResult, error)

ZeCommandListImmediateGetIndex Gets the command queue index within the group to which the immediate / command list is submitted. / / @details / - The application must call this function only with command lists / created with ::zeCommandListCreateImmediate. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandListImmediate` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pIndex` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + handle does not correspond to an immediate command list

func ZeCommandListIsImmediate

func ZeCommandListIsImmediate(
	hCommandList ZeCommandListHandle,
	pIsImmediate *ZeBool,
) (ZeResult, error)

ZeCommandListIsImmediate Query whether a command list is an immediate command list. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pIsImmediate`

func ZeCommandListReset

func ZeCommandListReset(
	hCommandList ZeCommandListHandle,
) (ZeResult, error)

ZeCommandListReset Reset a command list to initial (empty) state; ready for appending / commands. / / @details / - The application must ensure the device is not currently referencing / the command list before it is reset / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList`

func ZeCommandListUpdateMutableCommandKernelsExp

func ZeCommandListUpdateMutableCommandKernelsExp(
	hCommandList ZeCommandListHandle,
	numKernels uint32,
	pCommandId *uint64,
	phKernels *ZeKernelHandle,
) (ZeResult, error)

ZeCommandListUpdateMutableCommandKernelsExp Updates the kernel for a mutable command in a mutable command list. / / @details / - This function may only be called for a mutable command list. / - The kernel handle must be from the provided list for given command id. / - The application must synchronize mutable command list execution before / calling this function. / - The application must close a mutable command list after completing all / updates. / - This function must not be called from simultaneous threads with the / same command list handle. / - This function must be called before updating kernel arguments and / dispatch parameters, when kernel is mutated. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCommandId` / + `nullptr == phKernels` / - ::ZE_RESULT_ERROR_INVALID_KERNEL_HANDLE / + Invalid kernel handle provided for the mutation kernel instruction operation.

func ZeCommandListUpdateMutableCommandSignalEventExp

func ZeCommandListUpdateMutableCommandSignalEventExp(
	hCommandList ZeCommandListHandle,
	commandId uint64,
	hSignalEvent ZeEventHandle,
) (ZeResult, error)

ZeCommandListUpdateMutableCommandSignalEventExp Updates the signal event for a mutable command in a mutable command / list. / / @details / - This function may only be called for a mutable command list. / - The type, scope and flags of the signal event must match those of the / source command. / - The application must synchronize mutable command list execution before / calling this function. / - The application must close a mutable command list after completing all / updates. / - This function must not be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList`

func ZeCommandListUpdateMutableCommandWaitEventsExp

func ZeCommandListUpdateMutableCommandWaitEventsExp(
	hCommandList ZeCommandListHandle,
	commandId uint64,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeCommandListUpdateMutableCommandWaitEventsExp Updates the wait events for a mutable command in a mutable command / list. / / @details / - This function may only be called for a mutable command list. / - The number of wait events must match that of the source command. / - The type, scope and flags of the wait events must match those of the / source command. / - Passing `nullptr` as the wait events will update the command to not / wait on any events prior to dispatch. / - Passing `nullptr` as an event on event wait list will remove event / dependency from this wait list slot. / - The application must synchronize mutable command list execution before / calling this function. / - The application must close a mutable command list after completing all / updates. / - This function must not be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_SIZE / + The `numWaitEvents` parameter does not match that of the original command.

func ZeCommandListUpdateMutableCommandsExp

func ZeCommandListUpdateMutableCommandsExp(
	hCommandList ZeCommandListHandle,
	desc *ZeMutableCommandsExpDesc,
) (ZeResult, error)

ZeCommandListUpdateMutableCommandsExp Updates mutable commands. / / @details / - This function may only be called for a mutable command list. / - The application must synchronize mutable command list execution before / calling this function. / - The application must close a mutable command list after completing all / updates. / - This function must not be called from simultaneous threads with the / same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + Invalid kernel argument or not matching update descriptor provided

func ZeCommandQueueCreate

func ZeCommandQueueCreate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeCommandQueueDesc,
	phCommandQueue *ZeCommandQueueHandle,
) (ZeResult, error)

ZeCommandQueueCreate Creates a command queue on the context. / / @details / - A command queue represents a logical input stream to the device, tied / to a physical input stream. / - The application must only use the command queue for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @remarks / _Analogues_ / - **clCreateCommandQueue** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phCommandQueue` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < desc->flags` / + `::ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS < desc->mode` / + `::ZE_COMMAND_QUEUE_PRIORITY_PRIORITY_HIGH < desc->priority` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeCommandQueueDestroy

func ZeCommandQueueDestroy(
	hCommandQueue ZeCommandQueueHandle,
) (ZeResult, error)

ZeCommandQueueDestroy Destroys a command queue. / / @details / - The application must destroy all fence handles created from the / command queue before destroying the command queue itself / - The application must ensure the device is not currently referencing / the command queue before it is deleted / - The implementation of this function may immediately free all Host and / Device allocations associated with this command queue / - The application must **not** call this function from simultaneous / threads with the same command queue handle. / - The implementation of this function must be thread-safe. / / @remarks / _Analogues_ / - **clReleaseCommandQueue** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandQueue` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeCommandQueueExecuteCommandLists

func ZeCommandQueueExecuteCommandLists(
	hCommandQueue ZeCommandQueueHandle,
	numCommandLists uint32,
	phCommandLists *ZeCommandListHandle,
	hFence ZeFenceHandle,
) (ZeResult, error)

ZeCommandQueueExecuteCommandLists Executes a command list in a command queue. / / @details / - The command lists are submitted to the device in the order they are / received, whether from multiple calls (on the same or different / threads) or a single call with multiple command lists. / - The application must ensure the command lists are accessible by the / device on which the command queue was created. / - The application must ensure the device is not currently referencing / the command list since the implementation is allowed to modify the / contents of the command list for submission. / - The application must only execute command lists created with an / identical command queue group ordinal to the command queue. / - The application must use a fence created using the same command queue. / - The application must ensure the command queue, command list and fence / were created on the same context. / - The application must ensure the command lists being executed are not / immediate command lists. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - vkQueueSubmit / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandQueue` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phCommandLists` / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `0 == numCommandLists` / - ::ZE_RESULT_ERROR_INVALID_COMMAND_LIST_TYPE / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeCommandQueueGetIndex

func ZeCommandQueueGetIndex(
	hCommandQueue ZeCommandQueueHandle,
	pIndex *uint32,
) (ZeResult, error)

ZeCommandQueueGetIndex Gets the command queue index within the group. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandQueue` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pIndex`

func ZeCommandQueueGetOrdinal

func ZeCommandQueueGetOrdinal(
	hCommandQueue ZeCommandQueueHandle,
	pOrdinal *uint32,
) (ZeResult, error)

ZeCommandQueueGetOrdinal Gets the command queue group ordinal. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandQueue` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pOrdinal`

func ZeCommandQueueSynchronize

func ZeCommandQueueSynchronize(
	hCommandQueue ZeCommandQueueHandle,
	timeout uint64,
) (ZeResult, error)

ZeCommandQueueSynchronize Synchronizes a command queue by waiting on the host. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandQueue` / - ::ZE_RESULT_NOT_READY / + timeout expired

func ZeContextCreate

func ZeContextCreate(
	hDriver ZeDriverHandle,
	desc *ZeContextDesc,
	phContext *ZeContextHandle,
) (ZeResult, error)

ZeContextCreate Creates a context for the driver. / / @details / - The application must only use the context for the driver which was / provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phContext` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x1 < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeContextCreateEx

func ZeContextCreateEx(
	hDriver ZeDriverHandle,
	desc *ZeContextDesc,
	numDevices uint32,
	phDevices *ZeDeviceHandle,
	phContext *ZeContextHandle,
) (ZeResult, error)

ZeContextCreateEx Creates a context for the driver. / / @details / - The application must only use the context for the driver which was / provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phContext` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x1 < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phDevices) && (0 < numDevices)`

func ZeContextDestroy

func ZeContextDestroy(
	hContext ZeContextHandle,
) (ZeResult, error)

ZeContextDestroy Destroys a context. / / @details / - The application must ensure the device is not currently referencing / the context before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this context. / - The application must **not** call this function from simultaneous / threads with the same context handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeContextEvictImage

func ZeContextEvictImage(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	hImage ZeImageHandle,
) (ZeResult, error)

ZeContextEvictImage Allows image to be evicted from the device. / / @details / - The application must ensure the device is not currently referencing / the image before it is evicted / - The application may destroy the image without evicting; the image is / implicitly evicted when destroyed. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / + `nullptr == hImage`

func ZeContextEvictMemory

func ZeContextEvictMemory(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	ptr unsafe.Pointer,
	size uintptr,
) (ZeResult, error)

ZeContextEvictMemory Allows memory to be evicted from the device. / / @details / - The application must ensure the device is not currently referencing / the memory before it is evicted / - The application may free the memory without evicting; the memory is / implicitly evicted when freed. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr`

func ZeContextGetStatus

func ZeContextGetStatus(
	hContext ZeContextHandle,
) (ZeResult, error)

ZeContextGetStatus Returns current status of the context. / / @details / - The application may call this function from simultaneous threads with / the same context handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_SUCCESS / + Context is available for use. / - ::ZE_RESULT_ERROR_DEVICE_LOST / + Context is invalid; due to device lost or reset.

func ZeContextMakeImageResident

func ZeContextMakeImageResident(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	hImage ZeImageHandle,
) (ZeResult, error)

ZeContextMakeImageResident Makes image resident for the device. / / @details / - The application must ensure the image is resident before being / referenced by the device / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / + `nullptr == hImage`

func ZeContextMakeMemoryResident

func ZeContextMakeMemoryResident(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	ptr unsafe.Pointer,
	size uintptr,
) (ZeResult, error)

ZeContextMakeMemoryResident Makes memory resident for the device. / / @details / - The application must ensure the memory is resident before being / referenced by the device / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + ptr is not recognized by the implementation

func ZeContextSystemBarrier

func ZeContextSystemBarrier(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
) (ZeResult, error)

ZeContextSystemBarrier Ensures in-bound writes to the device are globally observable. / / @details / - This is a special-case system level barrier that can be used to ensure / global observability of writes; / typically needed after a producer (e.g., NIC) performs direct writes / to the device's memory (e.g., Direct RDMA writes). / This is typically required when the memory corresponding to the writes / is subsequently accessed from a remote device. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice`

func ZeDeviceCanAccessPeer

func ZeDeviceCanAccessPeer(
	hDevice ZeDeviceHandle,
	hPeerDevice ZeDeviceHandle,
	value *ZeBool,
) (ZeResult, error)

ZeDeviceCanAccessPeer Queries if one device can directly access peer device allocations / / @details / - Any device can access any other device within a node through a / scale-up fabric. / - The following are conditions for CanAccessPeer query. / + If both device and peer device are the same then return true. / + If both sub-device and peer sub-device are the same then return / true. / + If both are sub-devices and share the same parent device then / return true. / + If both device and remote device are connected by a direct or / indirect scale-up fabric or over PCIe (same root complex or shared / PCIe switch) then true. / + If both sub-device and remote parent device (and vice-versa) are / connected by a direct or indirect scale-up fabric or over PCIe / (same root complex or shared PCIe switch) then true. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / + `nullptr == hPeerDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == value`

func ZeDeviceGet

func ZeDeviceGet(
	hDriver ZeDriverHandle,
	pCount *uint32,
	phDevices *ZeDeviceHandle,
) (ZeResult, error)

ZeDeviceGet Retrieves devices within a driver / / @details / - Multiple calls to this function will return identical device handles, / in the same order. / - The number and order of handles returned from this function is / affected by the `ZE_AFFINITY_MASK` and `ZE_ENABLE_PCI_ID_DEVICE_ORDER` / environment variables. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDeviceGetAggregatedCopyOffloadIncrementValue

func ZeDeviceGetAggregatedCopyOffloadIncrementValue(
	hDevice ZeDeviceHandle,
	incrementValue *uint32,
) (ZeResult, error)

ZeDeviceGetAggregatedCopyOffloadIncrementValue Returns unified increment value that can be used for Counter Based / Events created with / ::ze_event_counter_based_external_aggregate_storage_desc_t / / @details / - Value is applicable only to this specific device / - It may be used, when user is not able define number of internal driver / operations during given append call, for example dividing copy into / multiple engines. More details can be found in programming guide. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == incrementValue`

func ZeDeviceGetCacheProperties

func ZeDeviceGetCacheProperties(
	hDevice ZeDeviceHandle,
	pCount *uint32,
	pCacheProperties *ZeDeviceCacheProperties,
) (ZeResult, error)

ZeDeviceGetCacheProperties Retrieves cache properties of the device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clGetDeviceInfo / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDeviceGetCommandQueueGroupProperties

func ZeDeviceGetCommandQueueGroupProperties(
	hDevice ZeDeviceHandle,
	pCount *uint32,
	pCommandQueueGroupProperties *ZeCommandQueueGroupProperties,
) (ZeResult, error)

ZeDeviceGetCommandQueueGroupProperties Retrieves command queue group properties of the device. / / @details / - Properties are reported for each physical command queue group / available on the device. / - Multiple calls to this function will return properties in the same / order. / - The order in which the properties are returned is defined by the / command queue group's ordinal. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **vkGetPhysicalDeviceQueueFamilyProperties** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDeviceGetComputeProperties

func ZeDeviceGetComputeProperties(
	hDevice ZeDeviceHandle,
	pComputeProperties *ZeDeviceComputeProperties,
) (ZeResult, error)

ZeDeviceGetComputeProperties Retrieves compute properties of the device. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clGetDeviceInfo / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pComputeProperties`

func ZeDeviceGetExternalMemoryProperties

func ZeDeviceGetExternalMemoryProperties(
	hDevice ZeDeviceHandle,
	pExternalMemoryProperties *ZeDeviceExternalMemoryProperties,
) (ZeResult, error)

ZeDeviceGetExternalMemoryProperties Retrieves external memory import and export of the device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pExternalMemoryProperties`

func ZeDeviceGetFabricVertexExp

func ZeDeviceGetFabricVertexExp(
	hDevice ZeDeviceHandle,
	phVertex *ZeFabricVertexHandle,
) (ZeResult, error)

ZeDeviceGetFabricVertexExp Returns fabric vertex handle from device handle. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phVertex` / - ::ZE_RESULT_EXP_ERROR_DEVICE_IS_NOT_VERTEX / + Provided device handle does not correspond to a fabric vertex.

func ZeDeviceGetGlobalTimestamps

func ZeDeviceGetGlobalTimestamps(
	hDevice ZeDeviceHandle,
	hostTimestamp *uint64,
	deviceTimestamp *uint64,
) (ZeResult, error)

ZeDeviceGetGlobalTimestamps Returns synchronized Host and device global timestamps. / / @details / - The application may call this function from simultaneous threads with / the same device handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == hostTimestamp` / + `nullptr == deviceTimestamp` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + The feature is not supported by the underlying platform.

func ZeDeviceGetImageProperties

func ZeDeviceGetImageProperties(
	hDevice ZeDeviceHandle,
	pImageProperties *ZeDeviceImageProperties,
) (ZeResult, error)

ZeDeviceGetImageProperties Retrieves image properties of the device / / @details / - See ::zeImageGetProperties for format-specific capabilities. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pImageProperties`

func ZeDeviceGetMemoryAccessProperties

func ZeDeviceGetMemoryAccessProperties(
	hDevice ZeDeviceHandle,
	pMemAccessProperties *ZeDeviceMemoryAccessProperties,
) (ZeResult, error)

ZeDeviceGetMemoryAccessProperties Retrieves memory access properties of the device. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clGetDeviceInfo / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pMemAccessProperties`

func ZeDeviceGetMemoryProperties

func ZeDeviceGetMemoryProperties(
	hDevice ZeDeviceHandle,
	pCount *uint32,
	pMemProperties *ZeDeviceMemoryProperties,
) (ZeResult, error)

ZeDeviceGetMemoryProperties Retrieves local memory properties of the device. / / @details / - Properties are reported for each physical memory type supported by the / device. / - Multiple calls to this function will return properties in the same / order. / - The order in which the properties are returned defines the device's / local memory ordinal. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clGetDeviceInfo / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDeviceGetModuleProperties

func ZeDeviceGetModuleProperties(
	hDevice ZeDeviceHandle,
	pModuleProperties *ZeDeviceModuleProperties,
) (ZeResult, error)

ZeDeviceGetModuleProperties Retrieves module properties of the device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pModuleProperties`

func ZeDeviceGetP2PProperties

func ZeDeviceGetP2PProperties(
	hDevice ZeDeviceHandle,
	hPeerDevice ZeDeviceHandle,
	pP2PProperties *ZeDeviceP2pProperties,
) (ZeResult, error)

ZeDeviceGetP2PProperties Retrieves peer-to-peer properties between one device and a peer / devices / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / + `nullptr == hPeerDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pP2PProperties`

func ZeDeviceGetProperties

func ZeDeviceGetProperties(
	hDevice ZeDeviceHandle,
	pDeviceProperties *ZeDeviceProperties,
) (ZeResult, error)

ZeDeviceGetProperties Retrieves properties of the device. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clGetDeviceInfo / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pDeviceProperties`

func ZeDeviceGetRootDevice

func ZeDeviceGetRootDevice(
	hDevice ZeDeviceHandle,
	phRootDevice *ZeDeviceHandle,
) (ZeResult, error)

ZeDeviceGetRootDevice Retrieves the root-device of a device handle / / @details / - When the device handle passed does not belong to any root-device, / nullptr is returned. / - Multiple calls to this function will return the same device handle. / - The root-device handle returned by this function does not have access / automatically to the resources / created with the associated sub-device, unless those resources have / been created with a context / explicitly containing both handles. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phRootDevice`

func ZeDeviceGetStatus

func ZeDeviceGetStatus(
	hDevice ZeDeviceHandle,
) (ZeResult, error)

ZeDeviceGetStatus Returns current status of the device. / / @details / - Once a device is reset, this call will update the OS handle attached / to the device handle. / - The application may call this function from simultaneous threads with / the same device handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_SUCCESS / + Device is available for use. / - ::ZE_RESULT_ERROR_DEVICE_LOST / + Device is lost; must be reset for use.

func ZeDeviceGetSubDevices

func ZeDeviceGetSubDevices(
	hDevice ZeDeviceHandle,
	pCount *uint32,
	phSubdevices *ZeDeviceHandle,
) (ZeResult, error)

ZeDeviceGetSubDevices Retrieves a sub-device from a device / / @details / - When the device handle passed does not contain any sub-device, a / pCount of 0 is returned. / - Multiple calls to this function will return identical device handles, / in the same order. / - The number of handles returned from this function is affected by the / `ZE_AFFINITY_MASK` environment variable. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clCreateSubDevices / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDeviceGetVectorWidthPropertiesExt

func ZeDeviceGetVectorWidthPropertiesExt(
	hDevice ZeDeviceHandle,
	pCount *uint32,
	pVectorWidthProperties *ZeDeviceVectorWidthPropertiesExt,
) (ZeResult, error)

ZeDeviceGetVectorWidthPropertiesExt Retrieves the vector width properties of the device. / / @details / - Properties are reported for each vector width supported by the device. / - Multiple calls to this function will return properties in the same / order. / - The number of vector width properties is reported thru the pCount / parameter which is updated by the driver given pCount == 0. / - The application may provide a buffer that is larger than the number of / properties, but the application must set pCount to the number of / properties to retrieve. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDeviceImportExternalSemaphoreExt

func ZeDeviceImportExternalSemaphoreExt(
	hDevice ZeDeviceHandle,
	desc *ZeExternalSemaphoreExtDesc,
	phSemaphore *ZeExternalSemaphoreExtHandle,
) (ZeResult, error)

ZeDeviceImportExternalSemaphoreExt Import an external semaphore / / @details / - Imports an external semaphore. / - This function may be called from simultaneous threads with the same / device handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phSemaphore` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x1ff < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeDevicePciGetPropertiesExt

func ZeDevicePciGetPropertiesExt(
	hDevice ZeDeviceHandle,
	pPciProperties *ZePciExtProperties,
) (ZeResult, error)

ZeDevicePciGetPropertiesExt Get PCI properties - address, max speed / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - None / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pPciProperties`

func ZeDeviceReleaseExternalSemaphoreExt

func ZeDeviceReleaseExternalSemaphoreExt(
	hSemaphore ZeExternalSemaphoreExtHandle,
) (ZeResult, error)

ZeDeviceReleaseExternalSemaphoreExt Release an external semaphore / / @details / - The application must ensure the device is not currently referencing / the semaphore before it is released. / - The application must **not** call this function from simultaneous / threads with the same semaphore handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hSemaphore` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeDeviceReserveCacheExt

func ZeDeviceReserveCacheExt(
	hDevice ZeDeviceHandle,
	cacheLevel uintptr,
	cacheReservationSize uintptr,
) (ZeResult, error)

ZeDeviceReserveCacheExt Reserve Cache on Device / / @details / - The application may call this function but may not be successful as / some other application may have reserve prior / / @remarks / _Analogues_ / - None / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice`

func ZeDeviceSetCacheAdviceExt

func ZeDeviceSetCacheAdviceExt(
	hDevice ZeDeviceHandle,
	ptr unsafe.Pointer,
	regionSize uintptr,
	cacheRegion ZeCacheExtRegion,
) (ZeResult, error)

ZeDeviceSetCacheAdviceExt Assign VA section to use reserved section / / @details / - The application may call this function to assign VA to particular / reservartion region / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_CACHE_EXT_REGION_NON_RESERVED < cacheRegion` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeDeviceSynchronize

func ZeDeviceSynchronize(
	hDevice ZeDeviceHandle,
) (ZeResult, error)

ZeDeviceSynchronize Synchronizes all command queues related to the device. / / @details / - The application may call this function from simultaneous threads with / the same device handle. / - The implementation of this function should be thread-safe. / - This function blocks until all preceding submissions to all queues on / the device are completed. / - This function returns an error if device execution fails. / - This function hangs indefinitely if the device is blocked on a / non-signaled event. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice`

func ZeDriverGet

func ZeDriverGet(
	pCount *uint32,
	phDrivers *ZeDriverHandle,
) (ZeResult, error)

ZeDriverGet Retrieves driver instances / / @details / - @deprecated since 1.10. Please use zeInitDrivers() / - Usage of zeInitDrivers and zeDriverGet is mutually exclusive and / should not be used together. Usage of them together will result in / undefined behavior. / - A driver represents a collection of physical devices. / - Multiple calls to this function will return identical driver handles, / in the same order. / - The application may pass nullptr for pDrivers when only querying the / number of drivers. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clGetPlatformIDs / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDriverGetApiVersion

func ZeDriverGetApiVersion(
	hDriver ZeDriverHandle,
	version *ZeApiVersion,
) (ZeResult, error)

ZeDriverGetApiVersion Returns the API version supported by the specified driver / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == version`

func ZeDriverGetExtensionFunctionAddress

func ZeDriverGetExtensionFunctionAddress(
	hDriver ZeDriverHandle,
	name *byte,
	ppFunctionAddress *unsafe.Pointer,
) (ZeResult, error)

ZeDriverGetExtensionFunctionAddress Retrieves function pointer for vendor-specific or experimental / extensions / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == name` / + `nullptr == ppFunctionAddress`

func ZeDriverGetExtensionProperties

func ZeDriverGetExtensionProperties(
	hDriver ZeDriverHandle,
	pCount *uint32,
	pExtensionProperties *ZeDriverExtensionProperties,
) (ZeResult, error)

ZeDriverGetExtensionProperties Retrieves extension properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **vkEnumerateInstanceExtensionProperties** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeDriverGetIpcProperties

func ZeDriverGetIpcProperties(
	hDriver ZeDriverHandle,
	pIpcProperties *ZeDriverIpcProperties,
) (ZeResult, error)

ZeDriverGetIpcProperties Retrieves IPC attributes of the driver / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pIpcProperties`

func ZeDriverGetLastErrorDescription

func ZeDriverGetLastErrorDescription(
	hDriver ZeDriverHandle,
	ppString **byte,
) (ZeResult, error)

ZeDriverGetLastErrorDescription Retrieves a string describing the last error code returned by the / driver in the current thread. / / @details / - String returned is thread local. / - String is only updated on calls returning an error, i.e., not on calls / returning ::ZE_RESULT_SUCCESS. / - String may be empty if driver considers error code is already explicit / enough to describe cause. / - Memory pointed to by ppString is owned by the driver. / - String returned is null-terminated. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ppString`

func ZeDriverGetProperties

func ZeDriverGetProperties(
	hDriver ZeDriverHandle,
	pDriverProperties *ZeDriverProperties,
) (ZeResult, error)

ZeDriverGetProperties Retrieves properties of the driver. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clGetPlatformInfo** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pDriverProperties`

func ZeDriverRTASFormatCompatibilityCheckExp

func ZeDriverRTASFormatCompatibilityCheckExp(
	hDriver ZeDriverHandle,
	rtasFormatA ZeRtasFormatExp,
	rtasFormatB ZeRtasFormatExp,
) (ZeResult, error)

ZeDriverRTASFormatCompatibilityCheckExp Checks ray tracing acceleration structure format compatibility / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_FORMAT_EXP_MAX < rtasFormatA` / + `::ZE_RTAS_FORMAT_EXP_MAX < rtasFormatB` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_SUCCESS / + An acceleration structure built with `rtasFormatA` is compatible with devices that report `rtasFormatB`. / - ::ZE_RESULT_EXP_ERROR_OPERANDS_INCOMPATIBLE / + An acceleration structure built with `rtasFormatA` is **not** compatible with devices that report `rtasFormatB`.

func ZeDriverRTASFormatCompatibilityCheckExt

func ZeDriverRTASFormatCompatibilityCheckExt(
	hDriver ZeDriverHandle,
	rtasFormatA ZeRtasFormatExt,
	rtasFormatB ZeRtasFormatExt,
) (ZeResult, error)

ZeDriverRTASFormatCompatibilityCheckExt Checks ray tracing acceleration structure format compatibility / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_FORMAT_EXT_MAX < rtasFormatA` / + `::ZE_RTAS_FORMAT_EXT_MAX < rtasFormatB` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_SUCCESS / + An acceleration structure built with `rtasFormatA` is compatible with devices that report `rtasFormatB`. / - ::ZE_RESULT_EXT_ERROR_OPERANDS_INCOMPATIBLE / + An acceleration structure built with `rtasFormatA` is **not** compatible with devices that report `rtasFormatB`.

func ZeEventCounterBasedCloseIpcHandle

func ZeEventCounterBasedCloseIpcHandle(
	hEvent ZeEventHandle,
) (ZeResult, error)

ZeEventCounterBasedCloseIpcHandle Closes an IPC event handle in the current process. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeEventCounterBasedCreate

func ZeEventCounterBasedCreate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeEventCounterBasedDesc,
	phEvent *ZeEventHandle,
) (ZeResult, error)

ZeEventCounterBasedCreate Creates Counter Based Event / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phEvent` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3f < desc->flags` / + `0x7 < desc->signal` / + `0x7 < desc->wait` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT

func ZeEventCounterBasedGetDeviceAddress

func ZeEventCounterBasedGetDeviceAddress(
	hEvent ZeEventHandle,
	completionValue *uint64,
	deviceAddress *uint64,
) (ZeResult, error)

ZeEventCounterBasedGetDeviceAddress Returns Counter Based Event completion value (counter) and its device / address / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == completionValue` / + `nullptr == deviceAddress` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT

func ZeEventCounterBasedGetIpcHandle

func ZeEventCounterBasedGetIpcHandle(
	hEvent ZeEventHandle,
	phIpc *ZeIpcEventCounterBasedHandle,
) (ZeResult, error)

ZeEventCounterBasedGetIpcHandle Gets an IPC counter based event handle that can be shared with another / process. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phIpc` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT

func ZeEventCounterBasedOpenIpcHandle

func ZeEventCounterBasedOpenIpcHandle(
	hContext ZeContextHandle,
	hIpc *ZeIpcEventCounterBasedHandle,
	phEvent *ZeEventHandle,
) (ZeResult, error)

ZeEventCounterBasedOpenIpcHandle Opens an IPC event handle to retrieve from another process. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phEvent` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT

func ZeEventCreate

func ZeEventCreate(
	hEventPool ZeEventPoolHandle,
	desc *ZeEventDesc,
	phEvent *ZeEventHandle,
) (ZeResult, error)

ZeEventCreate Creates an event from the pool. / / @details / - An event is used to communicate fine-grain host-to-device, / device-to-host or device-to-device dependencies have completed. / - The application must ensure the location in the pool is not being used / by another event. / - The application must **not** call this function from simultaneous / threads with the same event pool handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clCreateUserEvent** / - vkCreateEvent / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEventPool` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phEvent` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < desc->signal` / + `0x7 < desc->wait` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeEventDestroy

func ZeEventDestroy(
	hEvent ZeEventHandle,
) (ZeResult, error)

ZeEventDestroy Deletes an event object. / / @details / - The application must ensure the device is not currently referencing / the event before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this event. / - The application must **not** call this function from simultaneous / threads with the same event handle. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clReleaseEvent** / - vkDestroyEvent / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeEventGetEventPool

func ZeEventGetEventPool(
	hEvent ZeEventHandle,
	phEventPool *ZeEventPoolHandle,
) (ZeResult, error)

ZeEventGetEventPool Gets the handle of the event pool for the event. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phEventPool`

func ZeEventGetSignalScope

func ZeEventGetSignalScope(
	hEvent ZeEventHandle,
	pSignalScope *ZeEventScopeFlags,
) (ZeResult, error)

ZeEventGetSignalScope Gets the signal event scope. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSignalScope`

func ZeEventGetWaitScope

func ZeEventGetWaitScope(
	hEvent ZeEventHandle,
	pWaitScope *ZeEventScopeFlags,
) (ZeResult, error)

ZeEventGetWaitScope Gets the wait event scope. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pWaitScope`

func ZeEventHostReset

func ZeEventHostReset(
	hEvent ZeEventHandle,
) (ZeResult, error)

ZeEventHostReset The current host thread resets an event back to not signaled state. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - vkResetEvent / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeEventHostSignal

func ZeEventHostSignal(
	hEvent ZeEventHandle,
) (ZeResult, error)

ZeEventHostSignal Signals a event from host. / / @details / - The duration of an event created from an event pool that was created / using ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP or / ::ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP flags is undefined. / However, for consistency and orthogonality the event will report / correctly as signaled when used by other event API functionality. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clSetUserEventStatus / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeEventHostSynchronize

func ZeEventHostSynchronize(
	hEvent ZeEventHandle,
	timeout uint64,
) (ZeResult, error)

ZeEventHostSynchronize The current host thread waits on an event to be signaled. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - clWaitForEvents / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_NOT_READY / + timeout expired

func ZeEventPoolCloseIpcHandle

func ZeEventPoolCloseIpcHandle(
	hEventPool ZeEventPoolHandle,
) (ZeResult, error)

ZeEventPoolCloseIpcHandle Closes an IPC event handle in the current process. / / @details / - Closes an IPC event handle by destroying events that were opened in / this process using ::zeEventPoolOpenIpcHandle. / - The application must **not** call this function from simultaneous / threads with the same event pool handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEventPool`

func ZeEventPoolCreate

func ZeEventPoolCreate(
	hContext ZeContextHandle,
	desc *ZeEventPoolDesc,
	numDevices uint32,
	phDevices *ZeDeviceHandle,
	phEventPool *ZeEventPoolHandle,
) (ZeResult, error)

ZeEventPoolCreate Creates a pool of events on the context. / / @details / - The application must only use events within the pool for the / device(s), or their sub-devices, which were provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phEventPool` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0xf < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `0 == desc->count` / + `(nullptr == phDevices) && (0 < numDevices)`

func ZeEventPoolDestroy

func ZeEventPoolDestroy(
	hEventPool ZeEventPoolHandle,
) (ZeResult, error)

ZeEventPoolDestroy Deletes an event pool object. / / @details / - The application must destroy all event handles created from the pool / before destroying the pool itself. / - The application must ensure the device is not currently referencing / the any event within the pool before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this event pool. / - The application must **not** call this function from simultaneous / threads with the same event pool handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEventPool` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeEventPoolGetContextHandle

func ZeEventPoolGetContextHandle(
	hEventPool ZeEventPoolHandle,
	phContext *ZeContextHandle,
) (ZeResult, error)

ZeEventPoolGetContextHandle Gets the handle of the context on which the event pool was created. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEventPool` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phContext`

func ZeEventPoolGetFlags

func ZeEventPoolGetFlags(
	hEventPool ZeEventPoolHandle,
	pFlags *ZeEventPoolFlags,
) (ZeResult, error)

ZeEventPoolGetFlags Gets the creation flags used to create the event pool. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEventPool` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pFlags`

func ZeEventPoolGetIpcHandle

func ZeEventPoolGetIpcHandle(
	hEventPool ZeEventPoolHandle,
	phIpc *ZeIpcEventPoolHandle,
) (ZeResult, error)

ZeEventPoolGetIpcHandle Gets an IPC event pool handle for the specified event handle that can / be shared with another process. / / @details / - Event pool must have been created with ::ZE_EVENT_POOL_FLAG_IPC. / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEventPool` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phIpc` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZeEventPoolOpenIpcHandle

func ZeEventPoolOpenIpcHandle(
	hContext ZeContextHandle,
	hIpc *ZeIpcEventPoolHandle,
	phEventPool *ZeEventPoolHandle,
) (ZeResult, error)

ZeEventPoolOpenIpcHandle Opens an IPC event pool handle to retrieve an event pool handle from / another process. / / @details / - Multiple calls to this function with the same IPC handle will return / unique event pool handles. / - The event handle in this process should not be freed with / ::zeEventPoolDestroy, but rather with ::zeEventPoolCloseIpcHandle. / - If the original event pool has been created for a device containing a / number of sub-devices, then the event pool / returned by this call may be used on a device containing the same / number of sub-devices, or on any of / those sub-devices. / - However, if the original event pool has been created for a sub-device, / then the event pool returned by this call / cannot be used on a device containing any number of sub-devices, and / must be used only in a sub-device. This ensures / functional correctness for any implementation or optimizations the / underlying Level Zero driver may do on / event pools and events. / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phEventPool`

func ZeEventPoolPutIpcHandle

func ZeEventPoolPutIpcHandle(
	hContext ZeContextHandle,
	hIpc *ZeIpcEventPoolHandle,
) (ZeResult, error)

ZeEventPoolPutIpcHandle Returns an IPC event pool handle to the driver / / @details / - This call must be used for IPC handles previously obtained with / ::zeEventPoolGetIpcHandle. / - Upon call, driver may release any underlying resources associated with / the IPC handle. / For instance, it may close the file descriptor contained in the IPC / handle, if such type of handle is being used by the driver. / - This call does not destroy the original event pool for which the IPC / handle was created. / - This function may **not** be called from simultaneous threads with the / same IPC handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext`

func ZeEventQueryKernelTimestamp

func ZeEventQueryKernelTimestamp(
	hEvent ZeEventHandle,
	dstptr *ZeKernelTimestampResult,
) (ZeResult, error)

ZeEventQueryKernelTimestamp Queries an event's timestamp value on the host. / / @details / - The application must ensure the event was created from an event pool / that was created using ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP or / ::ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP flag. / - The destination memory will be unmodified if the event has not been / signaled. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_NOT_READY / + not signaled

func ZeEventQueryKernelTimestampsExt

func ZeEventQueryKernelTimestampsExt(
	hEvent ZeEventHandle,
	hDevice ZeDeviceHandle,
	pCount *uint32,
	pResults *ZeEventQueryKernelTimestampsResultsExtProperties,
) (ZeResult, error)

ZeEventQueryKernelTimestampsExt Query an event's timestamp value on the host, with domain preference. / / @details / - For collecting *only* kernel timestamps, the application must ensure / the event was created from an event pool that was created using / ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP flag. / - For collecting synchronized timestamps, the application must ensure / the event was created from an event pool that was created using / ::ZE_EVENT_POOL_FLAG_KERNEL_MAPPED_TIMESTAMP flag. Kernel timestamps / are also available from this type of event pool, but there is a / performance cost. / - The destination memory will be unmodified if the event has not been / signaled. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support / ::ZE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_NAME extension. / - The implementation must return all timestamps for the specified event / and device pair. / - The implementation must return all timestamps for all sub-devices when / device handle is parent device. / - The implementation may return all timestamps for sub-devices when / device handle is sub-device or may return 0 for count. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeEventQueryStatus

func ZeEventQueryStatus(
	hEvent ZeEventHandle,
) (ZeResult, error)

ZeEventQueryStatus Queries an event object's status on the host. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **clGetEventInfo** / - vkGetEventStatus / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_NOT_READY / + not signaled

func ZeEventQueryTimestampsExp

func ZeEventQueryTimestampsExp(
	hEvent ZeEventHandle,
	hDevice ZeDeviceHandle,
	pCount *uint32,
	pTimestamps *ZeKernelTimestampResult,
) (ZeResult, error)

ZeEventQueryTimestampsExp Query event timestamps for a device or sub-device. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_EVENT_QUERY_TIMESTAMPS_EXP_NAME / extension. / - The implementation must return all timestamps for the specified event / and device pair. / - The implementation must return all timestamps for all sub-devices when / device handle is parent device. / - The implementation may return all timestamps for sub-devices when / device handle is sub-device or may return 0 for count. / / @remarks / _Analogues_ / - None / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEvent` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeFabricEdgeGetExp

func ZeFabricEdgeGetExp(
	hVertexA ZeFabricVertexHandle,
	hVertexB ZeFabricVertexHandle,
	pCount *uint32,
	phEdges *ZeFabricEdgeHandle,
) (ZeResult, error)

ZeFabricEdgeGetExp Retrieves all fabric edges between provided pair of fabric vertices / / @details / - A fabric edge represents one or more physical links between two fabric / vertices. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVertexA` / + `nullptr == hVertexB` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeFabricEdgeGetPropertiesExp

func ZeFabricEdgeGetPropertiesExp(
	hEdge ZeFabricEdgeHandle,
	pEdgeProperties *ZeFabricEdgeExpProperties,
) (ZeResult, error)

ZeFabricEdgeGetPropertiesExp Retrieves properties of the fabric edge. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEdge` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pEdgeProperties`

func ZeFabricEdgeGetVerticesExp

func ZeFabricEdgeGetVerticesExp(
	hEdge ZeFabricEdgeHandle,
	phVertexA *ZeFabricVertexHandle,
	phVertexB *ZeFabricVertexHandle,
) (ZeResult, error)

ZeFabricEdgeGetVerticesExp Retrieves fabric vertices connected by a fabric edge / / @details / - A fabric vertex represents either a device or a switch connected to / other fabric vertices via a fabric edge. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEdge` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phVertexA` / + `nullptr == phVertexB`

func ZeFabricVertexGetDeviceExp

func ZeFabricVertexGetDeviceExp(
	hVertex ZeFabricVertexHandle,
	phDevice *ZeDeviceHandle,
) (ZeResult, error)

ZeFabricVertexGetDeviceExp Returns device handle from fabric vertex handle. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVertex` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phDevice` / - ::ZE_RESULT_EXP_ERROR_VERTEX_IS_NOT_DEVICE / + Provided fabric vertex handle does not correspond to a device or subdevice. / - ::ZE_RESULT_EXP_ERROR_REMOTE_DEVICE / + Provided fabric vertex handle corresponds to remote device or subdevice.

func ZeFabricVertexGetExp

func ZeFabricVertexGetExp(
	hDriver ZeDriverHandle,
	pCount *uint32,
	phVertices *ZeFabricVertexHandle,
) (ZeResult, error)

ZeFabricVertexGetExp Retrieves fabric vertices within a driver / / @details / - A fabric vertex represents either a device or a switch connected to / other fabric vertices. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeFabricVertexGetPropertiesExp

func ZeFabricVertexGetPropertiesExp(
	hVertex ZeFabricVertexHandle,
	pVertexProperties *ZeFabricVertexExpProperties,
) (ZeResult, error)

ZeFabricVertexGetPropertiesExp Retrieves properties of the fabric vertex. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVertex` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pVertexProperties`

func ZeFabricVertexGetSubVerticesExp

func ZeFabricVertexGetSubVerticesExp(
	hVertex ZeFabricVertexHandle,
	pCount *uint32,
	phSubvertices *ZeFabricVertexHandle,
) (ZeResult, error)

ZeFabricVertexGetSubVerticesExp Retrieves a fabric sub-vertex from a fabric vertex / / @details / - Multiple calls to this function will return identical fabric vertex / handles, in the same order. / - The number of handles returned from this function is affected by the / `ZE_AFFINITY_MASK` environment variable. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVertex` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeFenceCreate

func ZeFenceCreate(
	hCommandQueue ZeCommandQueueHandle,
	desc *ZeFenceDesc,
	phFence *ZeFenceHandle,
) (ZeResult, error)

ZeFenceCreate Creates a fence for the command queue. / / @details / - A fence is a heavyweight synchronization primitive used to communicate / to the host that command list execution has completed. / - The application must only use the fence for the command queue which / was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @remarks / _Analogues_ / - **vkCreateFence** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandQueue` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phFence` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x1 < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeFenceDestroy

func ZeFenceDestroy(
	hFence ZeFenceHandle,
) (ZeResult, error)

ZeFenceDestroy Deletes a fence object. / / @details / - The application must ensure the device is not currently referencing / the fence before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this fence. / - The application must **not** call this function from simultaneous / threads with the same fence handle. / - The implementation of this function must be thread-safe. / / @remarks / _Analogues_ / - **vkDestroyFence** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFence` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeFenceHostSynchronize

func ZeFenceHostSynchronize(
	hFence ZeFenceHandle,
	timeout uint64,
) (ZeResult, error)

ZeFenceHostSynchronize The current host thread waits on a fence to be signaled. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **vkWaitForFences** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFence` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_NOT_READY / + timeout expired

func ZeFenceQueryStatus

func ZeFenceQueryStatus(
	hFence ZeFenceHandle,
) (ZeResult, error)

ZeFenceQueryStatus Queries a fence object's status. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **vkGetFenceStatus** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFence` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_NOT_READY / + not signaled

func ZeFenceReset

func ZeFenceReset(
	hFence ZeFenceHandle,
) (ZeResult, error)

ZeFenceReset Reset a fence back to the not signaled state. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @remarks / _Analogues_ / - **vkResetFences** / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFence`

func ZeImageCreate

func ZeImageCreate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeImageDesc,
	phImage *ZeImageHandle,
) (ZeResult, error)

ZeImageCreate Creates an image on the context. / / @details / - The application must only use the image for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @remarks / _Analogues_ / - clCreateImage / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phImage` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < desc->flags` / + `::ZE_IMAGE_TYPE_BUFFER < desc->type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT

func ZeImageDestroy

func ZeImageDestroy(
	hImage ZeImageHandle,
) (ZeResult, error)

ZeImageDestroy Deletes an image object. / / @details / - The application must ensure the device is not currently referencing / the image before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this image. / - The application must **not** call this function from simultaneous / threads with the same image handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hImage` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeImageGetAllocPropertiesExt

func ZeImageGetAllocPropertiesExt(
	hContext ZeContextHandle,
	hImage ZeImageHandle,
	pImageAllocProperties *ZeImageAllocationExtProperties,
) (ZeResult, error)

ZeImageGetAllocPropertiesExt Retrieves attributes of an image allocation / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pImageAllocProperties`

func ZeImageGetDeviceOffsetExp

func ZeImageGetDeviceOffsetExp(
	hImage ZeImageHandle,
	pDeviceOffset *uint64,
) (ZeResult, error)

ZeImageGetDeviceOffsetExp Get bindless device offset for image / / @details / - The application may call this function from simultaneous threads / - The implementation of this function must be thread-safe. / - The implementation of this function should be lock-free. / - The implementation must support ::ZE_BINDLESS_IMAGE_EXP_NAME / extension. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pDeviceOffset`

func ZeImageGetMemoryPropertiesExp

func ZeImageGetMemoryPropertiesExp(
	hImage ZeImageHandle,
	pMemoryProperties *ZeImageMemoryPropertiesExp,
) (ZeResult, error)

ZeImageGetMemoryPropertiesExp Query image memory properties. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_IMAGE_MEMORY_PROPERTIES_EXP_NAME / extension. / / @remarks / _Analogues_ / - None / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pMemoryProperties`

func ZeImageGetProperties

func ZeImageGetProperties(
	hDevice ZeDeviceHandle,
	desc *ZeImageDesc,
	pImageProperties *ZeImageProperties,
) (ZeResult, error)

ZeImageGetProperties Retrieves supported properties of an image. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == pImageProperties` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < desc->flags` / + `::ZE_IMAGE_TYPE_BUFFER < desc->type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeImageViewCreateExp

func ZeImageViewCreateExp(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeImageDesc,
	hImage ZeImageHandle,
	phImageView *ZeImageHandle,
) (ZeResult, error)

ZeImageViewCreateExp Create image view on the context. / / @details / - The application must only use the image view for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_IMAGE_VIEW_EXP_NAME extension. / - Image views are treated as images from the API. / - Image views provide a mechanism to redescribe how an image is / interpreted (e.g. different format). / - Image views become disabled when their corresponding image resource is / destroyed. / - Use ::zeImageDestroy to destroy image view objects. / - Note: This function is deprecated and replaced by / ::zeImageViewCreateExt. / / @remarks / _Analogues_ / - None / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / + `nullptr == hImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phImageView` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < desc->flags` / + `::ZE_IMAGE_TYPE_BUFFER < desc->type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT

func ZeImageViewCreateExt

func ZeImageViewCreateExt(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeImageDesc,
	hImage ZeImageHandle,
	phImageView *ZeImageHandle,
) (ZeResult, error)

ZeImageViewCreateExt Create image view on the context. / / @details / - The application must only use the image view for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_IMAGE_VIEW_EXT_NAME extension. / - Image views are treated as images from the API. / - Image views provide a mechanism to redescribe how an image is / interpreted (e.g. different format). / - Image views become disabled when their corresponding image resource is / destroyed. / - Use ::zeImageDestroy to destroy image view objects. / / @remarks / _Analogues_ / - None / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / + `nullptr == hImage` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phImageView` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < desc->flags` / + `::ZE_IMAGE_TYPE_BUFFER < desc->type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT

func ZeInit

func ZeInit(
	flags ZeInitFlags,
) (ZeResult, error)

ZeInit Initialize the 'oneAPI' driver(s) / / @details / - @deprecated since 1.10. Please use zeInitDrivers() / - The application must call this function or zeInitDrivers before / calling any other function. / - If this function is not called then all other functions will return / ::ZE_RESULT_ERROR_UNINITIALIZED. / - Only one instance of each driver will be initialized per process. / - The application may call this function multiple times with different / flags or environment variables enabled. / - The application must call this function after forking new processes. / Each forked process must call this function. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe for scenarios / where multiple libraries may initialize the driver(s) simultaneously. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeInitDrivers

func ZeInitDrivers(
	pCount *uint32,
	phDrivers *ZeDriverHandle,
	desc *ZeInitDriverTypeDesc,
) (ZeResult, error)

ZeInitDrivers Initialize the 'oneAPI' driver(s) based on the driver types requested / and retrieve the driver handles. / / @details / - The application must call this function or zeInit before calling any / other function. (zeInit is [Deprecated] and is replaced by / zeInitDrivers) / - Calls to zeInit[Deprecated] or InitDrivers will not alter the drivers / retrieved through either api. / - Drivers init through zeInit[Deprecated] or InitDrivers will not be / reInitialized once init in an application. The Loader will determine / if the already init driver needs to be delivered to the user through / the init type flags. / - Already init Drivers will not be uninitialized if the call to / InitDrivers does not include that driver's type. Those init drivers / which don't match the init flags will not have their driver handles / returned to the user in that InitDrivers call. / - If this function or zeInit[Deprecated] is not called, then all other / functions will return ::ZE_RESULT_ERROR_UNINITIALIZED. / - Only one instance of each driver will be initialized per process. / - A driver represents a collection of physical devices. / - Multiple calls to this function will return identical driver handles, / in the same order. / - The drivers returned to the caller will be based on the init types / which state the drivers to be included. / - The application may pass nullptr for pDrivers when only querying the / number of drivers. / - The application may call this function multiple times with different / flags or environment variables enabled. / - The application must call this function after forking new processes. / Each forked process must call this function. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe for scenarios / where multiple libraries may initialize the driver(s) simultaneously. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount` / + `nullptr == desc` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x0 == desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeKernelCreate

func ZeKernelCreate(
	hModule ZeModuleHandle,
	desc *ZeKernelDesc,
	phKernel *ZeKernelHandle,
) (ZeResult, error)

ZeKernelCreate Create a kernel from the module. / / @details / - Modules that have unresolved imports need to be dynamically linked / before a kernel can be created from them. (See ::zeModuleDynamicLink) / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == desc->pKernelName` / + `nullptr == phKernel` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_KERNEL_NAME / - ::ZE_RESULT_ERROR_INVALID_MODULE_UNLINKED

func ZeKernelDestroy

func ZeKernelDestroy(
	hKernel ZeKernelHandle,
) (ZeResult, error)

ZeKernelDestroy Destroys a kernel object / / @details / - The application must ensure the device is not currently referencing / the kernel before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this kernel. / - The application must **not** call this function from simultaneous / threads with the same kernel handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeKernelGetAllocationPropertiesExp

func ZeKernelGetAllocationPropertiesExp(
	hKernel ZeKernelHandle,
	pCount *uint32,
	pAllocationProperties *ZeKernelAllocationExpProperties,
) (ZeResult, error)

ZeKernelGetAllocationPropertiesExp Retrieves kernel allocation properties. / / @details / - A valid kernel handle must be created with ::zeKernelCreate. / - Returns array of kernel allocation properties for kernel handle. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeKernelGetBinaryExp

func ZeKernelGetBinaryExp(
	hKernel ZeKernelHandle,
	pSize *uintptr,
	pKernelBinary *uint8,
) (ZeResult, error)

ZeKernelGetBinaryExp Retrieves kernel binary program data (ISA GEN format). / / @details / - A valid kernel handle must be created with ::zeKernelCreate. / - Returns Intel Graphics Assembly (GEN ISA) format binary program data / for kernel handle. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSize` / + `nullptr == pKernelBinary`

func ZeKernelGetIndirectAccess

func ZeKernelGetIndirectAccess(
	hKernel ZeKernelHandle,
	pFlags *ZeKernelIndirectAccessFlags,
) (ZeResult, error)

ZeKernelGetIndirectAccess Retrieve kernel indirect access flags. / / @details / - This function may be called from simultaneous threads with the same / Kernel handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pFlags`

func ZeKernelGetName

func ZeKernelGetName(
	hKernel ZeKernelHandle,
	pSize *uintptr,
	pName *byte,
) (ZeResult, error)

ZeKernelGetName Retrieve kernel name from Kernel. / / @details / - The caller can pass nullptr for pName when querying only for size. / - The implementation will copy the kernel name into a buffer supplied by / the caller. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSize`

func ZeKernelGetProperties

func ZeKernelGetProperties(
	hKernel ZeKernelHandle,
	pKernelProperties *ZeKernelProperties,
) (ZeResult, error)

ZeKernelGetProperties Retrieve kernel properties. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pKernelProperties`

func ZeKernelGetSourceAttributes

func ZeKernelGetSourceAttributes(
	hKernel ZeKernelHandle,
	pSize *uint32,
	pString **byte,
) (ZeResult, error)

ZeKernelGetSourceAttributes Retrieve all declared kernel attributes (i.e. can be specified with / __attribute__ in runtime language). / / @details / - This function may be called from simultaneous threads with the same / Kernel handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSize`

func ZeKernelSchedulingHintExp

func ZeKernelSchedulingHintExp(
	hKernel ZeKernelHandle,
	pHint *ZeSchedulingHintExpDesc,
) (ZeResult, error)

ZeKernelSchedulingHintExp Provide kernel scheduling hints that may improve performance / / @details / - The scheduling hints may improve performance only and are not required / for correctness. / - If a specified scheduling hint is unsupported it will be silently / ignored. / - If two conflicting scheduling hints are specified there is no defined behavior; / the hints may be ignored or one hint may be chosen arbitrarily. / - The application must not call this function from simultaneous threads / with the same kernel handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pHint` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < pHint->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeKernelSetArgumentValue

func ZeKernelSetArgumentValue(
	hKernel ZeKernelHandle,
	argIndex uint32,
	argSize uintptr,
	pArgValue unsafe.Pointer,
) (ZeResult, error)

ZeKernelSetArgumentValue Set kernel argument for a kernel. / / @details / - The argument values will be used when a / ::zeCommandListAppendLaunchKernel variant is called. / - The application must **not** call this function from simultaneous / threads with the same kernel handle. / - The implementation of this function should be lock-free. / - If argument is SLM (size), then SLM size in bytes for this resource is / provided as argument size and argument value is null / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_INDEX / - ::ZE_RESULT_ERROR_INVALID_KERNEL_ARGUMENT_SIZE / - ::ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT

func ZeKernelSetCacheConfig

func ZeKernelSetCacheConfig(
	hKernel ZeKernelHandle,
	flags ZeCacheConfigFlags,
) (ZeResult, error)

ZeKernelSetCacheConfig Sets the preferred cache configuration. / / @details / - The cache configuration will be used when a / ::zeCommandListAppendLaunchKernel variant is called. / - The application must **not** call this function from simultaneous / threads with the same kernel handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE

func ZeKernelSetGlobalOffsetExp

func ZeKernelSetGlobalOffsetExp(
	hKernel ZeKernelHandle,
	offsetX uint32,
	offsetY uint32,
	offsetZ uint32,
) (ZeResult, error)

ZeKernelSetGlobalOffsetExp Set global work offset for a kernel. / / @details / - The global work offset will be used when a / ::zeCommandListAppendLaunchKernel() variant is called. / - The application must **not** call this function from simultaneous / threads with the same kernel handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel`

func ZeKernelSetGroupSize

func ZeKernelSetGroupSize(
	hKernel ZeKernelHandle,
	groupSizeX uint32,
	groupSizeY uint32,
	groupSizeZ uint32,
) (ZeResult, error)

ZeKernelSetGroupSize Set group size for a kernel. / / @details / - The group size will be used when a ::zeCommandListAppendLaunchKernel / variant is called. / - The application must **not** call this function from simultaneous / threads with the same kernel handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION

func ZeKernelSetIndirectAccess

func ZeKernelSetIndirectAccess(
	hKernel ZeKernelHandle,
	flags ZeKernelIndirectAccessFlags,
) (ZeResult, error)

ZeKernelSetIndirectAccess Sets kernel indirect access flags. / / @details / - The application should specify which allocations will be indirectly / accessed by the kernel to allow driver to optimize which allocations / are made resident / - This function may **not** be called from simultaneous threads with the / same Kernel handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeKernelSuggestGroupSize

func ZeKernelSuggestGroupSize(
	hKernel ZeKernelHandle,
	globalSizeX uint32,
	globalSizeY uint32,
	globalSizeZ uint32,
	groupSizeX *uint32,
	groupSizeY *uint32,
	groupSizeZ *uint32,
) (ZeResult, error)

ZeKernelSuggestGroupSize Query a suggested group size for a kernel given a global size for each / dimension. / / @details / - This function ignores the group size that is set using / ::zeKernelSetGroupSize. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == groupSizeX` / + `nullptr == groupSizeY` / + `nullptr == groupSizeZ` / - ::ZE_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION

func ZeKernelSuggestMaxCooperativeGroupCount

func ZeKernelSuggestMaxCooperativeGroupCount(
	hKernel ZeKernelHandle,
	totalGroupCount *uint32,
) (ZeResult, error)

ZeKernelSuggestMaxCooperativeGroupCount Query a suggested max group count for a cooperative kernel. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - Applications are recommended to use ::zeKernelSuggestGroupSize and / ::zeKernelSetGroupSize first before calling this function and / launching cooperative kernels. Otherwise, implementation may return / ::ZE_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == totalGroupCount`

func ZeMemAllocDevice

func ZeMemAllocDevice(
	hContext ZeContextHandle,
	device_desc *ZeDeviceMemAllocDesc,
	size uintptr,
	alignment uintptr,
	hDevice ZeDeviceHandle,
	pptr *unsafe.Pointer,
) (ZeResult, error)

ZeMemAllocDevice Allocates device memory on the context. / / @details / - Device allocations are owned by a specific device. / - In general, a device allocation may only be accessed by the device / that owns it. / - The application must only use the memory allocation for the context / and device, or its sub-devices, which was provided during allocation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == device_desc` / + `nullptr == pptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < device_desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT / + Must be zero or a power-of-two / + `0 != (alignment & (alignment - 1))`

func ZeMemAllocHost

func ZeMemAllocHost(
	hContext ZeContextHandle,
	host_desc *ZeHostMemAllocDesc,
	size uintptr,
	alignment uintptr,
	pptr *unsafe.Pointer,
) (ZeResult, error)

ZeMemAllocHost Allocates host memory on the context. / / @details / - Host allocations are owned by the host process. / - Host allocations are accessible by the host and all devices within the / driver's context. / - Host allocations are frequently used as staging areas to transfer data / to or from devices. / - The application must only use the memory allocation for the context / which was provided during allocation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == host_desc` / + `nullptr == pptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0xf < host_desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT / + Must be zero or a power-of-two / + `0 != (alignment & (alignment - 1))`

func ZeMemAllocShared

func ZeMemAllocShared(
	hContext ZeContextHandle,
	device_desc *ZeDeviceMemAllocDesc,
	host_desc *ZeHostMemAllocDesc,
	size uintptr,
	alignment uintptr,
	hDevice ZeDeviceHandle,
	pptr *unsafe.Pointer,
) (ZeResult, error)

ZeMemAllocShared Allocates shared memory on the context. / / @details / - Shared allocations share ownership between the host and one or more / devices. / - Shared allocations may optionally be associated with a device by / passing a handle to the device. / - Devices supporting only single-device shared access capabilities may / access shared memory associated with the device. / For these devices, ownership of the allocation is shared between the / host and the associated device only. / - Passing nullptr as the device handle does not associate the shared / allocation with any device. / For allocations with no associated device, ownership of the allocation / is shared between the host and all devices supporting cross-device / shared access capabilities. / - The application must only use the memory allocation for the context / and device, or its sub-devices, which was provided during allocation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == device_desc` / + `nullptr == host_desc` / + `nullptr == pptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < device_desc->flags` / + `0xf < host_desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT / + Must be zero or a power-of-two / + `0 != (alignment & (alignment - 1))`

func ZeMemCloseIpcHandle

func ZeMemCloseIpcHandle(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
) (ZeResult, error)

ZeMemCloseIpcHandle Closes an IPC memory handle / / @details / - Closes an IPC memory handle by unmapping memory that was opened in / this process using ::zeMemOpenIpcHandle. / - The application must **not** call this function from simultaneous / threads with the same pointer. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr`

func ZeMemFree

func ZeMemFree(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
) (ZeResult, error)

ZeMemFree Frees allocated host memory, device memory, or shared memory on the / context. / / @details / - The application must ensure the device is not currently referencing / the memory before it is freed / - The implementation will use the default and immediate policy to / schedule all Host and Device allocations associated with this memory / to be freed, without any safety checking. Actual freeing of memory is / specific to user mode driver and kernel mode driver implementation and / may be done asynchronously. / - The application must **not** call this function from simultaneous / threads with the same pointer. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr`

func ZeMemFreeExt

func ZeMemFreeExt(
	hContext ZeContextHandle,
	pMemFreeDesc *ZeMemoryFreeExtDesc,
	ptr unsafe.Pointer,
) (ZeResult, error)

ZeMemFreeExt Frees allocated host memory, device memory, or shared memory on the / context using the specified free policy. / / @details / - Similar to zeMemFree, with added parameter to choose the free policy. / - Does not gaurantee memory is freed upon return. See free policy / descriptions for details. / - The application must **not** call this function from simultaneous / threads with the same pointer. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pMemFreeDesc` / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < pMemFreeDesc->freePolicy` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeMemGetAddressRange

func ZeMemGetAddressRange(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	pBase *unsafe.Pointer,
	pSize *uintptr,
) (ZeResult, error)

ZeMemGetAddressRange Retrieves the base address and/or size of an allocation / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_ADDRESS_NOT_FOUND

func ZeMemGetAllocProperties

func ZeMemGetAllocProperties(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	pMemAllocProperties *ZeMemoryAllocationProperties,
	phDevice *ZeDeviceHandle,
) (ZeResult, error)

ZeMemGetAllocProperties Retrieves attributes of a memory allocation / / @details / - The application may call this function from simultaneous threads. / - The application may query attributes of a memory allocation unrelated / to the context. / When this occurs, the returned allocation type will be / ::ZE_MEMORY_TYPE_UNKNOWN, and the returned identifier and associated / device is unspecified. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / + `nullptr == pMemAllocProperties`

func ZeMemGetAtomicAccessAttributeExp

func ZeMemGetAtomicAccessAttributeExp(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	ptr unsafe.Pointer,
	size uintptr,
	pAttr *ZeMemoryAtomicAttrExpFlags,
) (ZeResult, error)

ZeMemGetAtomicAccessAttributeExp Retrieves the atomic access attributes previously set for a shared / allocation / / @details / - The application may call this function from simultaneous threads / with the same pointer. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / + `nullptr == pAttr`

func ZeMemGetFileDescriptorFromIpcHandleExp

func ZeMemGetFileDescriptorFromIpcHandleExp(
	hContext ZeContextHandle,
	ipcHandle *ZeIpcMemHandle,
	pHandle *uint64,
) (ZeResult, error)

ZeMemGetFileDescriptorFromIpcHandleExp Gets the file descriptor contained in an IPC memory handle / / @details / - IPC memory handle must be a valid handle obtained with / ::zeMemGetIpcHandle. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pHandle`

func ZeMemGetIpcHandle

func ZeMemGetIpcHandle(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	pIpcHandle *ZeIpcMemHandle,
) (ZeResult, error)

ZeMemGetIpcHandle Creates an IPC memory handle for the specified allocation / / @details / - Takes a pointer to a device memory allocation and creates an IPC / memory handle for exporting it for use in another process. / - The pointer must be base pointer of a device or host memory / allocation; i.e. the value returned from ::zeMemAllocDevice or from / ::zeMemAllocHost, respectively. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / + `nullptr == pIpcHandle`

func ZeMemGetIpcHandleFromFileDescriptorExp

func ZeMemGetIpcHandleFromFileDescriptorExp(
	hContext ZeContextHandle,
	handle uint64,
	pIpcHandle *ZeIpcMemHandle,
) (ZeResult, error)

ZeMemGetIpcHandleFromFileDescriptorExp Creates an IPC memory handle out of a file descriptor / / @details / - Handle passed must be a valid file descriptor obtained with / ::ze_external_memory_export_fd_t via ::zeMemGetAllocProperties or / ::zePhysicalMemGetProperties. / - Returned IPC handle may contain metadata in addition to the file / descriptor. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pIpcHandle`

func ZeMemGetIpcHandleWithProperties

func ZeMemGetIpcHandleWithProperties(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	pNext unsafe.Pointer,
	pIpcHandle *ZeIpcMemHandle,
) (ZeResult, error)

ZeMemGetIpcHandleWithProperties Creates an IPC memory handle for the specified allocation with / properties for the requested handle. / / @details / - Takes a pointer to a device or host memory allocation and creates an / IPC memory handle for exporting it for use in another process. / - The pointer must be the base pointer of a device or host memory / allocation; i.e. the value returned from ::zeMemAllocDevice or from / ::zeMemAllocHost, respectively or allocated from / ::zePhysicalMemCreate. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / + `nullptr == pIpcHandle`

func ZeMemGetPitchFor2dImage

func ZeMemGetPitchFor2dImage(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	imageWidth uintptr,
	imageHeight uintptr,
	elementSizeInBytes uint32,
	rowPitch *uintptr,
) (ZeResult, error)

ZeMemGetPitchFor2dImage Retrieves pitch information that can be used to allocate USM memory / for a given image. / / @details / - Retrieves pitch for 2D image given the width, height and size in bytes / - The memory is then allocated using ::zeMemAllocDevice by providing / input size calculated as the returned pitch value multiplied by image height / - The application may call this function from simultaneous threads / - The implementation of this function must be thread-safe. / - The implementation of this function should be lock-free. / - The implementation must support ::ZE_BINDLESS_IMAGE_EXP_NAME extension. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice`

func ZeMemOpenIpcHandle

func ZeMemOpenIpcHandle(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	handle *ZeIpcMemHandle,
	flags ZeIpcMemoryFlags,
	pptr *unsafe.Pointer,
) (ZeResult, error)

ZeMemOpenIpcHandle Opens an IPC memory handle to retrieve a device pointer on the / context. / / @details / - Takes an IPC memory handle from a remote process and associates it / with a device pointer usable in this process. / - The device pointer in this process should not be freed with / ::zeMemFree, but rather with ::zeMemCloseIpcHandle. / - Multiple calls to this function with the same IPC handle will return / unique pointers. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pptr`

func ZeMemPutIpcHandle

func ZeMemPutIpcHandle(
	hContext ZeContextHandle,
	handle *ZeIpcMemHandle,
) (ZeResult, error)

ZeMemPutIpcHandle Returns an IPC memory handle to the driver / / @details / - This call may be used for IPC handles previously obtained with either / ::zeMemGetIpcHandle or with ::ze_external_memory_export_fd_t via / ::zeMemGetAllocProperties or ::zePhysicalMemGetProperties. / - Upon call, driver may release any underlying resources associated with / the IPC handle. / For instance, it may close the file descriptor contained in the IPC / handle, if such type of handle is being used by the driver. / - This call does not free the original allocation for which the IPC / handle was created. / - This function may **not** be called from simultaneous threads with the / same IPC handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext`

func ZeMemSetAtomicAccessAttributeExp

func ZeMemSetAtomicAccessAttributeExp(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	ptr unsafe.Pointer,
	size uintptr,
	attr ZeMemoryAtomicAttrExpFlags,
) (ZeResult, error)

ZeMemSetAtomicAccessAttributeExp Sets atomic access attributes for a shared allocation / / @details / - If the shared-allocation is owned by multiple devices (i.e. nullptr / was passed to ::zeMemAllocShared when creating it), then hDevice may be / passed to set the attributes in that specific device. If nullptr is / passed in hDevice, then the atomic attributes are set in all devices / associated with the allocation. / - If the atomic access attribute select is not supported by the driver, / ::ZE_RESULT_ERROR_INVALID_ARGUMENT is returned. / - The atomic access attribute may be only supported at a device-specific / granularity, such as at a page boundary. In this case, the memory range / may be expanded such that the start and end of the range satisfy granularity / requirements. / - When calling this function multiple times with different flags, only the / attributes from last call are honored. / - The application must not call this function for shared-allocations currently / being used by the device. / - The application must **not** call this function from simultaneous threads / with the same pointer. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7f < attr` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeModuleBuildLogDestroy

func ZeModuleBuildLogDestroy(
	hModuleBuildLog ZeModuleBuildLogHandle,
) (ZeResult, error)

ZeModuleBuildLogDestroy Destroys module build log object / / @details / - The implementation of this function may immediately free all Host / allocations associated with this object. / - The application must **not** call this function from simultaneous / threads with the same build log handle. / - The implementation of this function should be lock-free. / - This function can be called before or after ::zeModuleDestroy for the / associated module. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModuleBuildLog` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeModuleBuildLogGetString

func ZeModuleBuildLogGetString(
	hModuleBuildLog ZeModuleBuildLogHandle,
	pSize *uintptr,
	pBuildLog *byte,
) (ZeResult, error)

ZeModuleBuildLogGetString Retrieves text string for build log. / / @details / - The caller can pass nullptr for pBuildLog when querying only for size. / - The caller must provide memory for build log. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModuleBuildLog` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSize`

func ZeModuleCreate

func ZeModuleCreate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeModuleDesc,
	phModule *ZeModuleHandle,
	phBuildLog *ZeModuleBuildLogHandle,
) (ZeResult, error)

ZeModuleCreate Creates a module on the context. / / @details / - Compiles the module for execution on the device. / - The application must only use the module for the device, or its / sub-devices, which was provided during creation. / - The module can be copied to other devices and contexts within the same / driver instance by using ::zeModuleGetNativeBinary. / - A build log can optionally be returned to the caller. The caller is / responsible for destroying build log using ::zeModuleBuildLogDestroy. / - The module descriptor constants are only supported for SPIR-V / specialization constants. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == desc->pInputModule` / + `nullptr == phModule` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_MODULE_FORMAT_NATIVE < desc->format` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NATIVE_BINARY / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `0 == desc->inputSize` / - ::ZE_RESULT_ERROR_MODULE_BUILD_FAILURE

func ZeModuleDestroy

func ZeModuleDestroy(
	hModule ZeModuleHandle,
) (ZeResult, error)

ZeModuleDestroy Destroys module / / @details / - The application must destroy all kernel handles created from the / module before destroying the module itself. / - The application must ensure the device is not currently referencing / the module before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this module. / - The application must **not** call this function from simultaneous / threads with the same module handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeModuleDynamicLink(
	numModules uint32,
	phModules *ZeModuleHandle,
	phLinkLog *ZeModuleBuildLogHandle,
) (ZeResult, error)

ZeModuleDynamicLink Dynamically link modules together that share import/export linkage / dependencies. / / @details / - Modules support SPIR-V import and export linkage types for functions / and global variables. See the SPIR-V specification for linkage / details. / - Modules can have both import and export linkage. / - Modules that do not have any imports or exports do not need to be / linked. / - All module import requirements must be satisfied via linking before / kernel objects can be created from them. / - Modules cannot be partially linked. Unsatisfiable import dependencies / in the set of modules passed to ::zeModuleDynamicLink will result in / ::ZE_RESULT_ERROR_MODULE_LINK_FAILURE being returned. / - Modules will only be linked once. A module can be used in multiple / link calls if it has exports but its imports will not be re-linked. / - Ambiguous dependencies, where multiple modules satisfy the same import / dependencies for a module, are not allowed. / - The application must ensure the modules being linked were created on / the same context. / - The application may call this function from simultaneous threads as / long as the import modules being linked are not the same. / - ModuleGetNativeBinary can be called on any module regardless of / whether it is linked or not. / - A link log can optionally be returned to the caller. The caller is / responsible for destroying the link log using / ::zeModuleBuildLogDestroy. / - The link log may contain a list of the unresolved import dependencies / if present. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phModules` / - ::ZE_RESULT_ERROR_MODULE_LINK_FAILURE

func ZeModuleGetFunctionPointer

func ZeModuleGetFunctionPointer(
	hModule ZeModuleHandle,
	pFunctionName *byte,
	pfnFunction *unsafe.Pointer,
) (ZeResult, error)

ZeModuleGetFunctionPointer Retrieve a function pointer from a module by name / / @details / - The function pointer is unique for the device on which the module was / created. / - The function pointer is no longer valid if module is destroyed. / - The function name should only refer to callable functions within the / module. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pFunctionName` / + `nullptr == pfnFunction` / - ::ZE_RESULT_ERROR_INVALID_FUNCTION_NAME

func ZeModuleGetGlobalPointer

func ZeModuleGetGlobalPointer(
	hModule ZeModuleHandle,
	pGlobalName *byte,
	pSize *uintptr,
	pptr *unsafe.Pointer,
) (ZeResult, error)

ZeModuleGetGlobalPointer Retrieve global variable pointer from Module. / / @details / - The application may query global pointer from any module that either / exports or imports it. / - The application must dynamically link a module that imports a global / before the global pointer can be queried from it. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pGlobalName` / - ::ZE_RESULT_ERROR_INVALID_GLOBAL_NAME

func ZeModuleGetKernelNames

func ZeModuleGetKernelNames(
	hModule ZeModuleHandle,
	pCount *uint32,
	pNames **byte,
) (ZeResult, error)

ZeModuleGetKernelNames Retrieve all kernel names in the module. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZeModuleGetNativeBinary

func ZeModuleGetNativeBinary(
	hModule ZeModuleHandle,
	pSize *uintptr,
	pModuleNativeBinary *uint8,
) (ZeResult, error)

ZeModuleGetNativeBinary Retrieve native binary from Module. / / @details / - The native binary output can be cached to disk and new modules can be / later constructed from the cached copy. / - The native binary will retain debugging information that is associated / with a module. / - The caller can pass nullptr for pModuleNativeBinary when querying only / for size. / - The implementation will copy the native binary into a buffer supplied / by the caller. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSize`

func ZeModuleGetProperties

func ZeModuleGetProperties(
	hModule ZeModuleHandle,
	pModuleProperties *ZeModuleProperties,
) (ZeResult, error)

ZeModuleGetProperties Retrieve module properties. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pModuleProperties`

func ZeModuleInspectLinkageExt

func ZeModuleInspectLinkageExt(
	pInspectDesc *ZeLinkageInspectionExtDesc,
	numModules uint32,
	phModules *ZeModuleHandle,
	phLog *ZeModuleBuildLogHandle,
) (ZeResult, error)

ZeModuleInspectLinkageExt List Imports & Exports / / @details / - List all the import & unresolveable import dependencies & exports of a / set of modules / / @remarks / _Analogues_ / - None / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pInspectDesc` / + `nullptr == phModules` / + `nullptr == phLog` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < pInspectDesc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZePhysicalMemCreate

func ZePhysicalMemCreate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZePhysicalMemDesc,
	phPhysicalMemory *ZePhysicalMemHandle,
) (ZeResult, error)

ZePhysicalMemCreate Creates a physical memory object for the context. / / @details / - The application must only use the physical memory object on the / context for which it was created. / - The size must be page aligned. For host memory, the operating system / page size should be used. For device memory, see / ::zeVirtualMemQueryPageSize. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phPhysicalMemory` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x3 < desc->flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == desc->size` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT

func ZePhysicalMemDestroy

func ZePhysicalMemDestroy(
	hContext ZeContextHandle,
	hPhysicalMemory ZePhysicalMemHandle,
) (ZeResult, error)

ZePhysicalMemDestroy Destroys a physical memory object. / / @details / - The application must ensure the device is not currently referencing / the physical memory object before it is deleted / - The application must **not** call this function from simultaneous / threads with the same physical memory handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hPhysicalMemory` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZePhysicalMemGetProperties

func ZePhysicalMemGetProperties(
	hContext ZeContextHandle,
	hPhysicalMem ZePhysicalMemHandle,
	pMemProperties *ZePhysicalMemProperties,
) (ZeResult, error)

ZePhysicalMemGetProperties Retrieves memory properties of the physical memory object. / / @details / - The application must only use the physical memory object on the / context for which it was created. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hPhysicalMem` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pMemProperties`

func ZeRTASBuilderBuildExp

func ZeRTASBuilderBuildExp(
	hBuilder ZeRtasBuilderExpHandle,
	pBuildOpDescriptor *ZeRtasBuilderBuildOpExpDesc,
	pScratchBuffer unsafe.Pointer,
	scratchBufferSizeBytes uintptr,
	pRtasBuffer unsafe.Pointer,
	rtasBufferSizeBytes uintptr,
	hParallelOperation ZeRtasParallelOperationExpHandle,
	pBuildUserPtr unsafe.Pointer,
	pBounds *ZeRtasAabbExp,
	pRtasBufferSizeBytes *uintptr,
) (ZeResult, error)

ZeRTASBuilderBuildExp Build ray tracing acceleration structure / / @details / - This function builds an acceleration structure of the scene consisting / of the specified geometry information and writes the acceleration / structure to the provided destination buffer. All types of geometries / can get freely mixed inside a scene. / - It is the user's responsibility to manage the acceleration structure / buffer allocation, de-allocation, and potential prefetching to the / device memory. The required size of the acceleration structure buffer / can be queried with the ::zeRTASBuilderGetBuildPropertiesExp function. / The acceleration structure buffer must be a shared USM allocation and / should be present on the host at build time. The referenced scene data / (index- and vertex- buffers) can be standard host allocations, and / will not be referenced into by the build acceleration structure. / - Before an acceleration structure can be built, the user must allocate / the memory for the acceleration structure buffer and scratch buffer / using sizes based on a query for the estimated size properties. / - When using the "worst-case" size for the acceleration structure / buffer, the acceleration structure construction will never fail with ::ZE_RESULT_EXP_RTAS_BUILD_RETRY. / - When using the "expected" size for the acceleration structure buffer, / the acceleration structure construction may fail with / ::ZE_RESULT_EXP_RTAS_BUILD_RETRY. If this happens, the user may resize / their acceleration structure buffer using the returned / `*pRtasBufferSizeBytes` value, which will be updated with an improved / size estimate that will likely result in a successful build. / - The acceleration structure construction is run on the host and is / synchronous, thus after the function returns with a successful result, / the acceleration structure may be used. / - All provided data buffers must be host-accessible. / - The acceleration structure buffer must be a USM allocation. / - A successfully constructed acceleration structure is entirely / self-contained. There is no requirement for input data to persist / beyond build completion. / - A successfully constructed acceleration structure is non-copyable. / - Acceleration structure construction may be parallelized by passing a / valid handle to a parallel operation object and joining that parallel / operation using ::zeRTASParallelOperationJoinExp with user-provided / worker threads. / - **Additional Notes** / - "The geometry infos array, geometry infos, and scratch buffer must / all be standard host memory allocations." / - "A pointer to a geometry info can be a null pointer, in which case / the geometry is treated as empty." / - "If no parallel operation handle is provided, the build is run / sequentially on the current thread." / - "A parallel operation object may only be associated with a single / acceleration structure build at a time." / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hBuilder` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pBuildOpDescriptor` / + `nullptr == pScratchBuffer` / + `nullptr == pRtasBuffer` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_FORMAT_EXP_MAX < pBuildOpDescriptor->rtasFormat` / + `::ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_HIGH < pBuildOpDescriptor->buildQuality` / + `0x3 < pBuildOpDescriptor->buildFlags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_EXP_RTAS_BUILD_DEFERRED / + Acceleration structure build completion is deferred to parallel operation join. / - ::ZE_RESULT_EXP_RTAS_BUILD_RETRY / + Acceleration structure build failed due to insufficient resources, retry the build operation with a larger acceleration structure buffer allocation. / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + Acceleration structure build failed due to parallel operation object participation in another build operation.

func ZeRTASBuilderBuildExt

func ZeRTASBuilderBuildExt(
	hBuilder ZeRtasBuilderExtHandle,
	pBuildOpDescriptor *ZeRtasBuilderBuildOpExtDesc,
	pScratchBuffer unsafe.Pointer,
	scratchBufferSizeBytes uintptr,
	pRtasBuffer unsafe.Pointer,
	rtasBufferSizeBytes uintptr,
	hParallelOperation ZeRtasParallelOperationExtHandle,
	pBuildUserPtr unsafe.Pointer,
	pBounds *ZeRtasAabbExt,
	pRtasBufferSizeBytes *uintptr,
) (ZeResult, error)

ZeRTASBuilderBuildExt Build ray tracing acceleration structure / / @details / - This function builds an acceleration structure of the scene consisting / of the specified geometry information and writes the acceleration / structure to the provided destination buffer. All types of geometries / can get freely mixed inside a scene. / - Before an acceleration structure can be built, the user must allocate / the memory for the acceleration structure buffer and scratch buffer / using sizes queried with the ::zeRTASBuilderGetBuildPropertiesExt function. / - When using the "worst-case" size for the acceleration structure / buffer, the acceleration structure construction will never fail with ::ZE_RESULT_EXT_RTAS_BUILD_RETRY. / - When using the "expected" size for the acceleration structure buffer, / the acceleration structure construction may fail with / ::ZE_RESULT_EXT_RTAS_BUILD_RETRY. If this happens, the user may resize / their acceleration structure buffer using the returned / `*pRtasBufferSizeBytes` value, which will be updated with an improved / size estimate that will likely result in a successful build. / - The acceleration structure construction is run on the host and is / synchronous, thus after the function returns with a successful result, / the acceleration structure may be used. / - All provided data buffers must be host-accessible. The referenced / scene data (index- and vertex- buffers) have to be accessible from the / host, and will **not** be referenced by the build acceleration structure. / - The acceleration structure buffer is typicall a host allocation that / is later manually copied to a device allocation. Alternatively one can / also use a shared USM allocation as acceration structure buffer and / skip the copy. / - A successfully constructed acceleration structure is entirely / self-contained. There is no requirement for input data to persist / beyond build completion. / - A successfully constructed acceleration structure is non-copyable. / - Acceleration structure construction may be parallelized by passing a / valid handle to a parallel operation object and joining that parallel / operation using ::zeRTASParallelOperationJoinExt with user-provided / worker threads. / - A successfully constructed acceleration structure is generally / non-copyable. It can only get copied from host to device using the / special ::zeRTASBuilderCommandListAppendCopyExt function. / - **Additional Notes** / - "The geometry infos array, geometry infos, and scratch buffer must / all be standard host memory allocations." / - "A pointer to a geometry info can be a null pointer, in which case / the geometry is treated as empty." / - "If no parallel operation handle is provided, the build is run / sequentially on the current thread." / - "A parallel operation object may only be associated with a single / acceleration structure build at a time." / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hBuilder` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pBuildOpDescriptor` / + `nullptr == pScratchBuffer` / + `nullptr == pRtasBuffer` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_FORMAT_EXT_MAX < pBuildOpDescriptor->rtasFormat` / + `::ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_HIGH < pBuildOpDescriptor->buildQuality` / + `0x3 < pBuildOpDescriptor->buildFlags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_EXT_RTAS_BUILD_DEFERRED / + Acceleration structure build completion is deferred to parallel operation join. / - ::ZE_RESULT_EXT_RTAS_BUILD_RETRY / + Acceleration structure build failed due to insufficient resources, retry the build operation with a larger acceleration structure buffer allocation. / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + Acceleration structure build failed due to parallel operation object participation in another build operation.

func ZeRTASBuilderCommandListAppendCopyExt

func ZeRTASBuilderCommandListAppendCopyExt(
	hCommandList ZeCommandListHandle,
	dstptr unsafe.Pointer,
	srcptr unsafe.Pointer,
	size uintptr,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZeRTASBuilderCommandListAppendCopyExt Copies a ray tracing acceleration structure (RTAS) from host to device / memory. / / @details / - The memory pointed to by srcptr must be host memory containing a valid / ray tracing acceleration structure. / - The number of bytes to copy must be larger or equal to the size of the / ray tracing acceleration structure. / - The application must ensure the memory pointed to by dstptr and srcptr / is accessible by the device on which the command list was created. / - The implementation must not access the memory pointed to by dstptr and / srcptr as they are free to be modified by either the Host or device up / until execution. / - The application must ensure the events are accessible by the device on / which the command list was created. / - The application must ensure the command list and events were created, / and the memory was allocated, on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == dstptr` / + `nullptr == srcptr` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZeRTASBuilderCreateExp

func ZeRTASBuilderCreateExp(
	hDriver ZeDriverHandle,
	pDescriptor *ZeRtasBuilderExpDesc,
	phBuilder *ZeRtasBuilderExpHandle,
) (ZeResult, error)

ZeRTASBuilderCreateExp Creates a ray tracing acceleration structure builder object / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_RTAS_BUILDER_EXP_NAME extension. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pDescriptor` / + `nullptr == phBuilder` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_BUILDER_EXP_VERSION_CURRENT < pDescriptor->builderVersion` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeRTASBuilderCreateExt

func ZeRTASBuilderCreateExt(
	hDriver ZeDriverHandle,
	pDescriptor *ZeRtasBuilderExtDesc,
	phBuilder *ZeRtasBuilderExtHandle,
) (ZeResult, error)

ZeRTASBuilderCreateExt Creates a ray tracing acceleration structure builder object / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_RTAS_EXT_NAME extension. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pDescriptor` / + `nullptr == phBuilder` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_BUILDER_EXT_VERSION_CURRENT < pDescriptor->builderVersion` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeRTASBuilderDestroyExp

func ZeRTASBuilderDestroyExp(
	hBuilder ZeRtasBuilderExpHandle,
) (ZeResult, error)

ZeRTASBuilderDestroyExp Destroys a ray tracing acceleration structure builder object / / @details / - The implementation of this function may immediately release any / internal Host and Device resources associated with this builder. / - The application must **not** call this function from simultaneous / threads with the same builder handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hBuilder` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeRTASBuilderDestroyExt

func ZeRTASBuilderDestroyExt(
	hBuilder ZeRtasBuilderExtHandle,
) (ZeResult, error)

ZeRTASBuilderDestroyExt Destroys a ray tracing acceleration structure builder object / / @details / - The implementation of this function may immediately release any / internal Host and Device resources associated with this builder. / - The application must **not** call this function from simultaneous / threads with the same builder handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hBuilder` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeRTASBuilderGetBuildPropertiesExp

func ZeRTASBuilderGetBuildPropertiesExp(
	hBuilder ZeRtasBuilderExpHandle,
	pBuildOpDescriptor *ZeRtasBuilderBuildOpExpDesc,
	pProperties *ZeRtasBuilderExpProperties,
) (ZeResult, error)

ZeRTASBuilderGetBuildPropertiesExp Retrieves ray tracing acceleration structure builder properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hBuilder` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pBuildOpDescriptor` / + `nullptr == pProperties` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_FORMAT_EXP_MAX < pBuildOpDescriptor->rtasFormat` / + `::ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_HIGH < pBuildOpDescriptor->buildQuality` / + `0x3 < pBuildOpDescriptor->buildFlags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeRTASBuilderGetBuildPropertiesExt

func ZeRTASBuilderGetBuildPropertiesExt(
	hBuilder ZeRtasBuilderExtHandle,
	pBuildOpDescriptor *ZeRtasBuilderBuildOpExtDesc,
	pProperties *ZeRtasBuilderExtProperties,
) (ZeResult, error)

ZeRTASBuilderGetBuildPropertiesExt Retrieves ray tracing acceleration structure builder properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hBuilder` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pBuildOpDescriptor` / + `nullptr == pProperties` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_RTAS_FORMAT_EXT_MAX < pBuildOpDescriptor->rtasFormat` / + `::ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_HIGH < pBuildOpDescriptor->buildQuality` / + `0x3 < pBuildOpDescriptor->buildFlags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeRTASParallelOperationCreateExp

func ZeRTASParallelOperationCreateExp(
	hDriver ZeDriverHandle,
	phParallelOperation *ZeRtasParallelOperationExpHandle,
) (ZeResult, error)

ZeRTASParallelOperationCreateExp Creates a ray tracing acceleration structure builder parallel / operation object / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_RTAS_BUILDER_EXP_NAME extension. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phParallelOperation`

func ZeRTASParallelOperationCreateExt

func ZeRTASParallelOperationCreateExt(
	hDriver ZeDriverHandle,
	phParallelOperation *ZeRtasParallelOperationExtHandle,
) (ZeResult, error)

ZeRTASParallelOperationCreateExt Creates a ray tracing acceleration structure builder parallel / operation object / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / - The implementation must support ::ZE_RTAS_EXT_NAME extension. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phParallelOperation`

func ZeRTASParallelOperationDestroyExp

func ZeRTASParallelOperationDestroyExp(
	hParallelOperation ZeRtasParallelOperationExpHandle,
) (ZeResult, error)

ZeRTASParallelOperationDestroyExp Destroys a ray tracing acceleration structure builder parallel / operation object / / @details / - The implementation of this function may immediately release any / internal Host and Device resources associated with this parallel / operation. / - The application must **not** call this function from simultaneous / threads with the same parallel operation handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hParallelOperation`

func ZeRTASParallelOperationDestroyExt

func ZeRTASParallelOperationDestroyExt(
	hParallelOperation ZeRtasParallelOperationExtHandle,
) (ZeResult, error)

ZeRTASParallelOperationDestroyExt Destroys a ray tracing acceleration structure builder parallel / operation object / / @details / - The implementation of this function may immediately release any / internal Host and Device resources associated with this parallel / operation. / - The application must **not** call this function from simultaneous / threads with the same parallel operation handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hParallelOperation`

func ZeRTASParallelOperationGetPropertiesExp

func ZeRTASParallelOperationGetPropertiesExp(
	hParallelOperation ZeRtasParallelOperationExpHandle,
	pProperties *ZeRtasParallelOperationExpProperties,
) (ZeResult, error)

ZeRTASParallelOperationGetPropertiesExp Retrieves ray tracing acceleration structure builder parallel / operation properties / / @details / - The application must first bind the parallel operation object to a / build operation before it may query the parallel operation properties. / In other words, the application must first call / ::zeRTASBuilderBuildExp with **hParallelOperation** before calling / this function. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hParallelOperation` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZeRTASParallelOperationGetPropertiesExt

func ZeRTASParallelOperationGetPropertiesExt(
	hParallelOperation ZeRtasParallelOperationExtHandle,
	pProperties *ZeRtasParallelOperationExtProperties,
) (ZeResult, error)

ZeRTASParallelOperationGetPropertiesExt Retrieves ray tracing acceleration structure builder parallel / operation properties / / @details / - The application must first bind the parallel operation object to a / build operation before it may query the parallel operation properties. / In other words, the application must first call / ::zeRTASBuilderBuildExt with **hParallelOperation** before calling / this function. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hParallelOperation` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZeRTASParallelOperationJoinExp

func ZeRTASParallelOperationJoinExp(
	hParallelOperation ZeRtasParallelOperationExpHandle,
) (ZeResult, error)

ZeRTASParallelOperationJoinExp Joins a parallel build operation / / @details / - All worker threads return the same error code for the parallel build / operation upon build completion / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hParallelOperation`

func ZeRTASParallelOperationJoinExt

func ZeRTASParallelOperationJoinExt(
	hParallelOperation ZeRtasParallelOperationExtHandle,
) (ZeResult, error)

ZeRTASParallelOperationJoinExt Joins a parallel build operation / / @details / - All worker threads return the same error code for the parallel build / operation upon build completion / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hParallelOperation`

func ZeSamplerCreate

func ZeSamplerCreate(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	desc *ZeSamplerDesc,
	phSampler *ZeSamplerHandle,
) (ZeResult, error)

ZeSamplerCreate Creates sampler on the context. / / @details / - The application must only use the sampler for the device, or its / sub-devices, which was provided during creation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phSampler` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_SAMPLER_ADDRESS_MODE_MIRROR < desc->addressMode` / + `::ZE_SAMPLER_FILTER_MODE_LINEAR < desc->filterMode` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZeSamplerDestroy

func ZeSamplerDestroy(
	hSampler ZeSamplerHandle,
) (ZeResult, error)

ZeSamplerDestroy Destroys sampler object / / @details / - The application must ensure the device is not currently referencing / the sampler before it is deleted. / - The implementation of this function may immediately free all Host and / Device allocations associated with this sampler. / - The application must **not** call this function from simultaneous / threads with the same sampler handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hSampler` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZeVirtualMemFree

func ZeVirtualMemFree(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	size uintptr,
) (ZeResult, error)

ZeVirtualMemFree Free pages in a reserved virtual address range. / / @details / - Any existing virtual mappings for the range will be unmapped. / - Physical allocations objects that were mapped to this range will not / be destroyed. These need to be destroyed explicitly. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT

func ZeVirtualMemGetAccessAttribute

func ZeVirtualMemGetAccessAttribute(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	size uintptr,
	access *ZeMemoryAccessAttribute,
	outSize *uintptr,
) (ZeResult, error)

ZeVirtualMemGetAccessAttribute Get memory access attribute for a virtual address range. / / @details / - If size and outSize are equal then the pages in the specified virtual / address range have the same access attributes. / - This function may be called from simultaneous threads with the same / function handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / + `nullptr == access` / + `nullptr == outSize` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT / + Address must be page aligned / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / + Size must be page aligned

func ZeVirtualMemMap

func ZeVirtualMemMap(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	size uintptr,
	hPhysicalMemory ZePhysicalMemHandle,
	offset uintptr,
	access ZeMemoryAccessAttribute,
) (ZeResult, error)

ZeVirtualMemMap Maps pages in virtual address space to pages from physical memory / object. / / @details / - The virtual address range must have been reserved using / ::zeVirtualMemReserve. / - The application must only use the mapped memory allocation on the / context for which it was created. / - The virtual start address and size must be page aligned. See / ::zeVirtualMemQueryPageSize. / - The application should use, for the starting address and size, the / same size alignment used for the physical allocation. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hPhysicalMemory` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_MEMORY_ACCESS_ATTRIBUTE_READONLY < access` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT

func ZeVirtualMemQueryPageSize

func ZeVirtualMemQueryPageSize(
	hContext ZeContextHandle,
	hDevice ZeDeviceHandle,
	size uintptr,
	pagesize *uintptr,
) (ZeResult, error)

ZeVirtualMemQueryPageSize Queries page size to use for aligning virtual memory reservations and / physical memory allocations. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pagesize` / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size`

func ZeVirtualMemReserve

func ZeVirtualMemReserve(
	hContext ZeContextHandle,
	pStart unsafe.Pointer,
	size uintptr,
	pptr *unsafe.Pointer,
) (ZeResult, error)

ZeVirtualMemReserve Reserves pages in virtual address space. / / @details / - The application must only use the memory allocation on the context for / which it was created. / - The starting address and size must be page aligned. See / ::zeVirtualMemQueryPageSize. / - If pStart is not null then implementation will attempt to reserve / starting from that address. If not available then will find another / suitable starting address. / - The application may call this function from simultaneous threads. / - The access attributes will default to none to indicate reservation is / inaccessible. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pptr` / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size`

func ZeVirtualMemSetAccessAttribute

func ZeVirtualMemSetAccessAttribute(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	size uintptr,
	access ZeMemoryAccessAttribute,
) (ZeResult, error)

ZeVirtualMemSetAccessAttribute Set memory access attributes for a virtual address range. / / @details / - This function may be called from simultaneous threads with the same / function handle. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZE_MEMORY_ACCESS_ATTRIBUTE_READONLY < access` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT / + Address must be page aligned / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / + Size must be page aligned

func ZeVirtualMemUnmap

func ZeVirtualMemUnmap(
	hContext ZeContextHandle,
	ptr unsafe.Pointer,
	size uintptr,
) (ZeResult, error)

ZeVirtualMemUnmap Unmaps pages in virtual address space from pages from a physical / memory object. / / @details / - The page access attributes for virtual address range will revert back / to none. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ptr` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT / + Address must be page aligned / - ::ZE_RESULT_ERROR_UNSUPPORTED_SIZE / + `0 == size` / + Size must be page aligned

func ZerGetLastErrorDescription

func ZerGetLastErrorDescription(
	ppString **byte,
) (ZeResult, error)

ZerGetLastErrorDescription Retrieves a string describing the last error code returned by the / default driver in the current thread. / / @details / - String returned is thread local. / - String is only updated on calls returning an error, i.e., not on calls / returning ::ZE_RESULT_SUCCESS. / - String may be empty if driver considers error code is already explicit / enough to describe cause. / - Memory pointed to by ppString is owned by the default driver. / - String returned is null-terminated. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == ppString`

func ZesDeviceEccAvailable

func ZesDeviceEccAvailable(
	hDevice ZesDeviceHandle,
	pAvailable *ZeBool,
) (ZeResult, error)

ZesDeviceEccAvailable Is ECC functionality available - true or false? / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pAvailable`

func ZesDeviceEccConfigurable

func ZesDeviceEccConfigurable(
	hDevice ZesDeviceHandle,
	pConfigurable *ZeBool,
) (ZeResult, error)

ZesDeviceEccConfigurable Is ECC support configurable - true or false? / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfigurable`

func ZesDeviceEnumActiveVFExp

func ZesDeviceEnumActiveVFExp(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phVFhandle *ZesVfHandle,
) (ZeResult, error)

ZesDeviceEnumActiveVFExp Get handle of virtual function modules / / @details / - [DEPRECATED] No longer supported. Use ::zesDeviceEnumEnabledVFExp. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumDiagnosticTestSuites

func ZesDeviceEnumDiagnosticTestSuites(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phDiagnostics *ZesDiagHandle,
) (ZeResult, error)

ZesDeviceEnumDiagnosticTestSuites Get handle of diagnostics test suites / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumEnabledVFExp

func ZesDeviceEnumEnabledVFExp(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phVFhandle *ZesVfHandle,
) (ZeResult, error)

ZesDeviceEnumEnabledVFExp Get handle of virtual function modules / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumEngineGroups

func ZesDeviceEnumEngineGroups(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phEngine *ZesEngineHandle,
) (ZeResult, error)

ZesDeviceEnumEngineGroups Get handle of engine groups / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumFabricPorts

func ZesDeviceEnumFabricPorts(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phPort *ZesFabricPortHandle,
) (ZeResult, error)

ZesDeviceEnumFabricPorts Get handle of Fabric ports in a device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumFans

func ZesDeviceEnumFans(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phFan *ZesFanHandle,
) (ZeResult, error)

ZesDeviceEnumFans Get handle of fans / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumFirmwares

func ZesDeviceEnumFirmwares(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phFirmware *ZesFirmwareHandle,
) (ZeResult, error)

ZesDeviceEnumFirmwares Get handle of firmwares / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumFrequencyDomains

func ZesDeviceEnumFrequencyDomains(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phFrequency *ZesFreqHandle,
) (ZeResult, error)

ZesDeviceEnumFrequencyDomains Get handle of frequency domains / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumLeds

func ZesDeviceEnumLeds(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phLed *ZesLedHandle,
) (ZeResult, error)

ZesDeviceEnumLeds Get handle of LEDs / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumMemoryModules

func ZesDeviceEnumMemoryModules(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phMemory *ZesMemHandle,
) (ZeResult, error)

ZesDeviceEnumMemoryModules Get handle of memory modules / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumOverclockDomains

func ZesDeviceEnumOverclockDomains(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phDomainHandle *ZesOverclockHandle,
) (ZeResult, error)

ZesDeviceEnumOverclockDomains Get handle of overclock domains / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumPerformanceFactorDomains

func ZesDeviceEnumPerformanceFactorDomains(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phPerf *ZesPerfHandle,
) (ZeResult, error)

ZesDeviceEnumPerformanceFactorDomains Get handles to accelerator domains whose performance can be optimized / via a Performance Factor / / @details / - A Performance Factor should be tuned for each workload. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumPowerDomains

func ZesDeviceEnumPowerDomains(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phPower *ZesPwrHandle,
) (ZeResult, error)

ZesDeviceEnumPowerDomains Get handle of power domains / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumPsus

func ZesDeviceEnumPsus(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phPsu *ZesPsuHandle,
) (ZeResult, error)

ZesDeviceEnumPsus Get handle of power supplies / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumRasErrorSets

func ZesDeviceEnumRasErrorSets(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phRas *ZesRasHandle,
) (ZeResult, error)

ZesDeviceEnumRasErrorSets Get handle of all RAS error sets on a device / / @details / - A RAS error set is a collection of RAS error counters of a given type / (correctable/uncorrectable) from hardware blocks contained within a / sub-device or within the device. / - A device without sub-devices will typically return two handles, one / for correctable errors sets and one for uncorrectable error sets. / - A device with sub-devices will return RAS error sets for each / sub-device and possibly RAS error sets for hardware blocks outside the / sub-devices. / - If the function completes successfully but pCount is set to 0, RAS / features are not available/enabled on this device. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumSchedulers

func ZesDeviceEnumSchedulers(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phScheduler *ZesSchedHandle,
) (ZeResult, error)

ZesDeviceEnumSchedulers Returns handles to scheduler components. / / @details / - Each scheduler component manages the distribution of work across one / or more accelerator engines. / - If an application wishes to change the scheduler behavior for all / accelerator engines of a specific type (e.g. compute), it should / select all the handles where the `engines` member / ::zes_sched_properties_t contains that type. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumStandbyDomains

func ZesDeviceEnumStandbyDomains(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phStandby *ZesStandbyHandle,
) (ZeResult, error)

ZesDeviceEnumStandbyDomains Get handle of standby controls / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEnumTemperatureSensors

func ZesDeviceEnumTemperatureSensors(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	phTemperature *ZesTempHandle,
) (ZeResult, error)

ZesDeviceEnumTemperatureSensors Get handle of temperature sensors / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceEventRegister

func ZesDeviceEventRegister(
	hDevice ZesDeviceHandle,
	events ZesEventTypeFlags,
) (ZeResult, error)

ZesDeviceEventRegister Specify the list of events to listen to for a given device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0xffff < events` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZesDeviceGet

func ZesDeviceGet(
	hDriver ZesDriverHandle,
	pCount *uint32,
	phDevices *ZesDeviceHandle,
) (ZeResult, error)

ZesDeviceGet Retrieves sysman devices within a sysman driver / / @details / - Multiple calls to this function will return identical sysman device / handles, in the same order. / - The number and order of handles returned from this function is NOT / affected by the `ZE_AFFINITY_MASK`, `ZE_ENABLE_PCI_ID_DEVICE_ORDER`, / or `ZE_FLAT_DEVICE_HIERARCHY` environment variables. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDeviceGetCardPowerDomain

func ZesDeviceGetCardPowerDomain(
	hDevice ZesDeviceHandle,
	phPower *ZesPwrHandle,
) (ZeResult, error)

ZesDeviceGetCardPowerDomain Get handle of the PCIe card-level power / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phPower` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + The device does not provide access to card level power controls or telemetry. An invalid power domain handle will be returned in phPower.

func ZesDeviceGetEccState

func ZesDeviceGetEccState(
	hDevice ZesDeviceHandle,
	pState *ZesDeviceEccProperties,
) (ZeResult, error)

ZesDeviceGetEccState Get current ECC state, pending state, and pending action / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesDeviceGetOverclockControls

func ZesDeviceGetOverclockControls(
	hDevice ZesDeviceHandle,
	domainType ZesOverclockDomain,
	pAvailableControls *uint32,
) (ZeResult, error)

ZesDeviceGetOverclockControls Get the list of supported overclock controls available for one of the / supported overclock domains on the device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_OVERCLOCK_DOMAIN_ADM < domainType` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pAvailableControls` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesDeviceGetOverclockDomains

func ZesDeviceGetOverclockDomains(
	hDevice ZesDeviceHandle,
	pOverclockDomains *uint32,
) (ZeResult, error)

ZesDeviceGetOverclockDomains Get the list of supported overclock domains for this device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pOverclockDomains` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesDeviceGetProperties

func ZesDeviceGetProperties(
	hDevice ZesDeviceHandle,
	pProperties *ZesDeviceProperties,
) (ZeResult, error)

ZesDeviceGetProperties Get properties about the device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesDeviceGetState

func ZesDeviceGetState(
	hDevice ZesDeviceHandle,
	pState *ZesDeviceState,
) (ZeResult, error)

ZesDeviceGetState Get information about the state of the device - if a reset is / required, reasons for the reset and if the device has been repaired / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesDeviceGetSubDevicePropertiesExp

func ZesDeviceGetSubDevicePropertiesExp(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	pSubdeviceProps *ZesSubdeviceExpProperties,
) (ZeResult, error)

ZesDeviceGetSubDevicePropertiesExp Retrieves sub device properties for the given sysman device handle / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDevicePciGetBars

func ZesDevicePciGetBars(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	pProperties *ZesPciBarProperties,
) (ZeResult, error)

ZesDevicePciGetBars Get information about each configured bar / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDevicePciGetProperties

func ZesDevicePciGetProperties(
	hDevice ZesDeviceHandle,
	pProperties *ZesPciProperties,
) (ZeResult, error)

ZesDevicePciGetProperties Get PCI properties - address, max speed / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesDevicePciGetState

func ZesDevicePciGetState(
	hDevice ZesDeviceHandle,
	pState *ZesPciState,
) (ZeResult, error)

ZesDevicePciGetState Get current PCI state - current speed / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesDevicePciGetStats

func ZesDevicePciGetStats(
	hDevice ZesDeviceHandle,
	pStats *ZesPciStats,
) (ZeResult, error)

ZesDevicePciGetStats Get PCI stats - bandwidth, number of packets, number of replays / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pStats` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to query this telemetry.

func ZesDevicePciLinkSpeedUpdateExt

func ZesDevicePciLinkSpeedUpdateExt(
	hDevice ZesDeviceHandle,
	shouldDowngrade ZeBool,
	pendingAction *ZesDeviceAction,
) (ZeResult, error)

ZesDevicePciLinkSpeedUpdateExt Update PCI Link Speed (Downgrade or Upgrade (restore to its default / speed)) / / @details / - This function allows updating the PCI link speed to downgrade or / upgrade (restore to its default speed) the connection. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pendingAction` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to perform this operation.

func ZesDeviceProcessesGetState

func ZesDeviceProcessesGetState(
	hDevice ZesDeviceHandle,
	pCount *uint32,
	pProcesses *ZesProcessState,
) (ZeResult, error)

ZesDeviceProcessesGetState Get information about host processes using the device / / @details / - The number of processes connected to the device is dynamic. This means / that between a call to determine the value of pCount and the / subsequent call, the number of processes may have increased or / decreased. It is recommended that a large array be passed in so as to / avoid receiving the error ::ZE_RESULT_ERROR_INVALID_SIZE. Also, always / check the returned value in pCount since it may be less than the / earlier call to get the required array size. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount` / - ::ZE_RESULT_ERROR_INVALID_SIZE / + The provided value of pCount is not big enough to store information about all the processes currently attached to the device.

func ZesDeviceReadOverclockState

func ZesDeviceReadOverclockState(
	hDevice ZesDeviceHandle,
	pOverclockMode *ZesOverclockMode,
	pWaiverSetting *ZeBool,
	pOverclockState *ZeBool,
	pPendingAction *ZesPendingAction,
	pPendingReset *ZeBool,
) (ZeResult, error)

ZesDeviceReadOverclockState Determine the state of overclocking / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pOverclockMode` / + `nullptr == pWaiverSetting` / + `nullptr == pOverclockState` / + `nullptr == pPendingAction` / + `nullptr == pPendingReset` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesDeviceReset

func ZesDeviceReset(
	hDevice ZesDeviceHandle,
	force ZeBool,
) (ZeResult, error)

ZesDeviceReset Reset device / / @details / - Performs a PCI bus reset of the device. This will result in all / current device state being lost. / - All applications using the device should be stopped before calling / this function. / - If the force argument is specified, all applications using the device / will be forcibly killed. / - The function will block until the device has restarted or an / implementation defined timeout occurred waiting for the reset to / complete. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to perform this operation. / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + Reset cannot be performed because applications are using this device. / - ::ZE_RESULT_ERROR_UNKNOWN / + There were problems unloading the device driver, performing a bus reset or reloading the device driver.

func ZesDeviceResetExt

func ZesDeviceResetExt(
	hDevice ZesDeviceHandle,
	pProperties *ZesResetProperties,
) (ZeResult, error)

ZesDeviceResetExt Reset device extension / / @details / - Performs a PCI bus reset of the device. This will result in all / current device state being lost. / - Prior to calling this function, user is responsible for closing / applications using the device unless force argument is specified. / - If the force argument is specified, all applications using the device / will be forcibly killed. / - The function will block until the device has restarted or a / implementation specific timeout occurred waiting for the reset to / complete. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to perform this operation. / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + Reset cannot be performed because applications are using this device. / - ::ZE_RESULT_ERROR_UNKNOWN / + There were problems unloading the device driver, performing a bus reset or reloading the device driver.

func ZesDeviceResetOverclockSettings

func ZesDeviceResetOverclockSettings(
	hDevice ZesDeviceHandle,
	onShippedState ZeBool,
) (ZeResult, error)

ZesDeviceResetOverclockSettings Reset all overclock settings to default values (shipped = 1 or / manufacturing =0) / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesDeviceSetEccState

func ZesDeviceSetEccState(
	hDevice ZesDeviceHandle,
	newState *ZesDeviceEccDesc,
	pState *ZesDeviceEccProperties,
) (ZeResult, error)

ZesDeviceSetEccState Set new ECC state / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - ::zesDeviceGetState should be called to determine pending action / required to implement state change. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == newState` / + `nullptr == pState` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_DEVICE_ECC_STATE_DISABLED < newState->state` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_WARNING_ACTION_REQUIRED / + User must look at the pendingAction attribute of pState & perform the action required to complete the ECC state change.

func ZesDeviceSetOverclockWaiver

func ZesDeviceSetOverclockWaiver(
	hDevice ZesDeviceHandle,
) (ZeResult, error)

ZesDeviceSetOverclockWaiver Set the overclock waiver.The overclock waiver setting is persistent / until the next pcode boot / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This product does not support overclocking

func ZesDiagnosticsGetProperties

func ZesDiagnosticsGetProperties(
	hDiagnostics ZesDiagHandle,
	pProperties *ZesDiagProperties,
) (ZeResult, error)

ZesDiagnosticsGetProperties Get properties of a diagnostics test suite / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDiagnostics` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesDiagnosticsGetTests

func ZesDiagnosticsGetTests(
	hDiagnostics ZesDiagHandle,
	pCount *uint32,
	pTests *ZesDiagTest,
) (ZeResult, error)

ZesDiagnosticsGetTests Get individual tests that can be run separately. Not all test suites / permit running individual tests, check the `haveTests` member of / ::zes_diag_properties_t. / / @details / - The list of available tests is returned in order of increasing test / index (see the `index` member of ::zes_diag_test_t). / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDiagnostics` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDiagnosticsRunTests

func ZesDiagnosticsRunTests(
	hDiagnostics ZesDiagHandle,
	startIndex uint32,
	endIndex uint32,
	pResult *ZesDiagResult,
) (ZeResult, error)

ZesDiagnosticsRunTests Run a diagnostics test suite, either all tests or a subset of tests. / / @details / - WARNING: Running diagnostics may destroy current device state / information. Gracefully close any running workloads before initiating. / - To run all tests in a test suite, set start = / ::ZES_DIAG_FIRST_TEST_INDEX and end = ::ZES_DIAG_LAST_TEST_INDEX. / - If the test suite permits running individual tests, the `haveTests` / member of ::zes_diag_properties_t will be true. In this case, the / function ::zesDiagnosticsGetTests() can be called to get the list of / tests and corresponding indices that can be supplied to the arguments / start and end in this function. / - This function will block until the diagnostics have completed and / force reset based on result / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDiagnostics` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pResult` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to perform diagnostics.

func ZesDriverEventListen

func ZesDriverEventListen(
	hDriver ZeDriverHandle,
	timeout uint32,
	count uint32,
	phDevices *ZesDeviceHandle,
	pNumDeviceEvents *uint32,
	pEvents *ZesEventTypeFlags,
) (ZeResult, error)

ZesDriverEventListen Wait for events to be received from a one or more devices. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phDevices` / + `nullptr == pNumDeviceEvents` / + `nullptr == pEvents` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to listen to events. / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + One or more of the supplied device handles belongs to a different driver.

func ZesDriverEventListenEx

func ZesDriverEventListenEx(
	hDriver ZeDriverHandle,
	timeout uint64,
	count uint32,
	phDevices *ZesDeviceHandle,
	pNumDeviceEvents *uint32,
	pEvents *ZesEventTypeFlags,
) (ZeResult, error)

ZesDriverEventListenEx Wait for events to be received from a one or more devices. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phDevices` / + `nullptr == pNumDeviceEvents` / + `nullptr == pEvents` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to listen to events. / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + One or more of the supplied device handles belongs to a different driver.

func ZesDriverGet

func ZesDriverGet(
	pCount *uint32,
	phDrivers *ZesDriverHandle,
) (ZeResult, error)

ZesDriverGet Retrieves sysman driver instances / / @details / - A sysman driver represents a collection of physical devices. / - Multiple calls to this function will return identical sysman driver / handles, in the same order. / - The application may pass nullptr for pDrivers when only querying the / number of sysman drivers. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesDriverGetDeviceByUuidExp

func ZesDriverGetDeviceByUuidExp(
	hDriver ZesDriverHandle,
	uuid *ZesUuid,
	phDevice *ZesDeviceHandle,
	onSubdevice *ZeBool,
	subdeviceId *uint32,
) (ZeResult, error)

ZesDriverGetDeviceByUuidExp Retrieves sysman device and subdevice index for the given UUID and / sysman driver / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phDevice` / + `nullptr == onSubdevice` / + `nullptr == subdeviceId`

func ZesDriverGetExtensionFunctionAddress

func ZesDriverGetExtensionFunctionAddress(
	hDriver ZesDriverHandle,
	name *byte,
	ppFunctionAddress *unsafe.Pointer,
) (ZeResult, error)

ZesDriverGetExtensionFunctionAddress Retrieves function pointer for vendor-specific or experimental / extensions / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == name` / + `nullptr == ppFunctionAddress`

func ZesDriverGetExtensionProperties

func ZesDriverGetExtensionProperties(
	hDriver ZesDriverHandle,
	pCount *uint32,
	pExtensionProperties *ZesDriverExtensionProperties,
) (ZeResult, error)

ZesDriverGetExtensionProperties Retrieves extension properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesEngineGetActivity

func ZesEngineGetActivity(
	hEngine ZesEngineHandle,
	pStats *ZesEngineStats,
) (ZeResult, error)

ZesEngineGetActivity Get the activity stats for an engine group. / / @details / - This function also returns the engine activity inside a Virtual / Machine (VM), in the presence of hardware virtualization (SRIOV) / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEngine` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pStats`

func ZesEngineGetActivityExt

func ZesEngineGetActivityExt(
	hEngine ZesEngineHandle,
	pCount *uint32,
	pStats *ZesEngineStats,
) (ZeResult, error)

ZesEngineGetActivityExt Get activity stats for Physical Function (PF) and each Virtual / Function (VF) associated with engine group. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEngine` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE - "Engine activity extension is not supported in the environment."

func ZesEngineGetProperties

func ZesEngineGetProperties(
	hEngine ZesEngineHandle,
	pProperties *ZesEngineProperties,
) (ZeResult, error)

ZesEngineGetProperties Get engine group properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hEngine` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesFabricPortGetConfig

func ZesFabricPortGetConfig(
	hPort ZesFabricPortHandle,
	pConfig *ZesFabricPortConfig,
) (ZeResult, error)

ZesFabricPortGetConfig Get Fabric port configuration / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPort` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig`

func ZesFabricPortGetFabricErrorCounters

func ZesFabricPortGetFabricErrorCounters(
	hPort ZesFabricPortHandle,
	pErrors *ZesFabricPortErrorCounters,
) (ZeResult, error)

ZesFabricPortGetFabricErrorCounters Get Fabric Port Error Counters / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - The memory backing the arrays for phPorts and ppThroughputs must be / allocated in system memory by the user who is also responsible for / releasing them when they are no longer needed. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPort` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pErrors` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to query this telemetry.

func ZesFabricPortGetLinkType

func ZesFabricPortGetLinkType(
	hPort ZesFabricPortHandle,
	pLinkType *ZesFabricLinkType,
) (ZeResult, error)

ZesFabricPortGetLinkType Get Fabric port link type / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPort` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pLinkType`

func ZesFabricPortGetMultiPortThroughput

func ZesFabricPortGetMultiPortThroughput(
	hDevice ZesDeviceHandle,
	numPorts uint32,
	phPort *ZesFabricPortHandle,
	pThroughput **ZesFabricPortThroughput,
) (ZeResult, error)

ZesFabricPortGetMultiPortThroughput Get Fabric port throughput from multiple ports in a single call / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phPort` / + `nullptr == pThroughput`

func ZesFabricPortGetProperties

func ZesFabricPortGetProperties(
	hPort ZesFabricPortHandle,
	pProperties *ZesFabricPortProperties,
) (ZeResult, error)

ZesFabricPortGetProperties Get Fabric port properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPort` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesFabricPortGetState

func ZesFabricPortGetState(
	hPort ZesFabricPortHandle,
	pState *ZesFabricPortState,
) (ZeResult, error)

ZesFabricPortGetState Get Fabric port state - status (health/degraded/failed/disabled), / reasons for link degradation or instability, current rx/tx speed / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPort` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesFabricPortGetThroughput

func ZesFabricPortGetThroughput(
	hPort ZesFabricPortHandle,
	pThroughput *ZesFabricPortThroughput,
) (ZeResult, error)

ZesFabricPortGetThroughput Get Fabric port throughput / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPort` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pThroughput` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to query this telemetry.

func ZesFabricPortSetConfig

func ZesFabricPortSetConfig(
	hPort ZesFabricPortHandle,
	pConfig *ZesFabricPortConfig,
) (ZeResult, error)

ZesFabricPortSetConfig Set Fabric port configuration / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPort` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFanGetConfig

func ZesFanGetConfig(
	hFan ZesFanHandle,
	pConfig *ZesFanConfig,
) (ZeResult, error)

ZesFanGetConfig Get fan configurations and the current fan speed mode (default, fixed, / temp-speed table) / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFan` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig`

func ZesFanGetProperties

func ZesFanGetProperties(
	hFan ZesFanHandle,
	pProperties *ZesFanProperties,
) (ZeResult, error)

ZesFanGetProperties Get fan properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFan` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesFanGetState

func ZesFanGetState(
	hFan ZesFanHandle,
	units ZesFanSpeedUnits,
	pSpeed *int32,
) (ZeResult, error)

ZesFanGetState Get current state of a fan - current mode and speed / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFan` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_FAN_SPEED_UNITS_PERCENT < units` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSpeed` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + The requested fan speed units are not supported. See the `supportedUnits` member of ::zes_fan_properties_t.

func ZesFanSetDefaultMode

func ZesFanSetDefaultMode(
	hFan ZesFanHandle,
) (ZeResult, error)

ZesFanSetDefaultMode Configure the fan to run with hardware factory settings (set mode to / ::ZES_FAN_SPEED_MODE_DEFAULT) / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFan` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFanSetFixedSpeedMode

func ZesFanSetFixedSpeedMode(
	hFan ZesFanHandle,
	speed *ZesFanSpeed,
) (ZeResult, error)

ZesFanSetFixedSpeedMode Configure the fan to rotate at a fixed speed (set mode to / ::ZES_FAN_SPEED_MODE_FIXED) / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFan` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == speed` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications. / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Fixing the fan speed not supported by the hardware or the fan speed units are not supported. See the `supportedModes` and `supportedUnits` members of ::zes_fan_properties_t.

func ZesFanSetSpeedTableMode

func ZesFanSetSpeedTableMode(
	hFan ZesFanHandle,
	speedTable *ZesFanSpeedTable,
) (ZeResult, error)

ZesFanSetSpeedTableMode Configure the fan to adjust speed based on a temperature/speed table / (set mode to ::ZES_FAN_SPEED_MODE_TABLE) / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFan` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == speedTable` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications. / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + The temperature/speed pairs in the array are not sorted on temperature from lowest to highest. / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Fan speed table not supported by the hardware or the fan speed units are not supported. See the `supportedModes` and `supportedUnits` members of ::zes_fan_properties_t.

func ZesFirmwareFlash

func ZesFirmwareFlash(
	hFirmware ZesFirmwareHandle,
	pImage unsafe.Pointer,
	size uint32,
) (ZeResult, error)

ZesFirmwareFlash Flash a new firmware image / / @details / - Any running workload must be gracefully closed before invoking this / function. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - This is a non-blocking call. Application may call / ::zesFirmwareGetFlashProgress to get completion status. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFirmware` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pImage` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to perform this operation.

func ZesFirmwareGetConsoleLogs

func ZesFirmwareGetConsoleLogs(
	hFirmware ZesFirmwareHandle,
	pSize *uintptr,
	pFirmwareLog *byte,
) (ZeResult, error)

ZesFirmwareGetConsoleLogs Get Firmware Console Logs / / @details / - The caller may pass nullptr for pFirmwareLog and set pSize to zero / when querying only for size. / - The caller must provide memory for Firmware log. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFirmware` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSize`

func ZesFirmwareGetFlashProgress

func ZesFirmwareGetFlashProgress(
	hFirmware ZesFirmwareHandle,
	pCompletionPercent *uint32,
) (ZeResult, error)

ZesFirmwareGetFlashProgress Get Firmware Flash Progress / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFirmware` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCompletionPercent`

func ZesFirmwareGetProperties

func ZesFirmwareGetProperties(
	hFirmware ZesFirmwareHandle,
	pProperties *ZesFirmwareProperties,
) (ZeResult, error)

ZesFirmwareGetProperties Get firmware properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFirmware` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesFirmwareGetSecurityVersionExp

func ZesFirmwareGetSecurityVersionExp(
	hFirmware ZesFirmwareHandle,
	pVersion *byte,
) (ZeResult, error)

ZesFirmwareGetSecurityVersionExp Get the firmware security version number of the currently running / firmware / / @details / - The application should create a character array of size / ::ZES_STRING_PROPERTY_SIZE and reference it for the `pVersion` / parameter. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFirmware` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pVersion`

func ZesFirmwareSetSecurityVersionExp

func ZesFirmwareSetSecurityVersionExp(
	hFirmware ZesFirmwareHandle,
) (ZeResult, error)

ZesFirmwareSetSecurityVersionExp Set the firmware security version number / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFirmware`

func ZesFrequencyGetAvailableClocks

func ZesFrequencyGetAvailableClocks(
	hFrequency ZesFreqHandle,
	pCount *uint32,
	phFrequency *float64,
) (ZeResult, error)

ZesFrequencyGetAvailableClocks Get available non-overclocked hardware clock frequencies for the / frequency domain / / @details / - The list of available frequencies is returned in order of slowest to / fastest. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesFrequencyGetProperties

func ZesFrequencyGetProperties(
	hFrequency ZesFreqHandle,
	pProperties *ZesFreqProperties,
) (ZeResult, error)

ZesFrequencyGetProperties Get frequency properties - available frequencies / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesFrequencyGetRange

func ZesFrequencyGetRange(
	hFrequency ZesFreqHandle,
	pLimits *ZesFreqRange,
) (ZeResult, error)

ZesFrequencyGetRange Get current frequency limits / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pLimits`

func ZesFrequencyGetState

func ZesFrequencyGetState(
	hFrequency ZesFreqHandle,
	pState *ZesFreqState,
) (ZeResult, error)

ZesFrequencyGetState Get current frequency state - frequency request, actual frequency, TDP / limits / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesFrequencyGetThrottleTime

func ZesFrequencyGetThrottleTime(
	hFrequency ZesFreqHandle,
	pThrottleTime *ZesFreqThrottleTime,
) (ZeResult, error)

ZesFrequencyGetThrottleTime Get frequency throttle time / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pThrottleTime`

func ZesFrequencyOcGetCapabilities

func ZesFrequencyOcGetCapabilities(
	hFrequency ZesFreqHandle,
	pOcCapabilities *ZesOcCapabilities,
) (ZeResult, error)

ZesFrequencyOcGetCapabilities Get the overclocking capabilities. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pOcCapabilities`

func ZesFrequencyOcGetFrequencyTarget

func ZesFrequencyOcGetFrequencyTarget(
	hFrequency ZesFreqHandle,
	pCurrentOcFrequency *float64,
) (ZeResult, error)

ZesFrequencyOcGetFrequencyTarget Get the current overclocking frequency target, if extended moded is / supported, will returned in 1 Mhz granularity. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCurrentOcFrequency` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The specified voltage and/or frequency overclock settings exceed the hardware values (see the `maxOcFrequency`, `maxOcVoltage`, `minOcVoltageOffset` and `maxOcVoltageOffset` members of ::zes_oc_capabilities_t). / + Requested voltage overclock is very high but the `isHighVoltModeEnabled` member of ::zes_oc_capabilities_t is not enabled for the device. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencyOcGetIccMax

func ZesFrequencyOcGetIccMax(
	hFrequency ZesFreqHandle,
	pOcIccMax *float64,
) (ZeResult, error)

ZesFrequencyOcGetIccMax Get the maximum current limit setting. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pOcIccMax` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + Capability the `isIccMaxSupported` member of ::zes_oc_capabilities_t is false for this frequency domain.

func ZesFrequencyOcGetMode

func ZesFrequencyOcGetMode(
	hFrequency ZesFreqHandle,
	pCurrentOcMode *ZesOcMode,
) (ZeResult, error)

ZesFrequencyOcGetMode Get the current overclocking mode. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCurrentOcMode` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The specified voltage and/or frequency overclock settings exceed the hardware values (see the `maxOcFrequency`, `maxOcVoltage`, `minOcVoltageOffset` and `maxOcVoltageOffset` members of ::zes_oc_capabilities_t). / + Requested voltage overclock is very high but the `isHighVoltModeEnabled` member of ::zes_oc_capabilities_t is not enabled for the device. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencyOcGetTjMax

func ZesFrequencyOcGetTjMax(
	hFrequency ZesFreqHandle,
	pOcTjMax *float64,
) (ZeResult, error)

ZesFrequencyOcGetTjMax Get the maximum temperature limit setting. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pOcTjMax` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t).

func ZesFrequencyOcGetVoltageTarget

func ZesFrequencyOcGetVoltageTarget(
	hFrequency ZesFreqHandle,
	pCurrentVoltageTarget *float64,
	pCurrentVoltageOffset *float64,
) (ZeResult, error)

ZesFrequencyOcGetVoltageTarget Get the current overclocking voltage settings. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCurrentVoltageTarget` / + `nullptr == pCurrentVoltageOffset` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The specified voltage and/or frequency overclock settings exceed the hardware values (see the `maxOcFrequency`, `maxOcVoltage`, `minOcVoltageOffset` and `maxOcVoltageOffset` members of ::zes_oc_capabilities_t). / + Requested voltage overclock is very high but the `isHighVoltModeEnabled` member of ::zes_oc_capabilities_t is not enabled for the device. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencyOcSetFrequencyTarget

func ZesFrequencyOcSetFrequencyTarget(
	hFrequency ZesFreqHandle,
	CurrentOcFrequency float64,
) (ZeResult, error)

ZesFrequencyOcSetFrequencyTarget Set the current overclocking frequency target, if extended moded is / supported, can be set in 1 Mhz granularity. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The specified voltage and/or frequency overclock settings exceed the hardware values (see the `maxOcFrequency`, `maxOcVoltage`, `minOcVoltageOffset` and `maxOcVoltageOffset` members of ::zes_oc_capabilities_t). / + Requested voltage overclock is very high but the `isHighVoltModeEnabled` member of ::zes_oc_capabilities_t is not enabled for the device. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencyOcSetIccMax

func ZesFrequencyOcSetIccMax(
	hFrequency ZesFreqHandle,
	ocIccMax float64,
) (ZeResult, error)

ZesFrequencyOcSetIccMax Change the maximum current limit setting. / / @details / - Setting ocIccMax to 0.0 will return the value to the factory default. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The `isIccMaxSupported` member of ::zes_oc_capabilities_t is false for this frequency domain. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + The specified current limit is too low or too high. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencyOcSetMode

func ZesFrequencyOcSetMode(
	hFrequency ZesFreqHandle,
	CurrentOcMode ZesOcMode,
) (ZeResult, error)

ZesFrequencyOcSetMode Set the current overclocking mode. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_OC_MODE_FIXED < CurrentOcMode` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The specified voltage and/or frequency overclock settings exceed the hardware values (see the `maxOcFrequency`, `maxOcVoltage`, `minOcVoltageOffset` and `maxOcVoltageOffset` members of ::zes_oc_capabilities_t). / + Requested voltage overclock is very high but the `isHighVoltModeEnabled` member of ::zes_oc_capabilities_t is not enabled for the device. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencyOcSetTjMax

func ZesFrequencyOcSetTjMax(
	hFrequency ZesFreqHandle,
	ocTjMax float64,
) (ZeResult, error)

ZesFrequencyOcSetTjMax Change the maximum temperature limit setting. / / @details / - Setting ocTjMax to 0.0 will return the value to the factory default. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The `isTjMaxSupported` member of ::zes_oc_capabilities_t is false for this frequency domain. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + The specified temperature limit is too high. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencyOcSetVoltageTarget

func ZesFrequencyOcSetVoltageTarget(
	hFrequency ZesFreqHandle,
	CurrentVoltageTarget float64,
	CurrentVoltageOffset float64,
) (ZeResult, error)

ZesFrequencyOcSetVoltageTarget Set the current overclocking voltage settings. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this frequency domain (see the `isOcSupported` member of ::zes_oc_capabilities_t). / + The specified voltage and/or frequency overclock settings exceed the hardware values (see the `maxOcFrequency`, `maxOcVoltage`, `minOcVoltageOffset` and `maxOcVoltageOffset` members of ::zes_oc_capabilities_t). / + Requested voltage overclock is very high but the `isHighVoltModeEnabled` member of ::zes_oc_capabilities_t is not enabled for the device. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Overclocking feature is locked on this frequency domain. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesFrequencySetRange

func ZesFrequencySetRange(
	hFrequency ZesFreqHandle,
	pLimits *ZesFreqRange,
) (ZeResult, error)

ZesFrequencySetRange Set frequency range between which the hardware can operate. / / @details / - The application may call this function with the frequency range min / and max values set to `-1` to request the frequency be (re)set to the / default values. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hFrequency` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pLimits` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesInit

func ZesInit(
	flags ZesInitFlags,
) (ZeResult, error)

ZesInit Initialize 'oneAPI' System Resource Management (sysman) / / @details / - The application must call this function or ::zeInit with the / `ZES_ENABLE_SYSMAN` environment variable set before calling any other / sysman function. / - If this function is not called then all other sysman functions will / return ::ZE_RESULT_ERROR_UNINITIALIZED. / - This function will only initialize sysman. To initialize other / functions, call ::zeInit. / - There is no requirement to call this function before or after / ::zeInit. / - Only one instance of sysman will be initialized per process. / - The application must call this function after forking new processes. / Each forked process must call this function. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe for scenarios / where multiple libraries may initialize sysman simultaneously. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x1 < flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY

func ZesLedGetProperties

func ZesLedGetProperties(
	hLed ZesLedHandle,
	pProperties *ZesLedProperties,
) (ZeResult, error)

ZesLedGetProperties Get LED properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hLed` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesLedGetState

func ZesLedGetState(
	hLed ZesLedHandle,
	pState *ZesLedState,
) (ZeResult, error)

ZesLedGetState Get current state of a LED - on/off, color / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hLed` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesLedSetColor

func ZesLedSetColor(
	hLed ZesLedHandle,
	pColor *ZesLedColor,
) (ZeResult, error)

ZesLedSetColor Set the color of the LED / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hLed` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pColor` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications. / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This LED doesn't not support color changes. See the `haveRGB` member of ::zes_led_properties_t.

func ZesLedSetState

func ZesLedSetState(
	hLed ZesLedHandle,
	enable ZeBool,
) (ZeResult, error)

ZesLedSetState Turn the LED on/off / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hLed` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesMemoryGetBandwidth

func ZesMemoryGetBandwidth(
	hMemory ZesMemHandle,
	pBandwidth *ZesMemBandwidth,
) (ZeResult, error)

ZesMemoryGetBandwidth Get memory bandwidth / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMemory` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pBandwidth` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to query this telemetry.

func ZesMemoryGetProperties

func ZesMemoryGetProperties(
	hMemory ZesMemHandle,
	pProperties *ZesMemProperties,
) (ZeResult, error)

ZesMemoryGetProperties Get memory properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMemory` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesMemoryGetState

func ZesMemoryGetState(
	hMemory ZesMemHandle,
	pState *ZesMemState,
) (ZeResult, error)

ZesMemoryGetState Get memory state - health, allocated / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMemory` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesOverclockGetControlCurrentValue

func ZesOverclockGetControlCurrentValue(
	hDomainHandle ZesOverclockHandle,
	DomainControl ZesOverclockControl,
	pValue *float64,
) (ZeResult, error)

ZesOverclockGetControlCurrentValue Read the current value for a given overclock control / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_OVERCLOCK_CONTROL_ACM_DISABLE < DomainControl` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pValue` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockGetControlPendingValue

func ZesOverclockGetControlPendingValue(
	hDomainHandle ZesOverclockHandle,
	DomainControl ZesOverclockControl,
	pValue *float64,
) (ZeResult, error)

ZesOverclockGetControlPendingValue Read the the reset pending value for a given overclock control / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_OVERCLOCK_CONTROL_ACM_DISABLE < DomainControl` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pValue` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockGetControlState

func ZesOverclockGetControlState(
	hDomainHandle ZesOverclockHandle,
	DomainControl ZesOverclockControl,
	pControlState *ZesControlState,
	pPendingAction *ZesPendingAction,
) (ZeResult, error)

ZesOverclockGetControlState Determine the state of an overclock control / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_OVERCLOCK_CONTROL_ACM_DISABLE < DomainControl` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pControlState` / + `nullptr == pPendingAction` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockGetDomainControlProperties

func ZesOverclockGetDomainControlProperties(
	hDomainHandle ZesOverclockHandle,
	DomainControl ZesOverclockControl,
	pControlProperties *ZesControlProperty,
) (ZeResult, error)

ZesOverclockGetDomainControlProperties Read overclock control values - min/max/step/default/ref / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_OVERCLOCK_CONTROL_ACM_DISABLE < DomainControl` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pControlProperties` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockGetDomainProperties

func ZesOverclockGetDomainProperties(
	hDomainHandle ZesOverclockHandle,
	pDomainProperties *ZesOverclockProperties,
) (ZeResult, error)

ZesOverclockGetDomainProperties Get overclock domain control properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pDomainProperties` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockGetDomainVFProperties

func ZesOverclockGetDomainVFProperties(
	hDomainHandle ZesOverclockHandle,
	pVFProperties *ZesVfProperty,
) (ZeResult, error)

ZesOverclockGetDomainVFProperties Read overclock VF min,max and step values / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pVFProperties` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockGetVFPointValues

func ZesOverclockGetVFPointValues(
	hDomainHandle ZesOverclockHandle,
	VFType ZesVfType,
	VFArrayType ZesVfArrayType,
	PointIndex uint32,
	PointValue *uint32,
) (ZeResult, error)

ZesOverclockGetVFPointValues Read the frequency or voltage of a V-F point from the default or / custom V-F curve. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_VF_TYPE_FREQ < VFType` / + `::ZES_VF_ARRAY_TYPE_LIVE_VF_ARRAY < VFArrayType` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == PointValue` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockSetControlUserValue

func ZesOverclockSetControlUserValue(
	hDomainHandle ZesOverclockHandle,
	DomainControl ZesOverclockControl,
	pValue float64,
	pPendingAction *ZesPendingAction,
) (ZeResult, error)

ZesOverclockSetControlUserValue Set the value for a given overclock control / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_OVERCLOCK_CONTROL_ACM_DISABLE < DomainControl` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pPendingAction` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesOverclockSetVFPointValues

func ZesOverclockSetVFPointValues(
	hDomainHandle ZesOverclockHandle,
	VFType ZesVfType,
	PointIndex uint32,
	PointValue uint32,
) (ZeResult, error)

ZesOverclockSetVFPointValues Write the frequency or voltage of a V-F point to custom V-F curve. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDomainHandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_VF_TYPE_FREQ < VFType` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Overclocking is not supported on this control domain

func ZesPerformanceFactorGetConfig

func ZesPerformanceFactorGetConfig(
	hPerf ZesPerfHandle,
	pFactor *float64,
) (ZeResult, error)

ZesPerformanceFactorGetConfig Get current Performance Factor for a given domain / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPerf` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pFactor`

func ZesPerformanceFactorGetProperties

func ZesPerformanceFactorGetProperties(
	hPerf ZesPerfHandle,
	pProperties *ZesPerfProperties,
) (ZeResult, error)

ZesPerformanceFactorGetProperties Get properties about a Performance Factor domain / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPerf` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesPerformanceFactorSetConfig

func ZesPerformanceFactorSetConfig(
	hPerf ZesPerfHandle,
	factor float64,
) (ZeResult, error)

ZesPerformanceFactorSetConfig Change the performance factor for a domain / / @details / - The Performance Factor is a number between 0 and 100. / - A Performance Factor is a hint to the hardware. Depending on the / hardware, the request may not be granted. Follow up this function with / a call to ::zesPerformanceFactorGetConfig() to determine the actual / factor being used by the hardware. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPerf`

func ZesPowerGetEnergyCounter

func ZesPowerGetEnergyCounter(
	hPower ZesPwrHandle,
	pEnergy *ZesPowerEnergyCounter,
) (ZeResult, error)

ZesPowerGetEnergyCounter Get energy counter / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pEnergy`

func ZesPowerGetEnergyThreshold

func ZesPowerGetEnergyThreshold(
	hPower ZesPwrHandle,
	pThreshold *ZesEnergyThreshold,
) (ZeResult, error)

ZesPowerGetEnergyThreshold Get energy threshold / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pThreshold` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Energy threshold not supported on this power domain (check the `isEnergyThresholdSupported` member of ::zes_power_properties_t). / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to request this feature.

func ZesPowerGetLimits

func ZesPowerGetLimits(
	hPower ZesPwrHandle,
	pSustained *ZesPowerSustainedLimit,
	pBurst *ZesPowerBurstLimit,
	pPeak *ZesPowerPeakLimit,
) (ZeResult, error)

ZesPowerGetLimits Get power limits / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] Use ::zesPowerGetLimitsExt. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower`

func ZesPowerGetLimitsExt

func ZesPowerGetLimitsExt(
	hPower ZesPwrHandle,
	pCount *uint32,
	pSustained *ZesPowerLimitExtDesc,
) (ZeResult, error)

ZesPowerGetLimitsExt Get power limits / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - This function returns all the power limits associated with the / supplied power domain. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesPowerGetProperties

func ZesPowerGetProperties(
	hPower ZesPwrHandle,
	pProperties *ZesPowerProperties,
) (ZeResult, error)

ZesPowerGetProperties Get properties related to a power domain / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesPowerSetEnergyThreshold

func ZesPowerSetEnergyThreshold(
	hPower ZesPwrHandle,
	threshold float64,
) (ZeResult, error)

ZesPowerSetEnergyThreshold Set energy threshold / / @details / - An event ::ZES_EVENT_TYPE_FLAG_ENERGY_THRESHOLD_CROSSED will be / generated when the delta energy consumed starting from this call / exceeds the specified threshold. Use the function / ::zesDeviceEventRegister() to start receiving the event. / - Only one running process can control the energy threshold at a given / time. If another process attempts to change the energy threshold, the / error ::ZE_RESULT_ERROR_NOT_AVAILABLE will be returned. The function / ::zesPowerGetEnergyThreshold() to determine the process ID currently / controlling this setting. / - Calling this function will remove any pending energy thresholds and / start counting from the time of this call. / - Once the energy threshold has been reached and the event generated, / the threshold is automatically removed. It is up to the application to / request a new threshold. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Energy threshold not supported on this power domain (check the `isEnergyThresholdSupported` member of ::zes_power_properties_t). / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to request this feature. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Another running process has set the energy threshold.

func ZesPowerSetLimits

func ZesPowerSetLimits(
	hPower ZesPwrHandle,
	pSustained *ZesPowerSustainedLimit,
	pBurst *ZesPowerBurstLimit,
	pPeak *ZesPowerPeakLimit,
) (ZeResult, error)

ZesPowerSetLimits Set power limits / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] Use ::zesPowerSetLimitsExt. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + The device is in use, meaning that the GPU is under Over clocking, applying power limits under overclocking is not supported.

func ZesPowerSetLimitsExt

func ZesPowerSetLimitsExt(
	hPower ZesPwrHandle,
	pCount *uint32,
	pSustained *ZesPowerLimitExtDesc,
) (ZeResult, error)

ZesPowerSetLimitsExt Set power limits / / @details / - The application can only modify unlocked members of the limit / descriptors returned by ::zesPowerGetLimitsExt. / - Not all the limits returned by ::zesPowerGetLimitsExt need to be / supplied to this function. / - Limits do not have to be supplied in the same order as returned by / ::zesPowerGetLimitsExt. / - The same limit can be supplied multiple times. Limits are applied in / the order in which they are supplied. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPower` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + The device is in use, meaning that the GPU is under Over clocking, applying power limits under overclocking is not supported.

func ZesPsuGetProperties

func ZesPsuGetProperties(
	hPsu ZesPsuHandle,
	pProperties *ZesPsuProperties,
) (ZeResult, error)

ZesPsuGetProperties Get power supply properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPsu` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesPsuGetState

func ZesPsuGetState(
	hPsu ZesPsuHandle,
	pState *ZesPsuState,
) (ZeResult, error)

ZesPsuGetState Get current power supply state / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hPsu` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState`

func ZesRasClearStateExp

func ZesRasClearStateExp(
	hRas ZesRasHandle,
	category ZesRasErrorCategoryExp,
) (ZeResult, error)

ZesRasClearStateExp Ras Clear State / / @details / - This function clears error counters for a RAS error category. / - Clearing errors will affect other threads/applications - the counter / values will start from zero. / - Clearing errors requires write permissions. / - The application should not call this function from simultaneous / threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hRas` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_RAS_ERROR_CATEGORY_EXP_L3FABRIC_ERRORS < category` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + Don't have permissions to clear error counters.

func ZesRasGetConfig

func ZesRasGetConfig(
	hRas ZesRasHandle,
	pConfig *ZesRasConfig,
) (ZeResult, error)

ZesRasGetConfig Get RAS error thresholds that control when RAS events are generated / / @details / - The driver maintains counters for all RAS error sets and error / categories. Events are generated when errors occur. The configuration / enables setting thresholds to limit when events are sent. / - When a particular RAS correctable error counter exceeds the configured / threshold, the event ::ZES_EVENT_TYPE_FLAG_RAS_CORRECTABLE_ERRORS will / be triggered. / - When a particular RAS uncorrectable error counter exceeds the / configured threshold, the event / ::ZES_EVENT_TYPE_FLAG_RAS_UNCORRECTABLE_ERRORS will be triggered. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hRas` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig`

func ZesRasGetProperties

func ZesRasGetProperties(
	hRas ZesRasHandle,
	pProperties *ZesRasProperties,
) (ZeResult, error)

ZesRasGetProperties Get RAS properties of a given RAS error set - this enables discovery / of the type of RAS error set (correctable/uncorrectable) and if / located on a sub-device / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hRas` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesRasGetState

func ZesRasGetState(
	hRas ZesRasHandle,
	clear ZeBool,
	pState *ZesRasState,
) (ZeResult, error)

ZesRasGetState Get the current value of RAS error counters for a particular error set / / @details / - Clearing errors will affect other threads/applications - the counter / values will start from zero. / - Clearing errors requires write permissions. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hRas` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pState` / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + Don't have permissions to clear error counters.

func ZesRasGetStateExp

func ZesRasGetStateExp(
	hRas ZesRasHandle,
	pCount *uint32,
	pState *ZesRasStateExp,
) (ZeResult, error)

ZesRasGetStateExp Ras Get State / / @details / - This function retrieves error counters for different RAS error / categories. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hRas` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesRasSetConfig

func ZesRasSetConfig(
	hRas ZesRasHandle,
	pConfig *ZesRasConfig,
) (ZeResult, error)

ZesRasSetConfig Set RAS error thresholds that control when RAS events are generated / / @details / - The driver maintains counters for all RAS error sets and error / categories. Events are generated when errors occur. The configuration / enables setting thresholds to limit when events are sent. / - When a particular RAS correctable error counter exceeds the specified / threshold, the event ::ZES_EVENT_TYPE_FLAG_RAS_CORRECTABLE_ERRORS will / be generated. / - When a particular RAS uncorrectable error counter exceeds the / specified threshold, the event / ::ZES_EVENT_TYPE_FLAG_RAS_UNCORRECTABLE_ERRORS will be generated. / - Call ::zesRasGetState() and set the clear flag to true to restart / event generation once counters have exceeded thresholds. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hRas` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig` / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Another running process is controlling these settings. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + Don't have permissions to set thresholds.

func ZesSchedulerGetCurrentMode

func ZesSchedulerGetCurrentMode(
	hScheduler ZesSchedHandle,
	pMode *ZesSchedMode,
) (ZeResult, error)

ZesSchedulerGetCurrentMode Get current scheduling mode in effect on a scheduler component. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pMode` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This scheduler component does not support scheduler modes.

func ZesSchedulerGetProperties

func ZesSchedulerGetProperties(
	hScheduler ZesSchedHandle,
	pProperties *ZesSchedProperties,
) (ZeResult, error)

ZesSchedulerGetProperties Get properties related to a scheduler component / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesSchedulerGetTimeoutModeProperties

func ZesSchedulerGetTimeoutModeProperties(
	hScheduler ZesSchedHandle,
	getDefaults ZeBool,
	pConfig *ZesSchedTimeoutProperties,
) (ZeResult, error)

ZesSchedulerGetTimeoutModeProperties Get scheduler config for mode ::ZES_SCHED_MODE_TIMEOUT / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This scheduler component does not support scheduler modes.

func ZesSchedulerGetTimesliceModeProperties

func ZesSchedulerGetTimesliceModeProperties(
	hScheduler ZesSchedHandle,
	getDefaults ZeBool,
	pConfig *ZesSchedTimesliceProperties,
) (ZeResult, error)

ZesSchedulerGetTimesliceModeProperties Get scheduler config for mode ::ZES_SCHED_MODE_TIMESLICE / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This scheduler component does not support scheduler modes.

func ZesSchedulerSetComputeUnitDebugMode

func ZesSchedulerSetComputeUnitDebugMode(
	hScheduler ZesSchedHandle,
	pNeedReload *ZeBool,
) (ZeResult, error)

ZesSchedulerSetComputeUnitDebugMode Change scheduler mode to ::ZES_SCHED_MODE_COMPUTE_UNIT_DEBUG / / @details / - This is a special mode that must ben enabled when debugging an / application that uses this device e.g. using the Level0 Debug API. / - It ensures that only one command queue can execute work on the / hardware at a given time. Work is permitted to run as long as needed / without enforcing any scheduler fairness policies. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - [DEPRECATED] No longer supported. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pNeedReload` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This scheduler component does not support scheduler modes. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make this modification.

func ZesSchedulerSetExclusiveMode

func ZesSchedulerSetExclusiveMode(
	hScheduler ZesSchedHandle,
	pNeedReload *ZeBool,
) (ZeResult, error)

ZesSchedulerSetExclusiveMode Change scheduler mode to ::ZES_SCHED_MODE_EXCLUSIVE / / @details / - This mode is optimized for single application/context use-cases. It / permits a context to run indefinitely on the hardware without being / preempted or terminated. All pending work for other contexts must wait / until the running context completes with no further submitted work. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pNeedReload` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This scheduler component does not support scheduler modes. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make this modification.

func ZesSchedulerSetTimeoutMode

func ZesSchedulerSetTimeoutMode(
	hScheduler ZesSchedHandle,
	pProperties *ZesSchedTimeoutProperties,
	pNeedReload *ZeBool,
) (ZeResult, error)

ZesSchedulerSetTimeoutMode Change scheduler mode to ::ZES_SCHED_MODE_TIMEOUT or update scheduler / mode parameters if already running in this mode. / / @details / - This mode is optimized for multiple applications or contexts / submitting work to the hardware. When higher priority work arrives, / the scheduler attempts to pause the current executing work within some / timeout interval, then submits the other work. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties` / + `nullptr == pNeedReload` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This scheduler component does not support scheduler modes. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make this modification.

func ZesSchedulerSetTimesliceMode

func ZesSchedulerSetTimesliceMode(
	hScheduler ZesSchedHandle,
	pProperties *ZesSchedTimesliceProperties,
	pNeedReload *ZeBool,
) (ZeResult, error)

ZesSchedulerSetTimesliceMode Change scheduler mode to ::ZES_SCHED_MODE_TIMESLICE or update / scheduler mode parameters if already running in this mode. / / @details / - This mode is optimized to provide fair sharing of hardware execution / time between multiple contexts submitting work to the hardware / concurrently. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hScheduler` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties` / + `nullptr == pNeedReload` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + This scheduler component does not support scheduler modes. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make this modification.

func ZesStandbyGetMode

func ZesStandbyGetMode(
	hStandby ZesStandbyHandle,
	pMode *ZesStandbyPromoMode,
) (ZeResult, error)

ZesStandbyGetMode Get the current standby promotion mode / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hStandby` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pMode`

func ZesStandbyGetProperties

func ZesStandbyGetProperties(
	hStandby ZesStandbyHandle,
	pProperties *ZesStandbyProperties,
) (ZeResult, error)

ZesStandbyGetProperties Get standby hardware component properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hStandby` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesStandbySetMode

func ZesStandbySetMode(
	hStandby ZesStandbyHandle,
	mode ZesStandbyPromoMode,
) (ZeResult, error)

ZesStandbySetMode Set standby promotion mode / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hStandby` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZES_STANDBY_PROMO_MODE_NEVER < mode` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to make these modifications.

func ZesTemperatureGetConfig

func ZesTemperatureGetConfig(
	hTemperature ZesTempHandle,
	pConfig *ZesTempConfig,
) (ZeResult, error)

ZesTemperatureGetConfig Get temperature configuration for this sensor - which events are / triggered and the trigger conditions / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTemperature` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Temperature thresholds are not supported on this temperature sensor. Generally this is only supported for temperature sensor ::ZES_TEMP_SENSORS_GLOBAL. / + One or both of the thresholds is not supported. Check the `isThreshold1Supported` and `isThreshold2Supported` members of ::zes_temp_properties_t. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to request this feature.

func ZesTemperatureGetProperties

func ZesTemperatureGetProperties(
	hTemperature ZesTempHandle,
	pProperties *ZesTempProperties,
) (ZeResult, error)

ZesTemperatureGetProperties Get temperature sensor properties / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTemperature` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesTemperatureGetState

func ZesTemperatureGetState(
	hTemperature ZesTempHandle,
	pTemperature *float64,
) (ZeResult, error)

ZesTemperatureGetState Get the temperature from a specified sensor / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTemperature` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pTemperature`

func ZesTemperatureSetConfig

func ZesTemperatureSetConfig(
	hTemperature ZesTempHandle,
	pConfig *ZesTempConfig,
) (ZeResult, error)

ZesTemperatureSetConfig Set temperature configuration for this sensor - indicates which events / are triggered and the trigger conditions / / @details / - Events ::ZES_EVENT_TYPE_FLAG_TEMP_CRITICAL will be triggered when / temperature reaches the critical range. Use the function / ::zesDeviceEventRegister() to start receiving this event. / - Events ::ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD1 and / ::ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD2 will be generated when / temperature cross the thresholds set using this function. Use the / function ::zesDeviceEventRegister() to start receiving these events. / - Only one running process can set the temperature configuration at a / time. If another process attempts to change the configuration, the / error ::ZE_RESULT_ERROR_NOT_AVAILABLE will be returned. The function / ::zesTemperatureGetConfig() will return the process ID currently / controlling these settings. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTemperature` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pConfig` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + Temperature thresholds are not supported on this temperature sensor. Generally they are only supported for temperature sensor ::ZES_TEMP_SENSORS_GLOBAL. / + Enabling the critical temperature event is not supported. Check the `isCriticalTempSupported` member of ::zes_temp_properties_t. / + One or both of the thresholds is not supported. Check the `isThreshold1Supported` and `isThreshold2Supported` members of ::zes_temp_properties_t. / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + User does not have permissions to request this feature. / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + Another running process is controlling these settings. / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + One or both the thresholds is above TjMax (see ::zesFrequencyOcGetTjMax()). Temperature thresholds must be below this value.

func ZesVFManagementGetVFCapabilitiesExp

func ZesVFManagementGetVFCapabilitiesExp(
	hVFhandle ZesVfHandle,
	pCapability *ZesVfExpCapabilities,
) (ZeResult, error)

ZesVFManagementGetVFCapabilitiesExp Get virtual function management capabilities / / @details / - [DEPRECATED] No longer supported. Use / ::zesVFManagementGetVFCapabilitiesExp2. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCapability`

func ZesVFManagementGetVFCapabilitiesExp2

func ZesVFManagementGetVFCapabilitiesExp2(
	hVFhandle ZesVfHandle,
	pCapability *ZesVfExp2Capabilities,
) (ZeResult, error)

ZesVFManagementGetVFCapabilitiesExp2 Get virtual function management capabilities / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCapability`

func ZesVFManagementGetVFEngineUtilizationExp

func ZesVFManagementGetVFEngineUtilizationExp(
	hVFhandle ZesVfHandle,
	pCount *uint32,
	pEngineUtil *ZesVfUtilEngineExp,
) (ZeResult, error)

ZesVFManagementGetVFEngineUtilizationExp Get engine activity stats for each available engine group associated / with Virtual Function (VF) / / @details / - [DEPRECATED] No longer supported. Use / ::zesVFManagementGetVFEngineUtilizationExp2. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesVFManagementGetVFEngineUtilizationExp2

func ZesVFManagementGetVFEngineUtilizationExp2(
	hVFhandle ZesVfHandle,
	pCount *uint32,
	pEngineUtil *ZesVfUtilEngineExp2,
) (ZeResult, error)

ZesVFManagementGetVFEngineUtilizationExp2 Get engine activity stats for each available engine group associated / with Virtual Function (VF) / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - If VF is disable/pause/not active, utilization will give zero value. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesVFManagementGetVFMemoryUtilizationExp

func ZesVFManagementGetVFMemoryUtilizationExp(
	hVFhandle ZesVfHandle,
	pCount *uint32,
	pMemUtil *ZesVfUtilMemExp,
) (ZeResult, error)

ZesVFManagementGetVFMemoryUtilizationExp Get memory activity stats for each available memory types associated / with Virtual Function (VF) / / @details / - [DEPRECATED] No longer supported. Use / ::zesVFManagementGetVFMemoryUtilizationExp2. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesVFManagementGetVFMemoryUtilizationExp2

func ZesVFManagementGetVFMemoryUtilizationExp2(
	hVFhandle ZesVfHandle,
	pCount *uint32,
	pMemUtil *ZesVfUtilMemExp2,
) (ZeResult, error)

ZesVFManagementGetVFMemoryUtilizationExp2 Get memory activity stats for each available memory types associated / with Virtual Function (VF) / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / - If VF is disable/pause/not active, utilization will give zero value. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZesVFManagementGetVFPropertiesExp

func ZesVFManagementGetVFPropertiesExp(
	hVFhandle ZesVfHandle,
	pProperties *ZesVfExpProperties,
) (ZeResult, error)

ZesVFManagementGetVFPropertiesExp Get virtual function management properties / / @details / - [DEPRECATED] No longer supported. Use / ::zesVFManagementGetVFCapabilitiesExp. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZesVFManagementSetVFTelemetryModeExp

func ZesVFManagementSetVFTelemetryModeExp(
	hVFhandle ZesVfHandle,
	flags ZesVfInfoUtilExpFlags,
	enable ZeBool,
) (ZeResult, error)

ZesVFManagementSetVFTelemetryModeExp Configure utilization telemetry enabled or disabled associated with / Virtual Function (VF) / / @details / - [DEPRECATED] No longer supported. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0xf < flags` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZesVFManagementSetVFTelemetrySamplingIntervalExp

func ZesVFManagementSetVFTelemetrySamplingIntervalExp(
	hVFhandle ZesVfHandle,
	flag ZesVfInfoUtilExpFlags,
	samplingInterval uint64,
) (ZeResult, error)

ZesVFManagementSetVFTelemetrySamplingIntervalExp Set sampling interval to monitor for a particular utilization / telemetry associated with Virtual Function (VF) / / @details / - [DEPRECATED] No longer supported. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hVFhandle` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0xf < flag` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZetCommandListAppendMarkerExp

func ZetCommandListAppendMarkerExp(
	hCommandList ZetCommandListHandle,
	hMetricGroup ZetMetricGroupHandle,
	value uint32,
) (ZeResult, error)

ZetCommandListAppendMarkerExp Append a Marker based on the Metric source of the Metric Group, to a / Command List. / / @details / - This function appends a Marker based on the Metric source of the / Metric Group, to Command List. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hMetricGroup`

func ZetCommandListAppendMetricMemoryBarrier

func ZetCommandListAppendMetricMemoryBarrier(
	hCommandList ZetCommandListHandle,
) (ZeResult, error)

ZetCommandListAppendMetricMemoryBarrier Appends metric query commands to flush all caches. / / @details / - The application must **not** call this function from simultaneous / threads with the same command list handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList`

func ZetCommandListAppendMetricQueryBegin

func ZetCommandListAppendMetricQueryBegin(
	hCommandList ZetCommandListHandle,
	hMetricQuery ZetMetricQueryHandle,
) (ZeResult, error)

ZetCommandListAppendMetricQueryBegin Appends metric query begin into a command list. / / @details / - The application must ensure the metric query is accessible by the / device on which the command list was created. / - The application must ensure the command list and metric query were / created on the same context. / - This command blocks all following commands from beginning until the / execution of the query completes. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hMetricQuery`

func ZetCommandListAppendMetricQueryEnd

func ZetCommandListAppendMetricQueryEnd(
	hCommandList ZetCommandListHandle,
	hMetricQuery ZetMetricQueryHandle,
	hSignalEvent ZeEventHandle,
	numWaitEvents uint32,
	phWaitEvents *ZeEventHandle,
) (ZeResult, error)

ZetCommandListAppendMetricQueryEnd Appends metric query end into a command list. / / @details / - The application must ensure the metric query and events are accessible / by the device on which the command list was created. / - The application must ensure the command list, events and metric query / were created on the same context. / - The duration of the signal event created from an event pool that was / created using ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP flag is undefined. / However, for consistency and orthogonality the event will report / correctly as signaled when used by other event API functionality. / - If numWaitEvents is zero, then all previous commands are completed / prior to the execution of the query. / - If numWaitEvents is non-zero, then all phWaitEvents must be signaled / prior to the execution of the query. / - This command blocks all following commands from beginning until the / execution of the query completes. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hMetricQuery` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phWaitEvents) && (0 < numWaitEvents)`

func ZetCommandListAppendMetricStreamerMarker

func ZetCommandListAppendMetricStreamerMarker(
	hCommandList ZetCommandListHandle,
	hMetricStreamer ZetMetricStreamerHandle,
	value uint32,
) (ZeResult, error)

ZetCommandListAppendMetricStreamerMarker Append metric streamer marker into a command list. / / @details / - The application must ensure the metric streamer is accessible by the / device on which the command list was created. / - The application must ensure the command list and metric streamer were / created on the same context. / - The application must **not** call this function from simultaneous / threads with the same command list handle. / - Allow to associate metric stream time based metrics with executed / workload. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hCommandList` / + `nullptr == hMetricStreamer`

func ZetContextActivateMetricGroups

func ZetContextActivateMetricGroups(
	hContext ZetContextHandle,
	hDevice ZetDeviceHandle,
	count uint32,
	phMetricGroups *ZetMetricGroupHandle,
) (ZeResult, error)

ZetContextActivateMetricGroups Activates metric groups. / / @details / - Immediately reconfigures the device to activate only those metric / groups provided. / - Any metric groups previously activated but not provided will be / deactivated. / - Deactivating metric groups that are still in-use will result in / undefined behavior. / - All metric groups must have different domains, see / ::zet_metric_group_properties_t. / - The application must **not** call this function from simultaneous / threads with the same device handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_SIZE / + `(nullptr == phMetricGroups) && (0 < count)` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + Multiple metric groups share the same domain

func ZetDebugAcknowledgeEvent

func ZetDebugAcknowledgeEvent(
	hDebug ZetDebugSessionHandle,
	event *ZetDebugEvent,
) (ZeResult, error)

ZetDebugAcknowledgeEvent Acknowledge a debug event. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == event`

func ZetDebugAttach

func ZetDebugAttach(
	hDevice ZetDeviceHandle,
	config *ZetDebugConfig,
	phDebug *ZetDebugSessionHandle,
) (ZeResult, error)

ZetDebugAttach Attach to a device. / / @details / - The device must be enabled for debug; see / ::zesSchedulerSetComputeUnitDebugMode. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == config` / + `nullptr == phDebug` / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / + attaching to this device is not supported / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / + caller does not have sufficient permissions / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + a debugger is already attached

func ZetDebugDetach

func ZetDebugDetach(
	hDebug ZetDebugSessionHandle,
) (ZeResult, error)

ZetDebugDetach Close a debug session. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug`

func ZetDebugGetRegisterSetProperties

func ZetDebugGetRegisterSetProperties(
	hDevice ZetDeviceHandle,
	pCount *uint32,
	pRegisterSetProperties *ZetDebugRegsetProperties,
) (ZeResult, error)

ZetDebugGetRegisterSetProperties Retrieves debug register set properties. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZetDebugGetThreadRegisterSetProperties

func ZetDebugGetThreadRegisterSetProperties(
	hDebug ZetDebugSessionHandle,
	thread *ZeDeviceThread,
	pCount *uint32,
	pRegisterSetProperties *ZetDebugRegsetProperties,
) (ZeResult, error)

ZetDebugGetThreadRegisterSetProperties Retrieves debug register set properties for a given thread. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount` / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + the thread is running or unavailable / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + the thread argument specifies more than one or a non-existant thread

func ZetDebugInterrupt

func ZetDebugInterrupt(
	hDebug ZetDebugSessionHandle,
	thread *ZeDeviceThread,
) (ZeResult, error)

ZetDebugInterrupt Interrupt device threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + the thread is already stopped or unavailable

func ZetDebugReadEvent

func ZetDebugReadEvent(
	hDebug ZetDebugSessionHandle,
	timeout uint64,
	event *ZetDebugEvent,
) (ZeResult, error)

ZetDebugReadEvent Read the topmost debug event. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == event` / - ::ZE_RESULT_NOT_READY / + the timeout expired

func ZetDebugReadMemory

func ZetDebugReadMemory(
	hDebug ZetDebugSessionHandle,
	thread *ZeDeviceThread,
	desc *ZetDebugMemorySpaceDesc,
	size uintptr,
	buffer unsafe.Pointer,
) (ZeResult, error)

ZetDebugReadMemory Read memory. / / @details / - The thread identifier 'all' can be used for accessing the default / memory space, e.g. for setting breakpoints. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == buffer` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZET_DEBUG_MEMORY_SPACE_TYPE_BARRIER < desc->type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + the thread is running or unavailable / + the memory cannot be accessed from the supplied thread

func ZetDebugReadRegisters

func ZetDebugReadRegisters(
	hDebug ZetDebugSessionHandle,
	thread *ZeDeviceThread,
	typ uint32,
	start uint32,
	count uint32,
	pRegisterValues unsafe.Pointer,
) (ZeResult, error)

ZetDebugReadRegisters Read register state. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + the thread is running or unavailable

func ZetDebugResume

func ZetDebugResume(
	hDebug ZetDebugSessionHandle,
	thread *ZeDeviceThread,
) (ZeResult, error)

ZetDebugResume Resume device threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + the thread is already running or unavailable

func ZetDebugWriteMemory

func ZetDebugWriteMemory(
	hDebug ZetDebugSessionHandle,
	thread *ZeDeviceThread,
	desc *ZetDebugMemorySpaceDesc,
	size uintptr,
	buffer unsafe.Pointer,
) (ZeResult, error)

ZetDebugWriteMemory Write memory. / / @details / - The thread identifier 'all' can be used for accessing the default / memory space, e.g. for setting breakpoints. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == buffer` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZET_DEBUG_MEMORY_SPACE_TYPE_BARRIER < desc->type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + the thread is running or unavailable / + the memory cannot be accessed from the supplied thread

func ZetDebugWriteRegisters

func ZetDebugWriteRegisters(
	hDebug ZetDebugSessionHandle,
	thread *ZeDeviceThread,
	typ uint32,
	start uint32,
	count uint32,
	pRegisterValues unsafe.Pointer,
) (ZeResult, error)

ZetDebugWriteRegisters Write register state. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDebug` / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / + the thread is running or unavailable

func ZetDeviceCreateMetricGroupsFromMetricsExp

func ZetDeviceCreateMetricGroupsFromMetricsExp(
	hDevice ZetDeviceHandle,
	metricCount uint32,
	phMetrics *ZetMetricHandle,
	pMetricGroupNamePrefix *byte,
	pDescription *byte,
	pMetricGroupCount *uint32,
	phMetricGroup *ZetMetricGroupHandle,
) (ZeResult, error)

ZetDeviceCreateMetricGroupsFromMetricsExp Create multiple metric group handles from metric handles. / / @details / - Creates multiple metric groups from metrics which were created using / ::zetMetricCreateFromProgrammableExp2(). / - Metrics whose Hardware resources do not overlap are added to same / metric group. / - The metric groups created using this API are managed by the / application and cannot be retrieved using ::zetMetricGroupGet(). / - The created metric groups are ready for activation and collection. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + metricGroupCount is lesser than the number of metric group handles that could be created.

func ZetDeviceDisableMetricsExp

func ZetDeviceDisableMetricsExp(
	hDevice ZetDeviceHandle,
) (ZeResult, error)

ZetDeviceDisableMetricsExp Disable Metrics collection during runtime, if it was already enabled. / / @details / - This API disables metrics collection for a device/sub-device, if it / was previously enabled. / - If device is a root-device handle, then its sub-devices are also / disabled. / - The application has to ensure that all metric operations are complete / and all metric resources are released before this API is called. / - If there are metric operations in progress or metric resources are not / released, then ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE is returned. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice`

func ZetDeviceEnableMetricsExp

func ZetDeviceEnableMetricsExp(
	hDevice ZetDeviceHandle,
) (ZeResult, error)

ZetDeviceEnableMetricsExp Enable Metrics collection during runtime. / / @details / - This API enables metric collection for a device/sub-device if not / already enabled. / - if ZET_ENABLE_METRICS=1 was already set, then calling this api would / be a NOP. / - This api should be called after calling zeInit(). / - If device is a root-device handle, then its sub-devices are also / enabled. / - ::zetDeviceDisableMetricsExp need not be called if if this api returns / error. / - This API can be used as runtime alternative to setting / ZET_ENABLE_METRICS=1. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice`

func ZetDeviceGetConcurrentMetricGroupsExp

func ZetDeviceGetConcurrentMetricGroupsExp(
	hDevice ZetDeviceHandle,
	metricGroupCount uint32,
	phMetricGroups *ZetMetricGroupHandle,
	pMetricGroupsCountPerConcurrentGroup *uint32,
	pConcurrentGroupCount *uint32,
) (ZeResult, error)

ZetDeviceGetConcurrentMetricGroupsExp Get sets of metric groups which could be collected concurrently. / / @details / - Re-arrange the input metric groups to provide sets of concurrent / metric groups. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice`

func ZetDeviceGetDebugProperties

func ZetDeviceGetDebugProperties(
	hDevice ZetDeviceHandle,
	pDebugProperties *ZetDeviceDebugProperties,
) (ZeResult, error)

ZetDeviceGetDebugProperties Retrieves debug properties of the device. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pDebugProperties`

func ZetKernelGetProfileInfo

func ZetKernelGetProfileInfo(
	hKernel ZetKernelHandle,
	pProfileProperties *ZetProfileProperties,
) (ZeResult, error)

ZetKernelGetProfileInfo Retrieve profiling information generated for the kernel. / / @details / - Module must be created using the following build option: / + "-zet-profile-flags <n>" - enable generation of profile / information / + "<n>" must be a combination of ::zet_profile_flag_t, in hex / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hKernel` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProfileProperties`

func ZetMetricCreateFromProgrammableExp

func ZetMetricCreateFromProgrammableExp(
	hMetricProgrammable ZetMetricProgrammableExpHandle,
	pParameterValues *ZetMetricProgrammableParamValueExp,
	parameterCount uint32,
	pName *byte,
	pDescription *byte,
	pMetricHandleCount *uint32,
	phMetricHandles *ZetMetricHandle,
) (ZeResult, error)

ZetMetricCreateFromProgrammableExp Create metric handles by applying parameter values on the metric / programmable handle. / / @details / - This API is deprecated. Please use / ::zetMetricCreateFromProgrammableExp2() / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricProgrammable` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pParameterValues` / + `nullptr == pName` / + `nullptr == pDescription` / + `nullptr == pMetricHandleCount`

func ZetMetricCreateFromProgrammableExp2

func ZetMetricCreateFromProgrammableExp2(
	hMetricProgrammable ZetMetricProgrammableExpHandle,
	parameterCount uint32,
	pParameterValues *ZetMetricProgrammableParamValueExp,
	pName *byte,
	pDescription *byte,
	pMetricHandleCount *uint32,
	phMetricHandles *ZetMetricHandle,
) (ZeResult, error)

ZetMetricCreateFromProgrammableExp2 Create metric handles by applying parameter values on the metric / programmable handle. / / @details / - Multiple parameter values could be used to prepare a metric. / - If parameterCount = 0, the default value of the metric programmable / would be used for all parameters. / - The implementation can post-fix a C string to the metric name and / description, based on the parameter values chosen. / - ::zetMetricProgrammableGetParamInfoExp() returns a list of parameters / in a defined order. / - Therefore, the list of values passed in to the API should respect the / same order such that the desired parameter is set with expected value / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricProgrammable` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pParameterValues` / + `nullptr == pName` / + `nullptr == pDescription` / + `nullptr == pMetricHandleCount`

func ZetMetricDecoderCreateExp

func ZetMetricDecoderCreateExp(
	hMetricTracer ZetMetricTracerExpHandle,
	phMetricDecoder *ZetMetricDecoderExpHandle,
) (ZeResult, error)

ZetMetricDecoderCreateExp Create a metric decoder for a given metric tracer. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricTracer` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phMetricDecoder`

func ZetMetricDecoderDestroyExp

func ZetMetricDecoderDestroyExp(
	phMetricDecoder ZetMetricDecoderExpHandle,
) (ZeResult, error)

ZetMetricDecoderDestroyExp Destroy a metric decoder. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == phMetricDecoder`

func ZetMetricDecoderGetDecodableMetricsExp

func ZetMetricDecoderGetDecodableMetricsExp(
	hMetricDecoder ZetMetricDecoderExpHandle,
	pCount *uint32,
	phMetrics *ZetMetricHandle,
) (ZeResult, error)

ZetMetricDecoderGetDecodableMetricsExp Return the list of the decodable metrics from the decoder. / / @details / - The decodable metrics handles returned by this API are defined by the / metric groups in the tracer on which the decoder was created. / - The decodable metrics handles returned by this API are only valid to / decode metrics raw data with ::zetMetricTracerDecodeExp(). Decodable / metric handles are not valid to compare with metrics handles included / in metric groups. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricDecoder` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount` / + `nullptr == phMetrics`

func ZetMetricDestroyExp

func ZetMetricDestroyExp(
	hMetric ZetMetricHandle,
) (ZeResult, error)

ZetMetricDestroyExp Destroy a metric created using ::zetMetricCreateFromProgrammableExp2. / / @details / - If a metric is added to a metric group, the metric has to be removed / using ::zetMetricGroupRemoveMetricExp before it can be destroyed. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetric` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + If trying to destroy a metric from pre-defined metric group / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + If trying to destroy a metric currently added to a metric group

func ZetMetricGet

func ZetMetricGet(
	hMetricGroup ZetMetricGroupHandle,
	pCount *uint32,
	phMetrics *ZetMetricHandle,
) (ZeResult, error)

ZetMetricGet Retrieves metric from a metric group. / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZetMetricGetProperties

func ZetMetricGetProperties(
	hMetric ZetMetricHandle,
	pProperties *ZetMetricProperties,
) (ZeResult, error)

ZetMetricGetProperties Retrieves attributes of a metric. / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetric` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZetMetricGroupAddMetricExp

func ZetMetricGroupAddMetricExp(
	hMetricGroup ZetMetricGroupHandle,
	hMetric ZetMetricHandle,
	pErrorStringSize *uintptr,
	pErrorString *byte,
) (ZeResult, error)

ZetMetricGroupAddMetricExp Add a metric handle to the metric group handle created using / ::zetDeviceCreateMetricGroupsFromMetricsExp. / / @details / - Reasons for failing to add the metric could be queried using / pErrorString / - Multiple additions of same metric would add the metric only once to / the hMetricGroup / - Metric handles from multiple domains may be used in a single metric / group. / - Metric handles from different sourceIds (refer / ::zet_metric_programmable_exp_properties_t) are not allowed in a / single metric group. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / + `nullptr == hMetric` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + If a Metric handle from a pre-defined metric group is requested to be added. / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + If the metric group is currently activated.

func ZetMetricGroupCalculateMetricExportDataExp

func ZetMetricGroupCalculateMetricExportDataExp(
	hDriver ZeDriverHandle,
	typ ZetMetricGroupCalculationType,
	exportDataSize uintptr,
	pExportData *uint8,
	pCalculateDescriptor *ZetMetricCalculateExpDesc,
	pSetCount *uint32,
	pTotalMetricValueCount *uint32,
	pMetricCounts *uint32,
	pMetricValues *ZetTypedValue,
) (ZeResult, error)

ZetMetricGroupCalculateMetricExportDataExp Calculate one or more sets of metric values from exported raw data. / / @details / - Calculate metrics values using exported data returned by / ::zetMetricGroupGetExportDataExp. / - This function is similar to / ::zetMetricGroupCalculateMultipleMetricValuesExp except it would / calculate from exported metric data. / - This function could be used to calculate metrics on a system different / from where the metric raw data was collected. / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDriver` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZET_METRIC_GROUP_CALCULATION_TYPE_MAX_METRIC_VALUES < type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pExportData` / + `nullptr == pCalculateDescriptor` / + `nullptr == pSetCount` / + `nullptr == pTotalMetricValueCount`

func ZetMetricGroupCalculateMetricValues

func ZetMetricGroupCalculateMetricValues(
	hMetricGroup ZetMetricGroupHandle,
	typ ZetMetricGroupCalculationType,
	rawDataSize uintptr,
	pRawData *uint8,
	pMetricValueCount *uint32,
	pMetricValues *ZetTypedValue,
) (ZeResult, error)

ZetMetricGroupCalculateMetricValues Calculates metric values from raw data. / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZET_METRIC_GROUP_CALCULATION_TYPE_MAX_METRIC_VALUES < type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRawData` / + `nullptr == pMetricValueCount`

func ZetMetricGroupCalculateMultipleMetricValuesExp

func ZetMetricGroupCalculateMultipleMetricValuesExp(
	hMetricGroup ZetMetricGroupHandle,
	typ ZetMetricGroupCalculationType,
	rawDataSize uintptr,
	pRawData *uint8,
	pSetCount *uint32,
	pTotalMetricValueCount *uint32,
	pMetricCounts *uint32,
	pMetricValues *ZetTypedValue,
) (ZeResult, error)

ZetMetricGroupCalculateMultipleMetricValuesExp Calculate one or more sets of metric values from raw data. / / @details / - This function is similar to ::zetMetricGroupCalculateMetricValues / except it may calculate more than one set of metric values from a / single data buffer. There may be one set of metric values for each / sub-device, for example. / - Each set of metric values may consist of a different number of metric / values, returned as the metric value count. / - All metric values are calculated into a single buffer; use the metric / counts to determine which metric values belong to which set. / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZET_METRIC_GROUP_CALCULATION_TYPE_MAX_METRIC_VALUES < type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRawData` / + `nullptr == pSetCount` / + `nullptr == pTotalMetricValueCount`

func ZetMetricGroupCloseExp

func ZetMetricGroupCloseExp(
	hMetricGroup ZetMetricGroupHandle,
) (ZeResult, error)

ZetMetricGroupCloseExp Closes a created metric group using / ::zetDeviceCreateMetricGroupsFromMetricsExp, so that it can be / activated. / / @details / - Finalizes the ::zetMetricGroupAddMetricExp and / ::zetMetricGroupRemoveMetricExp operations on the metric group. / - This is a necessary step before activation of the created metric / group. / - Add / Remove of metrics is possible after ::zetMetricGroupCloseExp. / However, a call to ::zetMetricGroupCloseExp is necessary after / modifying the metric group. / - Implementations could choose to add new metrics to the group during / ::zetMetricGroupCloseExp, which are related and might add value to the / metrics already added by the application / - Applications can query the list of metrics in the metric group using / ::zetMetricGet / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + If the input metric group is a pre-defined metric group / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + If the metric group is currently activated

func ZetMetricGroupCreateExp

func ZetMetricGroupCreateExp(
	hDevice ZetDeviceHandle,
	pName *byte,
	pDescription *byte,
	samplingType ZetMetricGroupSamplingTypeFlags,
	phMetricGroup *ZetMetricGroupHandle,
) (ZeResult, error)

ZetMetricGroupCreateExp Create metric group handle. / / @details / - This API is deprecated. Please use / ::zetDeviceCreateMetricGroupsFromMetricsExp / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pName` / + `nullptr == pDescription` / + `nullptr == phMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `0x7 < samplingType` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZetMetricGroupDestroyExp

func ZetMetricGroupDestroyExp(
	hMetricGroup ZetMetricGroupHandle,
) (ZeResult, error)

ZetMetricGroupDestroyExp Destroy a metric group created using / ::zetDeviceCreateMetricGroupsFromMetricsExp. / / @details / - Metric handles created using ::zetMetricCreateFromProgrammableExp2 and / are part of the metricGroup are not destroyed. / - It is necessary to call ::zetMetricDestroyExp for each of the metric / handles (created from ::zetMetricCreateFromProgrammableExp2) to / destroy them. / - It is not necessary to remove the metrics in the metricGroup before / destroying it. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + If trying to destroy a pre-defined metric group / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + If trying to destroy an activated metric group

func ZetMetricGroupGet

func ZetMetricGroupGet(
	hDevice ZetDeviceHandle,
	pCount *uint32,
	phMetricGroups *ZetMetricGroupHandle,
) (ZeResult, error)

ZetMetricGroupGet Retrieves metric group for a device. / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZetMetricGroupGetExportDataExp

func ZetMetricGroupGetExportDataExp(
	hMetricGroup ZetMetricGroupHandle,
	pRawData *uint8,
	rawDataSize uintptr,
	pExportDataSize *uintptr,
	pExportData *uint8,
) (ZeResult, error)

ZetMetricGroupGetExportDataExp Export Metrics Data for system independent calculation. / / @details / - This function exports raw data and necessary information to perform / metrics calculation of collected data in a different system than where / data was collected, which may or may not have accelerators. / - Implementations can choose to describe the data arrangement of the / exported data, using any mechanism which allows users to read and / process them. / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRawData` / + `nullptr == pExportDataSize`

func ZetMetricGroupGetGlobalTimestampsExp

func ZetMetricGroupGetGlobalTimestampsExp(
	hMetricGroup ZetMetricGroupHandle,
	synchronizedWithHost ZeBool,
	globalTimestamp *uint64,
	metricTimestamp *uint64,
) (ZeResult, error)

ZetMetricGroupGetGlobalTimestampsExp Returns metric timestamps synchronized with global device timestamps, / optionally synchronized with host / / @details / - The application may call this function from simultaneous threads. / - By default, the global and metrics timestamps are synchronized to the / device. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == globalTimestamp` / + `nullptr == metricTimestamp`

func ZetMetricGroupGetProperties

func ZetMetricGroupGetProperties(
	hMetricGroup ZetMetricGroupHandle,
	pProperties *ZetMetricGroupProperties,
) (ZeResult, error)

ZetMetricGroupGetProperties Retrieves attributes of a metric group. / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZetMetricGroupRemoveMetricExp

func ZetMetricGroupRemoveMetricExp(
	hMetricGroup ZetMetricGroupHandle,
	hMetric ZetMetricHandle,
) (ZeResult, error)

ZetMetricGroupRemoveMetricExp Remove a metric from the metric group handle created using / ::zetDeviceCreateMetricGroupsFromMetricsExp. / / @details / - Remove an already added metric handle from the metric group. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricGroup` / + `nullptr == hMetric` / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / + If trying to remove a metric not previously added to the metric group / + If the input metric group is a pre-defined metric group / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE / + If the metric group is currently activated

func ZetMetricProgrammableGetExp

func ZetMetricProgrammableGetExp(
	hDevice ZetDeviceHandle,
	pCount *uint32,
	phMetricProgrammables *ZetMetricProgrammableExpHandle,
) (ZeResult, error)

ZetMetricProgrammableGetExp Query and get the available metric programmable handles. / / @details / - Query the available programmable handles using *pCount = 0. / - Returns all programmable metric handles available in the device. / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCount`

func ZetMetricProgrammableGetParamInfoExp

func ZetMetricProgrammableGetParamInfoExp(
	hMetricProgrammable ZetMetricProgrammableExpHandle,
	pParameterCount *uint32,
	pParameterInfo *ZetMetricProgrammableParamInfoExp,
) (ZeResult, error)

ZetMetricProgrammableGetParamInfoExp Get the information about the parameters of the metric programmable. / / @details / - Returns information about the parameters of the metric programmable / handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricProgrammable` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pParameterCount` / + `nullptr == pParameterInfo`

func ZetMetricProgrammableGetParamValueInfoExp

func ZetMetricProgrammableGetParamValueInfoExp(
	hMetricProgrammable ZetMetricProgrammableExpHandle,
	parameterOrdinal uint32,
	pValueInfoCount *uint32,
	pValueInfo *ZetMetricProgrammableParamValueInfoExp,
) (ZeResult, error)

ZetMetricProgrammableGetParamValueInfoExp Get the information about the parameter value of the metric / programmable. / / @details / - Returns the value-information about the parameter at the specific / ordinal of the metric programmable handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricProgrammable` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pValueInfoCount` / + `nullptr == pValueInfo`

func ZetMetricProgrammableGetPropertiesExp

func ZetMetricProgrammableGetPropertiesExp(
	hMetricProgrammable ZetMetricProgrammableExpHandle,
	pProperties *ZetMetricProgrammableExpProperties,
) (ZeResult, error)

ZetMetricProgrammableGetPropertiesExp Get the properties of the metric programmable. / / @details / - Returns the properties of the metric programmable. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricProgrammable` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pProperties`

func ZetMetricQueryCreate

func ZetMetricQueryCreate(
	hMetricQueryPool ZetMetricQueryPoolHandle,
	index uint32,
	phMetricQuery *ZetMetricQueryHandle,
) (ZeResult, error)

ZetMetricQueryCreate Creates metric query from the pool. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricQueryPool` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phMetricQuery`

func ZetMetricQueryDestroy

func ZetMetricQueryDestroy(
	hMetricQuery ZetMetricQueryHandle,
) (ZeResult, error)

ZetMetricQueryDestroy Deletes a metric query object. / / @details / - The application must ensure the device is not currently referencing / the query before it is deleted. / - The application must **not** call this function from simultaneous / threads with the same query handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricQuery` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZetMetricQueryGetData

func ZetMetricQueryGetData(
	hMetricQuery ZetMetricQueryHandle,
	pRawDataSize *uintptr,
	pRawData *uint8,
) (ZeResult, error)

ZetMetricQueryGetData Retrieves raw data for a given metric query. / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricQuery` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRawDataSize`

func ZetMetricQueryPoolCreate

func ZetMetricQueryPoolCreate(
	hContext ZetContextHandle,
	hDevice ZetDeviceHandle,
	hMetricGroup ZetMetricGroupHandle,
	desc *ZetMetricQueryPoolDesc,
	phMetricQueryPool *ZetMetricQueryPoolHandle,
) (ZeResult, error)

ZetMetricQueryPoolCreate Creates a pool of metric queries on the context. / / @details / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phMetricQueryPool` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZET_METRIC_QUERY_POOL_TYPE_EXECUTION < desc->type` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION

func ZetMetricQueryPoolDestroy

func ZetMetricQueryPoolDestroy(
	hMetricQueryPool ZetMetricQueryPoolHandle,
) (ZeResult, error)

ZetMetricQueryPoolDestroy Deletes a query pool object. / / @details / - The application must destroy all query handles created from the pool / before destroying the pool itself. / - The application must ensure the device is not currently referencing / the any query within the pool before it is deleted. / - The application must **not** call this function from simultaneous / threads with the same query pool handle. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricQueryPool` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZetMetricQueryReset

func ZetMetricQueryReset(
	hMetricQuery ZetMetricQueryHandle,
) (ZeResult, error)

ZetMetricQueryReset Resets a metric query object back to initial state. / / @details / - The application must ensure the device is not currently referencing / the query before it is reset / - The application must **not** call this function from simultaneous / threads with the same query handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricQuery`

func ZetMetricStreamerClose

func ZetMetricStreamerClose(
	hMetricStreamer ZetMetricStreamerHandle,
) (ZeResult, error)

ZetMetricStreamerClose Closes metric streamer. / / @details / - The application must **not** call this function from simultaneous / threads with the same metric streamer handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricStreamer`

func ZetMetricStreamerOpen

func ZetMetricStreamerOpen(
	hContext ZetContextHandle,
	hDevice ZetDeviceHandle,
	hMetricGroup ZetMetricGroupHandle,
	desc *ZetMetricStreamerDesc,
	hNotificationEvent ZeEventHandle,
	phMetricStreamer *ZetMetricStreamerHandle,
) (ZeResult, error)

ZetMetricStreamerOpen Opens metric streamer for a device. / / @details / - The notification event must have been created from an event pool that / was created using ::ZE_EVENT_POOL_FLAG_HOST_VISIBLE flag. / - The duration of the signal event created from an event pool that was / created using ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP flag is undefined. / However, for consistency and orthogonality the event will report / correctly as signaled when used by other event API functionality. / - The application must **not** call this function from simultaneous / threads with the same device handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / + `nullptr == hMetricGroup` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == phMetricStreamer` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZetMetricStreamerReadData

func ZetMetricStreamerReadData(
	hMetricStreamer ZetMetricStreamerHandle,
	maxReportCount uint32,
	pRawDataSize *uintptr,
	pRawData *uint8,
) (ZeResult, error)

ZetMetricStreamerReadData Reads data from metric streamer. / / @details / - The application may call this function from simultaneous threads. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricStreamer` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRawDataSize` / - ::ZE_RESULT_WARNING_DROPPED_DATA / + Metric streamer data may have been dropped. Reduce sampling period.

func ZetMetricTracerCreateExp

func ZetMetricTracerCreateExp(
	hContext ZetContextHandle,
	hDevice ZetDeviceHandle,
	metricGroupCount uint32,
	phMetricGroups *ZetMetricGroupHandle,
	desc *ZetMetricTracerExpDesc,
	hNotificationEvent ZeEventHandle,
	phMetricTracer *ZetMetricTracerExpHandle,
) (ZeResult, error)

ZetMetricTracerCreateExp Create a metric tracer for a device. / / @details / - The notification event must have been created from an event pool that / was created using ::ZE_EVENT_POOL_FLAG_HOST_VISIBLE flag. / - The duration of the signal event created from an event pool that was / created using ::ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP flag is undefined. / However, for consistency and orthogonality the event will report / correctly as signaled when used by other event API functionality. / - The application must **not** call this function from simultaneous / threads with the same device handle. / - The metric tracer is created in disabled state / - Metric groups must support sampling type / ZET_METRIC_SAMPLING_TYPE_EXP_FLAG_TRACER_BASED / - All metric groups must be first activated / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / + `nullptr == hDevice` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == phMetricGroups` / + `nullptr == desc` / + `nullptr == phMetricTracer` / - ::ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT

func ZetMetricTracerDecodeExp

func ZetMetricTracerDecodeExp(
	phMetricDecoder ZetMetricDecoderExpHandle,
	pRawDataSize *uintptr,
	pRawData *uint8,
	metricsCount uint32,
	phMetrics *ZetMetricHandle,
	pSetCount *uint32,
	pMetricEntriesCountPerSet *uint32,
	pMetricEntriesCount *uint32,
	pMetricEntries *ZetMetricEntryExp,
) (ZeResult, error)

ZetMetricTracerDecodeExp Decode raw events collected from a tracer. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == phMetricDecoder` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRawDataSize` / + `nullptr == phMetrics` / + `nullptr == pSetCount` / + `nullptr == pMetricEntriesCount`

func ZetMetricTracerDestroyExp

func ZetMetricTracerDestroyExp(
	hMetricTracer ZetMetricTracerExpHandle,
) (ZeResult, error)

ZetMetricTracerDestroyExp Destroy a metric tracer. / / @details / - The application must **not** call this function from simultaneous / threads with the same metric tracer handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricTracer`

func ZetMetricTracerDisableExp

func ZetMetricTracerDisableExp(
	hMetricTracer ZetMetricTracerExpHandle,
	synchronous ZeBool,
) (ZeResult, error)

ZetMetricTracerDisableExp Stop events collection / / @details / - Driver implementations must make this API call have as minimal / overhead as possible, to allow applications start/stop event / collection at any point during execution / - The application must **not** call this function from simultaneous / threads with the same metric tracer handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricTracer`

func ZetMetricTracerEnableExp

func ZetMetricTracerEnableExp(
	hMetricTracer ZetMetricTracerExpHandle,
	synchronous ZeBool,
) (ZeResult, error)

ZetMetricTracerEnableExp Start events collection / / @details / - Driver implementations must make this API call have as minimal / overhead as possible, to allow applications start/stop event / collection at any point during execution / - The application must **not** call this function from simultaneous / threads with the same metric tracer handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricTracer`

func ZetMetricTracerReadDataExp

func ZetMetricTracerReadDataExp(
	hMetricTracer ZetMetricTracerExpHandle,
	pRawDataSize *uintptr,
	pRawData *uint8,
) (ZeResult, error)

ZetMetricTracerReadDataExp Read data from the metric tracer / / @details / - The application must **not** call this function from simultaneous / threads with the same metric tracer handle. / - Data can be retrieved after tracer is disabled. When buffers are / drained ::ZE_RESULT_NOT_READY will be returned / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hMetricTracer` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pRawDataSize` / - ::ZE_RESULT_WARNING_DROPPED_DATA / + Metric tracer data may have been dropped. / - ::ZE_RESULT_NOT_READY / + Metric tracer is disabled and no data is available to read.

func ZetModuleGetDebugInfo

func ZetModuleGetDebugInfo(
	hModule ZetModuleHandle,
	format ZetModuleDebugInfoFormat,
	pSize *uintptr,
	pDebugInfo *uint8,
) (ZeResult, error)

ZetModuleGetDebugInfo Retrieve debug info from module. / / @details / - The caller can pass nullptr for pDebugInfo when querying only for / size. / - The implementation will copy the native binary into a buffer supplied / by the caller. / - The application may call this function from simultaneous threads. / - The implementation of this function should be lock-free. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hModule` / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION / + `::ZET_MODULE_DEBUG_INFO_FORMAT_ELF_DWARF < format` / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pSize`

func ZetTracerExpCreate

func ZetTracerExpCreate(
	hContext ZetContextHandle,
	desc *ZetTracerExpDesc,
	phTracer *ZetTracerExpHandle,
) (ZeResult, error)

ZetTracerExpCreate Creates a tracer on the context. / / @details / - @deprecated This function is not supported in L0 drivers and has been / replaced by the Loader Tracing Layer. See the Loader Tracing / documentation for more details. / - The application must only use the tracer for the context which was / provided during creation. / - The tracer is created in the disabled state. / - The application may call this function from simultaneous threads. / - The implementation of this function must be thread-safe. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hContext` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == desc` / + `nullptr == desc->pUserData` / + `nullptr == phTracer`

func ZetTracerExpDestroy

func ZetTracerExpDestroy(
	hTracer ZetTracerExpHandle,
) (ZeResult, error)

ZetTracerExpDestroy Destroys a tracer. / / @details / - @deprecated This function is not supported in L0 drivers and has been / replaced by the Loader Tracing Layer. See the Loader Tracing / documentation for more details. / - The application must **not** call this function from simultaneous / threads with the same tracer handle. / - The implementation of this function must be thread-safe. / - The implementation of this function will stall and wait on any / outstanding threads executing callbacks before freeing any Host / allocations associated with this tracer. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTracer` / - ::ZE_RESULT_ERROR_HANDLE_OBJECT_IN_USE

func ZetTracerExpSetEnabled

func ZetTracerExpSetEnabled(
	hTracer ZetTracerExpHandle,
	enable ZeBool,
) (ZeResult, error)

ZetTracerExpSetEnabled Enables (or disables) the tracer / / @details / - @deprecated This function is not supported in L0 drivers and has been / replaced by the Loader Tracing Layer. See the Loader Tracing / documentation for more details. / - The application must **not** call this function from simultaneous / threads with the same tracer handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTracer`

func ZetTracerExpSetEpilogues

func ZetTracerExpSetEpilogues(
	hTracer ZetTracerExpHandle,
	pCoreCbs *ZetCoreCallbacks,
) (ZeResult, error)

ZetTracerExpSetEpilogues Sets the collection of callbacks to be executed **after** driver / execution. / / @details / - @deprecated This function is not supported in L0 drivers and has been / replaced by the Loader Tracing Layer. See the Loader Tracing / documentation for more details. / - The application only needs to set the function pointers it is / interested in receiving; all others should be 'nullptr' / - The application must ensure that no other threads are executing / functions for which the tracing functions are changing. / - The application must **not** call this function from simultaneous / threads with the same tracer handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTracer` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCoreCbs`

func ZetTracerExpSetPrologues

func ZetTracerExpSetPrologues(
	hTracer ZetTracerExpHandle,
	pCoreCbs *ZetCoreCallbacks,
) (ZeResult, error)

ZetTracerExpSetPrologues Sets the collection of callbacks to be executed **before** driver / execution. / / @details / - @deprecated This function is not supported in L0 drivers and has been / replaced by the Loader Tracing Layer. See the Loader Tracing / documentation for more details. / - The application only needs to set the function pointers it is / interested in receiving; all others should be 'nullptr' / - The application must ensure that no other threads are executing / functions for which the tracing functions are changing. / - The application must **not** call this function from simultaneous / threads with the same tracer handle. / / @returns / - ::ZE_RESULT_SUCCESS / - ::ZE_RESULT_ERROR_UNINITIALIZED / - ::ZE_RESULT_ERROR_DEVICE_LOST / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS / - ::ZE_RESULT_ERROR_NOT_AVAILABLE / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE / - ::ZE_RESULT_ERROR_UNKNOWN / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE / + `nullptr == hTracer` / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER / + `nullptr == pCoreCbs`

type ZeRtasAabbExp

type ZeRtasAabbExp struct {
	Lower ZeRtasFloat3Exp // Lower [in] lower bounds of AABB
	Upper ZeRtasFloat3Exp // Upper [in] upper bounds of AABB

}

ZeRtasAabbExp (ze_rtas_aabb_exp_t) A 3-dimensional axis-aligned bounding-box with lower and upper bounds / in each dimension

type ZeRtasAabbExt

type ZeRtasAabbExt struct {
	Lower ZeRtasFloat3Ext // Lower [in] lower bounds of AABB
	Upper ZeRtasFloat3Ext // Upper [in] upper bounds of AABB

}

ZeRtasAabbExt (ze_rtas_aabb_ext_t) A 3-dimensional axis-aligned bounding-box with lower and upper bounds / in each dimension

type ZeRtasBuilderBuildOpExpDesc

type ZeRtasBuilderBuildOpExpDesc struct {
	Stype         ZeStructureType                  // Stype [in] type of this structure
	Pnext         unsafe.Pointer                   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Rtasformat    ZeRtasFormatExp                  // Rtasformat [in] ray tracing acceleration structure format
	Buildquality  ZeRtasBuilderBuildQualityHintExp // Buildquality [in] acceleration structure build quality hint
	Buildflags    ZeRtasBuilderBuildOpExpFlags     // Buildflags [in] 0 or some combination of ::ze_rtas_builder_build_op_exp_flag_t flags
	Ppgeometries  **ZeRtasBuilderGeometryInfoExp   // Ppgeometries [in][optional][range(0, `numGeometries`)] NULL or a valid array of pointers to geometry infos
	Numgeometries uint32                           // Numgeometries [in] number of geometries in geometry infos array, can be zero when `ppGeometries` is NULL

}

ZeRtasBuilderBuildOpExpDesc (ze_rtas_builder_build_op_exp_desc_t)

type ZeRtasBuilderBuildOpExpFlags

type ZeRtasBuilderBuildOpExpFlags uint32

ZeRtasBuilderBuildOpExpFlags (ze_rtas_builder_build_op_exp_flags_t) Ray tracing acceleration structure builder build operation flags / / @details / - These flags allow the application to tune the acceleration structure / build operation. / - The acceleration structure builder implementation might choose to use / spatial splitting to split large or long primitives into smaller / pieces. This may result in any-hit shaders being invoked multiple / times for non-opaque primitives, unless / ::ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION is specified. / - Usage of any of these flags may reduce ray tracing performance.

const (
	ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_COMPACT                        ZeRtasBuilderBuildOpExpFlags = (1 << 0)   // ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_COMPACT build more compact acceleration structure
	ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION ZeRtasBuilderBuildOpExpFlags = (1 << 1)   // ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION guarantees single any-hit shader invocation per primitive
	ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_FORCE_UINT32                   ZeRtasBuilderBuildOpExpFlags = 0x7fffffff // ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_BUILD_OP_EXP_FLAG_* ENUMs

)

type ZeRtasBuilderBuildOpExtDesc

type ZeRtasBuilderBuildOpExtDesc struct {
	Stype         ZeStructureType                  // Stype [in] type of this structure
	Pnext         unsafe.Pointer                   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Rtasformat    ZeRtasFormatExt                  // Rtasformat [in] ray tracing acceleration structure format
	Buildquality  ZeRtasBuilderBuildQualityHintExt // Buildquality [in] acceleration structure build quality hint
	Buildflags    ZeRtasBuilderBuildOpExtFlags     // Buildflags [in] 0 or some combination of ::ze_rtas_builder_build_op_ext_flag_t flags
	Ppgeometries  **ZeRtasBuilderGeometryInfoExt   // Ppgeometries [in][optional][range(0, `numGeometries`)] NULL or a valid array of pointers to geometry infos
	Numgeometries uint32                           // Numgeometries [in] number of geometries in geometry infos array, can be zero when `ppGeometries` is NULL

}

ZeRtasBuilderBuildOpExtDesc (ze_rtas_builder_build_op_ext_desc_t)

type ZeRtasBuilderBuildOpExtFlags

type ZeRtasBuilderBuildOpExtFlags uint32

ZeRtasBuilderBuildOpExtFlags (ze_rtas_builder_build_op_ext_flags_t) Ray tracing acceleration structure builder build operation flags / / @details / - These flags allow the application to tune the acceleration structure / build operation. / - The acceleration structure builder implementation might choose to use / spatial splitting to split large or long primitives into smaller / pieces. This may result in any-hit shaders being invoked multiple / times for non-opaque primitives, unless / ::ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION is specified. / - Usage of any of these flags may reduce ray tracing performance.

const (
	ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_COMPACT                        ZeRtasBuilderBuildOpExtFlags = (1 << 0)   // ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_COMPACT build more compact acceleration structure
	ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION ZeRtasBuilderBuildOpExtFlags = (1 << 1)   // ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION guarantees single any-hit shader invocation per primitive
	ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_FORCE_UINT32                   ZeRtasBuilderBuildOpExtFlags = 0x7fffffff // ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_BUILD_OP_EXT_FLAG_* ENUMs

)

type ZeRtasBuilderBuildQualityHintExp

type ZeRtasBuilderBuildQualityHintExp uintptr

ZeRtasBuilderBuildQualityHintExp (ze_rtas_builder_build_quality_hint_exp_t) Ray tracing acceleration structure builder build quality hint / / @details / - Depending on use case different quality modes for acceleration / structure build are supported. / - A low-quality build builds an acceleration structure fast, but at the / cost of some reduction in ray tracing performance. This mode is / recommended for dynamic content, such as animated characters. / - A medium-quality build uses a compromise between build quality and ray / tracing performance. This mode should be used by default. / - Higher ray tracing performance can be achieved by using a high-quality / build, but acceleration structure build performance might be / significantly reduced.

const (
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_LOW          ZeRtasBuilderBuildQualityHintExp = 0          // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_LOW build low-quality acceleration structure (fast)
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_MEDIUM       ZeRtasBuilderBuildQualityHintExp = 1          // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_MEDIUM build medium-quality acceleration structure (slower)
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_HIGH         ZeRtasBuilderBuildQualityHintExp = 2          // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_HIGH build high-quality acceleration structure (slow)
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_FORCE_UINT32 ZeRtasBuilderBuildQualityHintExp = 0x7fffffff // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXP_* ENUMs

)

type ZeRtasBuilderBuildQualityHintExt

type ZeRtasBuilderBuildQualityHintExt uintptr

ZeRtasBuilderBuildQualityHintExt (ze_rtas_builder_build_quality_hint_ext_t) Ray tracing acceleration structure builder build quality hint / / @details / - Depending on use case different quality modes for acceleration / structure build are supported. / - A low-quality build builds an acceleration structure fast, but at the / cost of some reduction in ray tracing performance. This mode is / recommended for dynamic content, such as animated characters. / - A medium-quality build uses a compromise between build quality and ray / tracing performance. This mode should be used by default. / - Higher ray tracing performance can be achieved by using a high-quality / build, but acceleration structure build performance might be / significantly reduced.

const (
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_LOW          ZeRtasBuilderBuildQualityHintExt = 0          // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_LOW build low-quality acceleration structure (fast)
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_MEDIUM       ZeRtasBuilderBuildQualityHintExt = 1          // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_MEDIUM build medium-quality acceleration structure (slower)
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_HIGH         ZeRtasBuilderBuildQualityHintExt = 2          // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_HIGH build high-quality acceleration structure (slow)
	ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_FORCE_UINT32 ZeRtasBuilderBuildQualityHintExt = 0x7fffffff // ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_BUILD_QUALITY_HINT_EXT_* ENUMs

)

type ZeRtasBuilderExpDesc

type ZeRtasBuilderExpDesc struct {
	Stype          ZeStructureType         // Stype [in] type of this structure
	Pnext          unsafe.Pointer          // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Builderversion ZeRtasBuilderExpVersion // Builderversion [in] ray tracing acceleration structure builder version

}

ZeRtasBuilderExpDesc (ze_rtas_builder_exp_desc_t) Ray tracing acceleration structure builder descriptor

type ZeRtasBuilderExpFlags

type ZeRtasBuilderExpFlags uint32

ZeRtasBuilderExpFlags (ze_rtas_builder_exp_flags_t) Ray tracing acceleration structure builder flags

const (
	ZE_RTAS_BUILDER_EXP_FLAG_RESERVED     ZeRtasBuilderExpFlags = (1 << 0)   // ZE_RTAS_BUILDER_EXP_FLAG_RESERVED Reserved for future use
	ZE_RTAS_BUILDER_EXP_FLAG_FORCE_UINT32 ZeRtasBuilderExpFlags = 0x7fffffff // ZE_RTAS_BUILDER_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_EXP_FLAG_* ENUMs

)

type ZeRtasBuilderExpHandle

type ZeRtasBuilderExpHandle uintptr

ZeRtasBuilderExpHandle (ze_rtas_builder_exp_handle_t) Handle of ray tracing acceleration structure builder object

type ZeRtasBuilderExpProperties

type ZeRtasBuilderExpProperties struct {
	Stype                          ZeStructureType       // Stype [in] type of this structure
	Pnext                          unsafe.Pointer        // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags                          ZeRtasBuilderExpFlags // Flags [out] ray tracing acceleration structure builder flags
	Rtasbuffersizebytesexpected    uintptr               // Rtasbuffersizebytesexpected [out] expected size (in bytes) required for acceleration structure buffer    - When using an acceleration structure buffer of this size, the build is expected to succeed; however, it is possible that the build may fail with ::ZE_RESULT_EXP_RTAS_BUILD_RETRY
	Rtasbuffersizebytesmaxrequired uintptr               // Rtasbuffersizebytesmaxrequired [out] worst-case size (in bytes) required for acceleration structure buffer    - When using an acceleration structure buffer of this size, the build is guaranteed to not run out of memory.
	Scratchbuffersizebytes         uintptr               // Scratchbuffersizebytes [out] scratch buffer size (in bytes) required for acceleration structure build.

}

ZeRtasBuilderExpProperties (ze_rtas_builder_exp_properties_t) Ray tracing acceleration structure builder properties

type ZeRtasBuilderExpVersion

type ZeRtasBuilderExpVersion uintptr

ZeRtasBuilderExpVersion (ze_rtas_builder_exp_version_t) Ray Tracing Acceleration Structure Builder Extension Version(s)

const (
	ZE_RTAS_BUILDER_EXP_VERSION_1_0          ZeRtasBuilderExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RTAS_BUILDER_EXP_VERSION_1_0 version 1.0
	ZE_RTAS_BUILDER_EXP_VERSION_CURRENT      ZeRtasBuilderExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RTAS_BUILDER_EXP_VERSION_CURRENT latest known version
	ZE_RTAS_BUILDER_EXP_VERSION_FORCE_UINT32 ZeRtasBuilderExpVersion = 0x7fffffff                     // ZE_RTAS_BUILDER_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_EXP_VERSION_* ENUMs

)

type ZeRtasBuilderExtDesc

type ZeRtasBuilderExtDesc struct {
	Stype          ZeStructureType         // Stype [in] type of this structure
	Pnext          unsafe.Pointer          // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Builderversion ZeRtasBuilderExtVersion // Builderversion [in] ray tracing acceleration structure builder version

}

ZeRtasBuilderExtDesc (ze_rtas_builder_ext_desc_t) Ray tracing acceleration structure builder descriptor

type ZeRtasBuilderExtFlags

type ZeRtasBuilderExtFlags uint32

ZeRtasBuilderExtFlags (ze_rtas_builder_ext_flags_t) Ray tracing acceleration structure builder flags

const (
	ZE_RTAS_BUILDER_EXT_FLAG_RESERVED     ZeRtasBuilderExtFlags = (1 << 0)   // ZE_RTAS_BUILDER_EXT_FLAG_RESERVED Reserved for future use
	ZE_RTAS_BUILDER_EXT_FLAG_FORCE_UINT32 ZeRtasBuilderExtFlags = 0x7fffffff // ZE_RTAS_BUILDER_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_EXT_FLAG_* ENUMs

)

type ZeRtasBuilderExtHandle

type ZeRtasBuilderExtHandle uintptr

ZeRtasBuilderExtHandle (ze_rtas_builder_ext_handle_t) Handle of ray tracing acceleration structure builder object

type ZeRtasBuilderExtProperties

type ZeRtasBuilderExtProperties struct {
	Stype                          ZeStructureType       // Stype [in] type of this structure
	Pnext                          unsafe.Pointer        // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags                          ZeRtasBuilderExtFlags // Flags [out] ray tracing acceleration structure builder flags
	Rtasbuffersizebytesexpected    uintptr               // Rtasbuffersizebytesexpected [out] expected size (in bytes) required for acceleration structure buffer    - When using an acceleration structure buffer of this size, the build is expected to succeed; however, it is possible that the build may fail with ::ZE_RESULT_EXT_RTAS_BUILD_RETRY
	Rtasbuffersizebytesmaxrequired uintptr               // Rtasbuffersizebytesmaxrequired [out] worst-case size (in bytes) required for acceleration structure buffer    - When using an acceleration structure buffer of this size, the build is guaranteed to not run out of memory.
	Scratchbuffersizebytes         uintptr               // Scratchbuffersizebytes [out] scratch buffer size (in bytes) required for acceleration structure build.

}

ZeRtasBuilderExtProperties (ze_rtas_builder_ext_properties_t) Ray tracing acceleration structure builder properties

type ZeRtasBuilderExtVersion

type ZeRtasBuilderExtVersion uintptr

ZeRtasBuilderExtVersion (ze_rtas_builder_ext_version_t) Ray Tracing Acceleration Structure Builder Extension Version(s)

const (
	ZE_RTAS_BUILDER_EXT_VERSION_1_0          ZeRtasBuilderExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RTAS_BUILDER_EXT_VERSION_1_0 version 1.0
	ZE_RTAS_BUILDER_EXT_VERSION_CURRENT      ZeRtasBuilderExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_RTAS_BUILDER_EXT_VERSION_CURRENT latest known version
	ZE_RTAS_BUILDER_EXT_VERSION_FORCE_UINT32 ZeRtasBuilderExtVersion = 0x7fffffff                     // ZE_RTAS_BUILDER_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_EXT_VERSION_* ENUMs

)

type ZeRtasBuilderGeometryExpFlags

type ZeRtasBuilderGeometryExpFlags uint32

ZeRtasBuilderGeometryExpFlags (ze_rtas_builder_geometry_exp_flags_t) Ray tracing acceleration structure builder geometry flags

const (
	ZE_RTAS_BUILDER_GEOMETRY_EXP_FLAG_NON_OPAQUE   ZeRtasBuilderGeometryExpFlags = (1 << 0)   // ZE_RTAS_BUILDER_GEOMETRY_EXP_FLAG_NON_OPAQUE non-opaque geometries invoke an any-hit shader
	ZE_RTAS_BUILDER_GEOMETRY_EXP_FLAG_FORCE_UINT32 ZeRtasBuilderGeometryExpFlags = 0x7fffffff // ZE_RTAS_BUILDER_GEOMETRY_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_GEOMETRY_EXP_FLAG_* ENUMs

)

type ZeRtasBuilderGeometryExtFlags

type ZeRtasBuilderGeometryExtFlags uint32

ZeRtasBuilderGeometryExtFlags (ze_rtas_builder_geometry_ext_flags_t) Ray tracing acceleration structure builder geometry flags

const (
	ZE_RTAS_BUILDER_GEOMETRY_EXT_FLAG_NON_OPAQUE   ZeRtasBuilderGeometryExtFlags = (1 << 0)   // ZE_RTAS_BUILDER_GEOMETRY_EXT_FLAG_NON_OPAQUE non-opaque geometries invoke an any-hit shader
	ZE_RTAS_BUILDER_GEOMETRY_EXT_FLAG_FORCE_UINT32 ZeRtasBuilderGeometryExtFlags = 0x7fffffff // ZE_RTAS_BUILDER_GEOMETRY_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_GEOMETRY_EXT_FLAG_* ENUMs

)

type ZeRtasBuilderGeometryInfoExp

type ZeRtasBuilderGeometryInfoExp struct {
	Geometrytype ZeRtasBuilderPackedGeometryTypeExp // Geometrytype [in] geometry type

}

ZeRtasBuilderGeometryInfoExp (ze_rtas_builder_geometry_info_exp_t) Ray tracing acceleration structure builder geometry info

type ZeRtasBuilderGeometryInfoExt

type ZeRtasBuilderGeometryInfoExt struct {
	Geometrytype ZeRtasBuilderPackedGeometryTypeExt // Geometrytype [in] geometry type

}

ZeRtasBuilderGeometryInfoExt (ze_rtas_builder_geometry_info_ext_t) Ray tracing acceleration structure builder geometry info

type ZeRtasBuilderGeometryTypeExp

type ZeRtasBuilderGeometryTypeExp uintptr

ZeRtasBuilderGeometryTypeExp (ze_rtas_builder_geometry_type_exp_t) Ray tracing acceleration structure builder geometry type

const (
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_TRIANGLES    ZeRtasBuilderGeometryTypeExp = 0          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_TRIANGLES triangle mesh geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_QUADS        ZeRtasBuilderGeometryTypeExp = 1          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_QUADS quad mesh geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_PROCEDURAL   ZeRtasBuilderGeometryTypeExp = 2          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_PROCEDURAL procedural geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_INSTANCE     ZeRtasBuilderGeometryTypeExp = 3          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_INSTANCE instance geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_FORCE_UINT32 ZeRtasBuilderGeometryTypeExp = 0x7fffffff // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_* ENUMs

)

type ZeRtasBuilderGeometryTypeExt

type ZeRtasBuilderGeometryTypeExt uintptr

ZeRtasBuilderGeometryTypeExt (ze_rtas_builder_geometry_type_ext_t) Ray tracing acceleration structure builder geometry type

const (
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_TRIANGLES    ZeRtasBuilderGeometryTypeExt = 0          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_TRIANGLES triangle mesh geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_QUADS        ZeRtasBuilderGeometryTypeExt = 1          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_QUADS quad mesh geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_PROCEDURAL   ZeRtasBuilderGeometryTypeExt = 2          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_PROCEDURAL procedural geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_INSTANCE     ZeRtasBuilderGeometryTypeExt = 3          // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_INSTANCE instance geometry type
	ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_FORCE_UINT32 ZeRtasBuilderGeometryTypeExt = 0x7fffffff // ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_* ENUMs

)

type ZeRtasBuilderInputDataFormatExp

type ZeRtasBuilderInputDataFormatExp uintptr

ZeRtasBuilderInputDataFormatExp (ze_rtas_builder_input_data_format_exp_t) Ray tracing acceleration structure data buffer element format / / @details / - Specifies the format of data buffer elements. / - Data buffers may contain instancing transform matrices, triangle/quad / vertex indices, etc...

const (
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3                ZeRtasBuilderInputDataFormatExp = 0 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3 3-component float vector (see ::ze_rtas_float3_exp_t)
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3X4_COLUMN_MAJOR ZeRtasBuilderInputDataFormatExp = 1 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3X4_COLUMN_MAJOR 3x4 affine transformation in column-major format (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3X4_ALIGNED_COLUMN_MAJOR ZeRtasBuilderInputDataFormatExp = 2 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3X4_ALIGNED_COLUMN_MAJOR 3x4 affine transformation in column-major format (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3X4_ROW_MAJOR ZeRtasBuilderInputDataFormatExp = 3 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3X4_ROW_MAJOR 3x4 affine transformation in row-major format (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_AABB                    ZeRtasBuilderInputDataFormatExp = 4 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_AABB 3-dimensional axis-aligned bounding-box (see ::ze_rtas_aabb_exp_t)
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_TRIANGLE_INDICES_UINT32 ZeRtasBuilderInputDataFormatExp = 5 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_TRIANGLE_INDICES_UINT32 Unsigned 32-bit triangle indices (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_QUAD_INDICES_UINT32 ZeRtasBuilderInputDataFormatExp = 6          // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_QUAD_INDICES_UINT32 Unsigned 32-bit quad indices (see ::ze_rtas_quad_indices_uint32_exp_t)
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FORCE_UINT32        ZeRtasBuilderInputDataFormatExp = 0x7fffffff // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_* ENUMs

)

type ZeRtasBuilderInputDataFormatExt

type ZeRtasBuilderInputDataFormatExt uintptr

ZeRtasBuilderInputDataFormatExt (ze_rtas_builder_input_data_format_ext_t) Ray tracing acceleration structure data buffer element format / / @details / - Specifies the format of data buffer elements. / - Data buffers may contain instancing transform matrices, triangle/quad / vertex indices, etc...

const (
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3                ZeRtasBuilderInputDataFormatExt = 0 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3 3-component float vector (see ::ze_rtas_float3_ext_t)
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3X4_COLUMN_MAJOR ZeRtasBuilderInputDataFormatExt = 1 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3X4_COLUMN_MAJOR 3x4 affine transformation in column-major format (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3X4_ALIGNED_COLUMN_MAJOR ZeRtasBuilderInputDataFormatExt = 2 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3X4_ALIGNED_COLUMN_MAJOR 3x4 affine transformation in column-major format (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3X4_ROW_MAJOR ZeRtasBuilderInputDataFormatExt = 3 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3X4_ROW_MAJOR 3x4 affine transformation in row-major format (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_AABB                    ZeRtasBuilderInputDataFormatExt = 4 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_AABB 3-dimensional axis-aligned bounding-box (see ::ze_rtas_aabb_ext_t)
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_TRIANGLE_INDICES_UINT32 ZeRtasBuilderInputDataFormatExt = 5 // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_TRIANGLE_INDICES_UINT32 Unsigned 32-bit triangle indices (see

	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_QUAD_INDICES_UINT32 ZeRtasBuilderInputDataFormatExt = 6          // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_QUAD_INDICES_UINT32 Unsigned 32-bit quad indices (see ::ze_rtas_quad_indices_uint32_ext_t)
	ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FORCE_UINT32        ZeRtasBuilderInputDataFormatExt = 0x7fffffff // ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_* ENUMs

)

type ZeRtasBuilderInstanceExpFlags

type ZeRtasBuilderInstanceExpFlags uint32

ZeRtasBuilderInstanceExpFlags (ze_rtas_builder_instance_exp_flags_t) Ray tracing acceleration structure builder instance flags

const (
	ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_CULL_DISABLE           ZeRtasBuilderInstanceExpFlags = (1 << 0) // ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_CULL_DISABLE disables culling of front-facing and back-facing triangles
	ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE ZeRtasBuilderInstanceExpFlags = (1 << 1) // ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE reverses front and back face of triangles
	ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_FORCE_OPAQUE           ZeRtasBuilderInstanceExpFlags = (1 << 2) // ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_FORCE_OPAQUE forces instanced geometry to be opaque, unless ray flag forces it to

	ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_FORCE_NON_OPAQUE ZeRtasBuilderInstanceExpFlags = (1 << 3) // ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_TRIANGLE_FORCE_NON_OPAQUE forces instanced geometry to be non-opaque, unless ray flag forces it

	ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_FORCE_UINT32 ZeRtasBuilderInstanceExpFlags = 0x7fffffff // ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_INSTANCE_EXP_FLAG_* ENUMs

)

type ZeRtasBuilderInstanceExtFlags

type ZeRtasBuilderInstanceExtFlags uint32

ZeRtasBuilderInstanceExtFlags (ze_rtas_builder_instance_ext_flags_t) Ray tracing acceleration structure builder instance flags

const (
	ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_CULL_DISABLE           ZeRtasBuilderInstanceExtFlags = (1 << 0) // ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_CULL_DISABLE disables culling of front-facing and back-facing triangles
	ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE ZeRtasBuilderInstanceExtFlags = (1 << 1) // ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE reverses front and back face of triangles
	ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_FORCE_OPAQUE           ZeRtasBuilderInstanceExtFlags = (1 << 2) // ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_FORCE_OPAQUE forces instanced geometry to be opaque, unless ray flag forces it to

	ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_FORCE_NON_OPAQUE ZeRtasBuilderInstanceExtFlags = (1 << 3) // ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_TRIANGLE_FORCE_NON_OPAQUE forces instanced geometry to be non-opaque, unless ray flag forces it

	ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_FORCE_UINT32 ZeRtasBuilderInstanceExtFlags = 0x7fffffff // ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_BUILDER_INSTANCE_EXT_FLAG_* ENUMs

)

type ZeRtasBuilderInstanceGeometryInfoExp

type ZeRtasBuilderInstanceGeometryInfoExp struct {
	Geometrytype           ZeRtasBuilderPackedGeometryTypeExp    // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_INSTANCE
	Instanceflags          ZeRtasBuilderPackedInstanceExpFlags   // Instanceflags [in] 0 or some combination of ::ze_rtas_builder_geometry_exp_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask           uint8                                 // Geometrymask [in] 8-bit geometry mask for ray masking
	Transformformat        ZeRtasBuilderPackedInputDataFormatExp // Transformformat [in] format of the specified transformation
	Instanceuserid         uint32                                // Instanceuserid [in] user-specified identifier for the instance
	Ptransform             unsafe.Pointer                        // Ptransform [in] object-to-world instance transformation in specified format
	Pbounds                *ZeRtasAabbExp                        // Pbounds [in] object-space axis-aligned bounding-box of the instanced acceleration structure
	Paccelerationstructure unsafe.Pointer                        // Paccelerationstructure [in] pointer to acceleration structure to instantiate

}

ZeRtasBuilderInstanceGeometryInfoExp (ze_rtas_builder_instance_geometry_info_exp_t) Ray tracing acceleration structure builder instance geometry info

type ZeRtasBuilderInstanceGeometryInfoExt

type ZeRtasBuilderInstanceGeometryInfoExt struct {
	Geometrytype           ZeRtasBuilderPackedGeometryTypeExt    // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_INSTANCE
	Instanceflags          ZeRtasBuilderPackedInstanceExtFlags   // Instanceflags [in] 0 or some combination of ::ze_rtas_builder_geometry_ext_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask           uint8                                 // Geometrymask [in] 8-bit geometry mask for ray masking
	Transformformat        ZeRtasBuilderPackedInputDataFormatExt // Transformformat [in] format of the specified transformation
	Instanceuserid         uint32                                // Instanceuserid [in] user-specified identifier for the instance
	Ptransform             unsafe.Pointer                        // Ptransform [in] object-to-world instance transformation in specified format
	Pbounds                *ZeRtasAabbExt                        // Pbounds [in] object-space axis-aligned bounding-box of the instanced acceleration structure
	Paccelerationstructure unsafe.Pointer                        // Paccelerationstructure [in] device pointer to acceleration structure to instantiate

}

ZeRtasBuilderInstanceGeometryInfoExt (ze_rtas_builder_instance_geometry_info_ext_t) Ray tracing acceleration structure builder instance geometry info

type ZeRtasBuilderPackedGeometryExpFlags

type ZeRtasBuilderPackedGeometryExpFlags uint8

ZeRtasBuilderPackedGeometryExpFlags (ze_rtas_builder_packed_geometry_exp_flags_t) Packed ray tracing acceleration structure builder geometry flags (see / ::ze_rtas_builder_geometry_exp_flags_t)

type ZeRtasBuilderPackedGeometryExtFlags

type ZeRtasBuilderPackedGeometryExtFlags uint8

ZeRtasBuilderPackedGeometryExtFlags (ze_rtas_builder_packed_geometry_ext_flags_t) Packed ray tracing acceleration structure builder geometry flags (see / ::ze_rtas_builder_geometry_ext_flags_t)

type ZeRtasBuilderPackedGeometryTypeExp

type ZeRtasBuilderPackedGeometryTypeExp uint8

ZeRtasBuilderPackedGeometryTypeExp (ze_rtas_builder_packed_geometry_type_exp_t) Packed ray tracing acceleration structure builder geometry type (see / ::ze_rtas_builder_geometry_type_exp_t)

type ZeRtasBuilderPackedGeometryTypeExt

type ZeRtasBuilderPackedGeometryTypeExt uint8

ZeRtasBuilderPackedGeometryTypeExt (ze_rtas_builder_packed_geometry_type_ext_t) Packed ray tracing acceleration structure builder geometry type (see / ::ze_rtas_builder_geometry_type_ext_t)

type ZeRtasBuilderPackedInputDataFormatExp

type ZeRtasBuilderPackedInputDataFormatExp uint8

ZeRtasBuilderPackedInputDataFormatExp (ze_rtas_builder_packed_input_data_format_exp_t) Packed ray tracing acceleration structure data buffer element format / (see ::ze_rtas_builder_input_data_format_exp_t)

type ZeRtasBuilderPackedInputDataFormatExt

type ZeRtasBuilderPackedInputDataFormatExt uint8

ZeRtasBuilderPackedInputDataFormatExt (ze_rtas_builder_packed_input_data_format_ext_t) Packed ray tracing acceleration structure data buffer element format / (see ::ze_rtas_builder_input_data_format_ext_t)

type ZeRtasBuilderPackedInstanceExpFlags

type ZeRtasBuilderPackedInstanceExpFlags uint8

ZeRtasBuilderPackedInstanceExpFlags (ze_rtas_builder_packed_instance_exp_flags_t) Packed ray tracing acceleration structure builder instance flags (see / ::ze_rtas_builder_instance_exp_flags_t)

type ZeRtasBuilderPackedInstanceExtFlags

type ZeRtasBuilderPackedInstanceExtFlags uint8

ZeRtasBuilderPackedInstanceExtFlags (ze_rtas_builder_packed_instance_ext_flags_t) Packed ray tracing acceleration structure builder instance flags (see / ::ze_rtas_builder_instance_ext_flags_t)

type ZeRtasBuilderProceduralGeometryInfoExp

type ZeRtasBuilderProceduralGeometryInfoExp struct {
	Geometrytype   ZeRtasBuilderPackedGeometryTypeExp  // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_PROCEDURAL
	Geometryflags  ZeRtasBuilderPackedGeometryExpFlags // Geometryflags [in] 0 or some combination of ::ze_rtas_builder_geometry_exp_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask   uint8                               // Geometrymask [in] 8-bit geometry mask for ray masking
	Reserved       uint8                               // Reserved [in] reserved for future use
	Primcount      uint32                              // Primcount [in] number of primitives in geometry
	Pfngetboundscb ZeRtasGeometryAabbsCbExp            // Pfngetboundscb [in] pointer to callback function to get the axis-aligned bounding-box for a range of primitives
	Pgeomuserptr   unsafe.Pointer                      // Pgeomuserptr [in] user data pointer passed to callback

}

ZeRtasBuilderProceduralGeometryInfoExp (ze_rtas_builder_procedural_geometry_info_exp_t) Ray tracing acceleration structure builder procedural primitives / geometry info / / @details / - A host-side bounds callback function is invoked by the acceleration / structure builder to query the bounds of procedural primitives on / demand. The callback is passed some `pGeomUserPtr` that can point to / an application-side representation of the procedural primitives. / Further, a second `pBuildUserPtr`, which is set by a parameter to / ::zeRTASBuilderBuildExp, is passed to the callback. This allows the / build to change the bounds of the procedural geometry, for example, to / build a BVH only over a short time range to implement multi-segment / motion blur.

type ZeRtasBuilderProceduralGeometryInfoExt

type ZeRtasBuilderProceduralGeometryInfoExt struct {
	Geometrytype   ZeRtasBuilderPackedGeometryTypeExt  // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_PROCEDURAL
	Geometryflags  ZeRtasBuilderPackedGeometryExtFlags // Geometryflags [in] 0 or some combination of ::ze_rtas_builder_geometry_ext_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask   uint8                               // Geometrymask [in] 8-bit geometry mask for ray masking
	Reserved       uint8                               // Reserved [in] reserved for future use
	Primcount      uint32                              // Primcount [in] number of primitives in geometry
	Pfngetboundscb ZeRtasGeometryAabbsCbExt            // Pfngetboundscb [in] pointer to callback function to get the axis-aligned bounding-box for a range of primitives
	Pgeomuserptr   unsafe.Pointer                      // Pgeomuserptr [in] user data pointer passed to callback

}

ZeRtasBuilderProceduralGeometryInfoExt (ze_rtas_builder_procedural_geometry_info_ext_t) Ray tracing acceleration structure builder procedural primitives / geometry info / / @details / - A host-side bounds callback function is invoked by the acceleration / structure builder to query the bounds of procedural primitives on / demand. The callback is passed some `pGeomUserPtr` that can point to / an application-side representation of the procedural primitives. / Further, a second `pBuildUserPtr`, which is set by a parameter to / ::zeRTASBuilderBuildExt, is passed to the callback. This allows the / build to change the bounds of the procedural geometry, for example, to / build a BVH only over a short time range to implement multi-segment / motion blur.

type ZeRtasBuilderQuadsGeometryInfoExp

type ZeRtasBuilderQuadsGeometryInfoExp struct {
	Geometrytype  ZeRtasBuilderPackedGeometryTypeExp    // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_QUADS
	Geometryflags ZeRtasBuilderPackedGeometryExpFlags   // Geometryflags [in] 0 or some combination of ::ze_rtas_builder_geometry_exp_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask  uint8                                 // Geometrymask [in] 8-bit geometry mask for ray masking
	Quadformat    ZeRtasBuilderPackedInputDataFormatExp // Quadformat [in] format of quad buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_QUAD_INDICES_UINT32
	Vertexformat  ZeRtasBuilderPackedInputDataFormatExp // Vertexformat [in] format of vertex buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3
	Quadcount     uint32                                // Quadcount [in] number of quads in quad buffer
	Vertexcount   uint32                                // Vertexcount [in] number of vertices in vertex buffer
	Quadstride    uint32                                // Quadstride [in] stride (in bytes) of quads in quad buffer
	Vertexstride  uint32                                // Vertexstride [in] stride (in bytes) of vertices in vertex buffer
	Pquadbuffer   unsafe.Pointer                        // Pquadbuffer [in] pointer to array of quad indices in specified format
	Pvertexbuffer unsafe.Pointer                        // Pvertexbuffer [in] pointer to array of quad vertices in specified format

}

ZeRtasBuilderQuadsGeometryInfoExp (ze_rtas_builder_quads_geometry_info_exp_t) Ray tracing acceleration structure builder quad mesh geometry info / / @details / - A quad is a triangle pair represented using 4 vertex indices v0, v1, / v2, v3. / The first triangle is made out of indices v0, v1, v3 and the second triangle / from indices v2, v3, v1. The piecewise linear barycentric u/v parametrization / of the quad is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, / - (u=0, v=1) at v3, and / - (u=1, v=1) at v2 / This is achieved by correcting the u'/v' coordinates of the second / triangle by / *u = 1-u'* and *v = 1-v'*, yielding a piecewise linear parametrization.

type ZeRtasBuilderQuadsGeometryInfoExt

type ZeRtasBuilderQuadsGeometryInfoExt struct {
	Geometrytype  ZeRtasBuilderPackedGeometryTypeExt    // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_QUADS
	Geometryflags ZeRtasBuilderPackedGeometryExtFlags   // Geometryflags [in] 0 or some combination of ::ze_rtas_builder_geometry_ext_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask  uint8                                 // Geometrymask [in] 8-bit geometry mask for ray masking
	Quadformat    ZeRtasBuilderPackedInputDataFormatExt // Quadformat [in] format of quad buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_QUAD_INDICES_UINT32
	Vertexformat  ZeRtasBuilderPackedInputDataFormatExt // Vertexformat [in] format of vertex buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3
	Quadcount     uint32                                // Quadcount [in] number of quads in quad buffer
	Vertexcount   uint32                                // Vertexcount [in] number of vertices in vertex buffer
	Quadstride    uint32                                // Quadstride [in] stride (in bytes) of quads in quad buffer
	Vertexstride  uint32                                // Vertexstride [in] stride (in bytes) of vertices in vertex buffer
	Pquadbuffer   unsafe.Pointer                        // Pquadbuffer [in] pointer to array of quad indices in specified format
	Pvertexbuffer unsafe.Pointer                        // Pvertexbuffer [in] pointer to array of quad vertices in specified format

}

ZeRtasBuilderQuadsGeometryInfoExt (ze_rtas_builder_quads_geometry_info_ext_t) Ray tracing acceleration structure builder quad mesh geometry info / / @details / - A quad is a triangle pair represented using 4 vertex indices v0, v1, / v2, v3. / The first triangle is made out of indices v0, v1, v3 and the second triangle / from indices v2, v3, v1. The piecewise linear barycentric u/v parametrization / of the quad is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, / - (u=0, v=1) at v3, and / - (u=1, v=1) at v2 / This is achieved by correcting the u'/v' coordinates of the second / triangle by / *u = 1-u'* and *v = 1-v'*, yielding a piecewise linear parametrization.

type ZeRtasBuilderTrianglesGeometryInfoExp

type ZeRtasBuilderTrianglesGeometryInfoExp struct {
	Geometrytype    ZeRtasBuilderPackedGeometryTypeExp    // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXP_TRIANGLES
	Geometryflags   ZeRtasBuilderPackedGeometryExpFlags   // Geometryflags [in] 0 or some combination of ::ze_rtas_builder_geometry_exp_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask    uint8                                 // Geometrymask [in] 8-bit geometry mask for ray masking
	Triangleformat  ZeRtasBuilderPackedInputDataFormatExp // Triangleformat [in] format of triangle buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_TRIANGLE_INDICES_UINT32
	Vertexformat    ZeRtasBuilderPackedInputDataFormatExp // Vertexformat [in] format of vertex buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXP_FLOAT3
	Trianglecount   uint32                                // Trianglecount [in] number of triangles in triangle buffer
	Vertexcount     uint32                                // Vertexcount [in] number of vertices in vertex buffer
	Trianglestride  uint32                                // Trianglestride [in] stride (in bytes) of triangles in triangle buffer
	Vertexstride    uint32                                // Vertexstride [in] stride (in bytes) of vertices in vertex buffer
	Ptrianglebuffer unsafe.Pointer                        // Ptrianglebuffer [in] pointer to array of triangle indices in specified format
	Pvertexbuffer   unsafe.Pointer                        // Pvertexbuffer [in] pointer to array of triangle vertices in specified format

}

ZeRtasBuilderTrianglesGeometryInfoExp (ze_rtas_builder_triangles_geometry_info_exp_t) Ray tracing acceleration structure builder triangle mesh geometry info / / @details / - The linear barycentric u/v parametrization of the triangle is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, and / - (u=0, v=1) at v2

type ZeRtasBuilderTrianglesGeometryInfoExt

type ZeRtasBuilderTrianglesGeometryInfoExt struct {
	Geometrytype    ZeRtasBuilderPackedGeometryTypeExt    // Geometrytype [in] geometry type, must be ::ZE_RTAS_BUILDER_GEOMETRY_TYPE_EXT_TRIANGLES
	Geometryflags   ZeRtasBuilderPackedGeometryExtFlags   // Geometryflags [in] 0 or some combination of ::ze_rtas_builder_geometry_ext_flag_t bits representing the geometry flags for all primitives of this geometry
	Geometrymask    uint8                                 // Geometrymask [in] 8-bit geometry mask for ray masking
	Triangleformat  ZeRtasBuilderPackedInputDataFormatExt // Triangleformat [in] format of triangle buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_TRIANGLE_INDICES_UINT32
	Vertexformat    ZeRtasBuilderPackedInputDataFormatExt // Vertexformat [in] format of vertex buffer data, must be ::ZE_RTAS_BUILDER_INPUT_DATA_FORMAT_EXT_FLOAT3
	Trianglecount   uint32                                // Trianglecount [in] number of triangles in triangle buffer
	Vertexcount     uint32                                // Vertexcount [in] number of vertices in vertex buffer
	Trianglestride  uint32                                // Trianglestride [in] stride (in bytes) of triangles in triangle buffer
	Vertexstride    uint32                                // Vertexstride [in] stride (in bytes) of vertices in vertex buffer
	Ptrianglebuffer unsafe.Pointer                        // Ptrianglebuffer [in] pointer to array of triangle indices in specified format
	Pvertexbuffer   unsafe.Pointer                        // Pvertexbuffer [in] pointer to array of triangle vertices in specified format

}

ZeRtasBuilderTrianglesGeometryInfoExt (ze_rtas_builder_triangles_geometry_info_ext_t) Ray tracing acceleration structure builder triangle mesh geometry info / / @details / - The linear barycentric u/v parametrization of the triangle is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, and / - (u=0, v=1) at v2

type ZeRtasDeviceExpFlags

type ZeRtasDeviceExpFlags uint32

ZeRtasDeviceExpFlags (ze_rtas_device_exp_flags_t) Ray tracing acceleration structure device flags

const (
	ZE_RTAS_DEVICE_EXP_FLAG_RESERVED     ZeRtasDeviceExpFlags = (1 << 0)   // ZE_RTAS_DEVICE_EXP_FLAG_RESERVED reserved for future use
	ZE_RTAS_DEVICE_EXP_FLAG_FORCE_UINT32 ZeRtasDeviceExpFlags = 0x7fffffff // ZE_RTAS_DEVICE_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_DEVICE_EXP_FLAG_* ENUMs

)

type ZeRtasDeviceExpProperties

type ZeRtasDeviceExpProperties struct {
	Stype               ZeStructureType      // Stype [in] type of this structure
	Pnext               unsafe.Pointer       // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags               ZeRtasDeviceExpFlags // Flags [out] ray tracing acceleration structure device flags
	Rtasformat          ZeRtasFormatExp      // Rtasformat [out] ray tracing acceleration structure format
	Rtasbufferalignment uint32               // Rtasbufferalignment [out] required alignment of acceleration structure buffer

}

ZeRtasDeviceExpProperties (ze_rtas_device_exp_properties_t) Ray tracing acceleration structure device properties / / @details / - This structure may be passed to ::zeDeviceGetProperties, via `pNext` / member of ::ze_device_properties_t. / - The implementation shall populate `format` with a value other than / ::ZE_RTAS_FORMAT_EXP_INVALID when the device supports ray tracing.

type ZeRtasDeviceExtFlags

type ZeRtasDeviceExtFlags uint32

ZeRtasDeviceExtFlags (ze_rtas_device_ext_flags_t) Ray tracing acceleration structure device flags

const (
	ZE_RTAS_DEVICE_EXT_FLAG_RESERVED     ZeRtasDeviceExtFlags = (1 << 0)   // ZE_RTAS_DEVICE_EXT_FLAG_RESERVED reserved for future use
	ZE_RTAS_DEVICE_EXT_FLAG_FORCE_UINT32 ZeRtasDeviceExtFlags = 0x7fffffff // ZE_RTAS_DEVICE_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_DEVICE_EXT_FLAG_* ENUMs

)

type ZeRtasDeviceExtProperties

type ZeRtasDeviceExtProperties struct {
	Stype               ZeStructureType      // Stype [in] type of this structure
	Pnext               unsafe.Pointer       // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags               ZeRtasDeviceExtFlags // Flags [out] ray tracing acceleration structure device flags
	Rtasformat          ZeRtasFormatExt      // Rtasformat [out] ray tracing acceleration structure format
	Rtasbufferalignment uint32               // Rtasbufferalignment [out] required alignment of acceleration structure buffer

}

ZeRtasDeviceExtProperties (ze_rtas_device_ext_properties_t) Ray tracing acceleration structure device properties / / @details / - This structure may be passed to ::zeDeviceGetProperties, via `pNext` / member of ::ze_device_properties_t. / - The implementation shall populate `format` with a value other than / ::ZE_RTAS_FORMAT_EXT_INVALID when the device supports ray tracing.

type ZeRtasFloat3Exp

type ZeRtasFloat3Exp struct {
	X float32 // X [in] x-coordinate of float3 vector
	Y float32 // Y [in] y-coordinate of float3 vector
	Z float32 // Z [in] z-coordinate of float3 vector

}

ZeRtasFloat3Exp (ze_rtas_float3_exp_t) A 3-component vector type

type ZeRtasFloat3Ext

type ZeRtasFloat3Ext struct {
	X float32 // X [in] x-coordinate of float3 vector
	Y float32 // Y [in] y-coordinate of float3 vector
	Z float32 // Z [in] z-coordinate of float3 vector

}

ZeRtasFloat3Ext (ze_rtas_float3_ext_t) A 3-component vector type

type ZeRtasFormatExp

type ZeRtasFormatExp uintptr

ZeRtasFormatExp (ze_rtas_format_exp_t) Ray tracing acceleration structure format / / @details / - This is an opaque ray tracing acceleration structure format / identifier.

const (
	ZE_RTAS_FORMAT_EXP_INVALID      ZeRtasFormatExp = 0          // ZE_RTAS_FORMAT_EXP_INVALID Invalid acceleration structure format
	ZE_RTAS_FORMAT_EXP_MAX          ZeRtasFormatExp = 0x7ffffffe // ZE_RTAS_FORMAT_EXP_MAX Maximum acceleration structure format code
	ZE_RTAS_FORMAT_EXP_FORCE_UINT32 ZeRtasFormatExp = 0x7fffffff // ZE_RTAS_FORMAT_EXP_FORCE_UINT32 Value marking end of ZE_RTAS_FORMAT_EXP_* ENUMs

)

type ZeRtasFormatExt

type ZeRtasFormatExt uintptr

ZeRtasFormatExt (ze_rtas_format_ext_t) Ray tracing acceleration structure format / / @details / - This is an opaque ray tracing acceleration structure format / identifier.

const (
	ZE_RTAS_FORMAT_EXT_INVALID      ZeRtasFormatExt = 0x0        // ZE_RTAS_FORMAT_EXT_INVALID Invalid acceleration structure format code
	ZE_RTAS_FORMAT_EXT_MAX          ZeRtasFormatExt = 0x7ffffffe // ZE_RTAS_FORMAT_EXT_MAX Maximum acceleration structure format code
	ZE_RTAS_FORMAT_EXT_FORCE_UINT32 ZeRtasFormatExt = 0x7fffffff // ZE_RTAS_FORMAT_EXT_FORCE_UINT32 Value marking end of ZE_RTAS_FORMAT_EXT_* ENUMs

)

type ZeRtasGeometryAabbsCbExp

type ZeRtasGeometryAabbsCbExp uintptr

ZeRtasGeometryAabbsCbExp (ze_rtas_geometry_aabbs_cb_exp_t) Callback function pointer type to return AABBs for a range of / procedural primitives gozel warn: please use C function pointer loaded from C library!

type ZeRtasGeometryAabbsCbExt

type ZeRtasGeometryAabbsCbExt uintptr

ZeRtasGeometryAabbsCbExt (ze_rtas_geometry_aabbs_cb_ext_t) Callback function pointer type to return AABBs for a range of / procedural primitives gozel warn: please use C function pointer loaded from C library!

type ZeRtasGeometryAabbsExpCbParams

type ZeRtasGeometryAabbsExpCbParams struct {
	Stype         ZeStructureType // Stype [in] type of this structure
	Pnext         unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Primid        uint32          // Primid [in] first primitive to return bounds for
	Primidcount   uint32          // Primidcount [in] number of primitives to return bounds for
	Pgeomuserptr  unsafe.Pointer  // Pgeomuserptr [in] pointer provided through geometry descriptor
	Pbuilduserptr unsafe.Pointer  // Pbuilduserptr [in] pointer provided through ::zeRTASBuilderBuildExp function
	Pboundsout    *ZeRtasAabbExp  // Pboundsout [out] destination buffer to write AABB bounds to

}

ZeRtasGeometryAabbsExpCbParams (ze_rtas_geometry_aabbs_exp_cb_params_t) AABB callback function parameters

type ZeRtasGeometryAabbsExtCbParams

type ZeRtasGeometryAabbsExtCbParams struct {
	Stype         ZeStructureType // Stype [in] type of this structure
	Pnext         unsafe.Pointer  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Primid        uint32          // Primid [in] first primitive to return bounds for
	Primidcount   uint32          // Primidcount [in] number of primitives to return bounds for
	Pgeomuserptr  unsafe.Pointer  // Pgeomuserptr [in] pointer provided through geometry descriptor
	Pbuilduserptr unsafe.Pointer  // Pbuilduserptr [in] pointer provided through ::zeRTASBuilderBuildExt function
	Pboundsout    *ZeRtasAabbExt  // Pboundsout [out] destination buffer to write AABB bounds to

}

ZeRtasGeometryAabbsExtCbParams (ze_rtas_geometry_aabbs_ext_cb_params_t) AABB callback function parameters

type ZeRtasParallelOperationExpFlags

type ZeRtasParallelOperationExpFlags uint32

ZeRtasParallelOperationExpFlags (ze_rtas_parallel_operation_exp_flags_t) Ray tracing acceleration structure builder parallel operation flags

const (
	ZE_RTAS_PARALLEL_OPERATION_EXP_FLAG_RESERVED     ZeRtasParallelOperationExpFlags = (1 << 0)   // ZE_RTAS_PARALLEL_OPERATION_EXP_FLAG_RESERVED Reserved for future use
	ZE_RTAS_PARALLEL_OPERATION_EXP_FLAG_FORCE_UINT32 ZeRtasParallelOperationExpFlags = 0x7fffffff // ZE_RTAS_PARALLEL_OPERATION_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_PARALLEL_OPERATION_EXP_FLAG_* ENUMs

)

type ZeRtasParallelOperationExpHandle

type ZeRtasParallelOperationExpHandle uintptr

ZeRtasParallelOperationExpHandle (ze_rtas_parallel_operation_exp_handle_t) Handle of ray tracing acceleration structure builder parallel / operation object

type ZeRtasParallelOperationExpProperties

type ZeRtasParallelOperationExpProperties struct {
	Stype          ZeStructureType                 // Stype [in] type of this structure
	Pnext          unsafe.Pointer                  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags          ZeRtasParallelOperationExpFlags // Flags [out] ray tracing acceleration structure builder parallel operation flags
	Maxconcurrency uint32                          // Maxconcurrency [out] maximum number of threads that may join the parallel operation

}

ZeRtasParallelOperationExpProperties (ze_rtas_parallel_operation_exp_properties_t) Ray tracing acceleration structure builder parallel operation / properties

type ZeRtasParallelOperationExtFlags

type ZeRtasParallelOperationExtFlags uint32

ZeRtasParallelOperationExtFlags (ze_rtas_parallel_operation_ext_flags_t) Ray tracing acceleration structure builder parallel operation flags

const (
	ZE_RTAS_PARALLEL_OPERATION_EXT_FLAG_RESERVED     ZeRtasParallelOperationExtFlags = (1 << 0)   // ZE_RTAS_PARALLEL_OPERATION_EXT_FLAG_RESERVED Reserved for future use
	ZE_RTAS_PARALLEL_OPERATION_EXT_FLAG_FORCE_UINT32 ZeRtasParallelOperationExtFlags = 0x7fffffff // ZE_RTAS_PARALLEL_OPERATION_EXT_FLAG_FORCE_UINT32 Value marking end of ZE_RTAS_PARALLEL_OPERATION_EXT_FLAG_* ENUMs

)

type ZeRtasParallelOperationExtHandle

type ZeRtasParallelOperationExtHandle uintptr

ZeRtasParallelOperationExtHandle (ze_rtas_parallel_operation_ext_handle_t) Handle of ray tracing acceleration structure builder parallel / operation object

type ZeRtasParallelOperationExtProperties

type ZeRtasParallelOperationExtProperties struct {
	Stype          ZeStructureType                 // Stype [in] type of this structure
	Pnext          unsafe.Pointer                  // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags          ZeRtasParallelOperationExtFlags // Flags [out] ray tracing acceleration structure builder parallel operation flags
	Maxconcurrency uint32                          // Maxconcurrency [out] maximum number of threads that may join the parallel operation

}

ZeRtasParallelOperationExtProperties (ze_rtas_parallel_operation_ext_properties_t) Ray tracing acceleration structure builder parallel operation / properties

type ZeRtasQuadIndicesUint32Exp

type ZeRtasQuadIndicesUint32Exp struct {
	V0 uint32 // V0 [in] first index pointing to the first quad vertex in vertex array
	V1 uint32 // V1 [in] second index pointing to the second quad vertex in vertex array
	V2 uint32 // V2 [in] third index pointing to the third quad vertex in vertex array
	V3 uint32 // V3 [in] fourth index pointing to the fourth quad vertex in vertex array

}

ZeRtasQuadIndicesUint32Exp (ze_rtas_quad_indices_uint32_exp_t) Quad represented using 4 vertex indices / / @details / - Represents a quad composed of 4 indices that index into a vertex array / that needs to be provided together with the index array. / - A quad is a triangle pair represented using 4 vertex indices v0, v1, / v2, v3. / The first triangle is made out of indices v0, v1, v3 and the second triangle / from indices v2, v3, v1. The piecewise linear barycentric u/v parametrization / of the quad is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, / - (u=0, v=1) at v3, and / - (u=1, v=1) at v2 / This is achieved by correcting the u'/v' coordinates of the second / triangle by / *u = 1-u'* and *v = 1-v'*, yielding a piecewise linear parametrization.

type ZeRtasQuadIndicesUint32Ext

type ZeRtasQuadIndicesUint32Ext struct {
	V0 uint32 // V0 [in] first index pointing to the first quad vertex in vertex array
	V1 uint32 // V1 [in] second index pointing to the second quad vertex in vertex array
	V2 uint32 // V2 [in] third index pointing to the third quad vertex in vertex array
	V3 uint32 // V3 [in] fourth index pointing to the fourth quad vertex in vertex array

}

ZeRtasQuadIndicesUint32Ext (ze_rtas_quad_indices_uint32_ext_t) Quad represented using 4 vertex indices / / @details / - Represents a quad composed of 4 indices that index into a vertex array / that needs to be provided together with the index array. / - A quad is a triangle pair represented using 4 vertex indices v0, v1, / v2, v3. / The first triangle is made out of indices v0, v1, v3 and the second triangle / from indices v2, v3, v1. The piecewise linear barycentric u/v parametrization / of the quad is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, / - (u=0, v=1) at v3, and / - (u=1, v=1) at v2 / This is achieved by correcting the u'/v' coordinates of the second / triangle by / *u = 1-u'* and *v = 1-v'*, yielding a piecewise linear parametrization.

type ZeRtasTransformFloat3x4AlignedColumnMajorExp

type ZeRtasTransformFloat3x4AlignedColumnMajorExp struct {
	VxX  float32 // VxX [in] element 0 of column 0 of 3x4 matrix
	VxY  float32 // VxY [in] element 1 of column 0 of 3x4 matrix
	VxZ  float32 // VxZ [in] element 2 of column 0 of 3x4 matrix
	Pad0 float32 // Pad0 [in] ignored padding
	VyX  float32 // VyX [in] element 0 of column 1 of 3x4 matrix
	VyY  float32 // VyY [in] element 1 of column 1 of 3x4 matrix
	VyZ  float32 // VyZ [in] element 2 of column 1 of 3x4 matrix
	Pad1 float32 // Pad1 [in] ignored padding
	VzX  float32 // VzX [in] element 0 of column 2 of 3x4 matrix
	VzY  float32 // VzY [in] element 1 of column 2 of 3x4 matrix
	VzZ  float32 // VzZ [in] element 2 of column 2 of 3x4 matrix
	Pad2 float32 // Pad2 [in] ignored padding
	PX   float32 // PX [in] element 0 of column 3 of 3x4 matrix
	PY   float32 // PY [in] element 1 of column 3 of 3x4 matrix
	PZ   float32 // PZ [in] element 2 of column 3 of 3x4 matrix
	Pad3 float32 // Pad3 [in] ignored padding

}

ZeRtasTransformFloat3x4AlignedColumnMajorExp (ze_rtas_transform_float3x4_aligned_column_major_exp_t) 3x4 affine transformation in column-major layout with aligned column / vectors / / @details / - A 3x4 affine transformation in column major layout, consisting of vectors / - vx=(vx_x, vx_y, vx_z), / - vy=(vy_x, vy_y, vy_z), / - vz=(vz_x, vz_y, vz_z), and / - p=(p_x, p_y, p_z) / - The transformation transforms a point (x, y, z) to: `x*vx + y*vy + / z*vz + p`. / - The column vectors are aligned to 16-bytes and pad members are / ignored.

type ZeRtasTransformFloat3x4AlignedColumnMajorExt

type ZeRtasTransformFloat3x4AlignedColumnMajorExt struct {
	VxX  float32 // VxX [in] element 0 of column 0 of 3x4 matrix
	VxY  float32 // VxY [in] element 1 of column 0 of 3x4 matrix
	VxZ  float32 // VxZ [in] element 2 of column 0 of 3x4 matrix
	Pad0 float32 // Pad0 [in] ignored padding
	VyX  float32 // VyX [in] element 0 of column 1 of 3x4 matrix
	VyY  float32 // VyY [in] element 1 of column 1 of 3x4 matrix
	VyZ  float32 // VyZ [in] element 2 of column 1 of 3x4 matrix
	Pad1 float32 // Pad1 [in] ignored padding
	VzX  float32 // VzX [in] element 0 of column 2 of 3x4 matrix
	VzY  float32 // VzY [in] element 1 of column 2 of 3x4 matrix
	VzZ  float32 // VzZ [in] element 2 of column 2 of 3x4 matrix
	Pad2 float32 // Pad2 [in] ignored padding
	PX   float32 // PX [in] element 0 of column 3 of 3x4 matrix
	PY   float32 // PY [in] element 1 of column 3 of 3x4 matrix
	PZ   float32 // PZ [in] element 2 of column 3 of 3x4 matrix
	Pad3 float32 // Pad3 [in] ignored padding

}

ZeRtasTransformFloat3x4AlignedColumnMajorExt (ze_rtas_transform_float3x4_aligned_column_major_ext_t) 3x4 affine transformation in column-major layout with aligned column / vectors / / @details / - A 3x4 affine transformation in column major layout, consisting of vectors / - vx=(vx_x, vx_y, vx_z), / - vy=(vy_x, vy_y, vy_z), / - vz=(vz_x, vz_y, vz_z), and / - p=(p_x, p_y, p_z) / - The transformation transforms a point (x, y, z) to: `x*vx + y*vy + / z*vz + p`. / - The column vectors are aligned to 16-bytes and pad members are / ignored.

type ZeRtasTransformFloat3x4ColumnMajorExp

type ZeRtasTransformFloat3x4ColumnMajorExp struct {
	VxX float32 // VxX [in] element 0 of column 0 of 3x4 matrix
	VxY float32 // VxY [in] element 1 of column 0 of 3x4 matrix
	VxZ float32 // VxZ [in] element 2 of column 0 of 3x4 matrix
	VyX float32 // VyX [in] element 0 of column 1 of 3x4 matrix
	VyY float32 // VyY [in] element 1 of column 1 of 3x4 matrix
	VyZ float32 // VyZ [in] element 2 of column 1 of 3x4 matrix
	VzX float32 // VzX [in] element 0 of column 2 of 3x4 matrix
	VzY float32 // VzY [in] element 1 of column 2 of 3x4 matrix
	VzZ float32 // VzZ [in] element 2 of column 2 of 3x4 matrix
	PX  float32 // PX [in] element 0 of column 3 of 3x4 matrix
	PY  float32 // PY [in] element 1 of column 3 of 3x4 matrix
	PZ  float32 // PZ [in] element 2 of column 3 of 3x4 matrix

}

ZeRtasTransformFloat3x4ColumnMajorExp (ze_rtas_transform_float3x4_column_major_exp_t) 3x4 affine transformation in column-major layout / / @details / - A 3x4 affine transformation in column major layout, consisting of vectors / - vx=(vx_x, vx_y, vx_z), / - vy=(vy_x, vy_y, vy_z), / - vz=(vz_x, vz_y, vz_z), and / - p=(p_x, p_y, p_z) / - The transformation transforms a point (x, y, z) to: `x*vx + y*vy + / z*vz + p`.

type ZeRtasTransformFloat3x4ColumnMajorExt

type ZeRtasTransformFloat3x4ColumnMajorExt struct {
	VxX float32 // VxX [in] element 0 of column 0 of 3x4 matrix
	VxY float32 // VxY [in] element 1 of column 0 of 3x4 matrix
	VxZ float32 // VxZ [in] element 2 of column 0 of 3x4 matrix
	VyX float32 // VyX [in] element 0 of column 1 of 3x4 matrix
	VyY float32 // VyY [in] element 1 of column 1 of 3x4 matrix
	VyZ float32 // VyZ [in] element 2 of column 1 of 3x4 matrix
	VzX float32 // VzX [in] element 0 of column 2 of 3x4 matrix
	VzY float32 // VzY [in] element 1 of column 2 of 3x4 matrix
	VzZ float32 // VzZ [in] element 2 of column 2 of 3x4 matrix
	PX  float32 // PX [in] element 0 of column 3 of 3x4 matrix
	PY  float32 // PY [in] element 1 of column 3 of 3x4 matrix
	PZ  float32 // PZ [in] element 2 of column 3 of 3x4 matrix

}

ZeRtasTransformFloat3x4ColumnMajorExt (ze_rtas_transform_float3x4_column_major_ext_t) 3x4 affine transformation in column-major layout / / @details / - A 3x4 affine transformation in column major layout, consisting of vectors / - vx=(vx_x, vx_y, vx_z), / - vy=(vy_x, vy_y, vy_z), / - vz=(vz_x, vz_y, vz_z), and / - p=(p_x, p_y, p_z) / - The transformation transforms a point (x, y, z) to: `x*vx + y*vy + / z*vz + p`.

type ZeRtasTransformFloat3x4RowMajorExp

type ZeRtasTransformFloat3x4RowMajorExp struct {
	VxX float32 // VxX [in] element 0 of row 0 of 3x4 matrix
	VyX float32 // VyX [in] element 1 of row 0 of 3x4 matrix
	VzX float32 // VzX [in] element 2 of row 0 of 3x4 matrix
	PX  float32 // PX [in] element 3 of row 0 of 3x4 matrix
	VxY float32 // VxY [in] element 0 of row 1 of 3x4 matrix
	VyY float32 // VyY [in] element 1 of row 1 of 3x4 matrix
	VzY float32 // VzY [in] element 2 of row 1 of 3x4 matrix
	PY  float32 // PY [in] element 3 of row 1 of 3x4 matrix
	VxZ float32 // VxZ [in] element 0 of row 2 of 3x4 matrix
	VyZ float32 // VyZ [in] element 1 of row 2 of 3x4 matrix
	VzZ float32 // VzZ [in] element 2 of row 2 of 3x4 matrix
	PZ  float32 // PZ [in] element 3 of row 2 of 3x4 matrix

}

ZeRtasTransformFloat3x4RowMajorExp (ze_rtas_transform_float3x4_row_major_exp_t) 3x4 affine transformation in row-major layout / / @details / - A 3x4 affine transformation in row-major layout, consisting of vectors / - vx=(vx_x, vx_y, vx_z), / - vy=(vy_x, vy_y, vy_z), / - vz=(vz_x, vz_y, vz_z), and / - p=(p_x, p_y, p_z) / - The transformation transforms a point (x, y, z) to: `x*vx + y*vy + / z*vz + p`.

type ZeRtasTransformFloat3x4RowMajorExt

type ZeRtasTransformFloat3x4RowMajorExt struct {
	VxX float32 // VxX [in] element 0 of row 0 of 3x4 matrix
	VyX float32 // VyX [in] element 1 of row 0 of 3x4 matrix
	VzX float32 // VzX [in] element 2 of row 0 of 3x4 matrix
	PX  float32 // PX [in] element 3 of row 0 of 3x4 matrix
	VxY float32 // VxY [in] element 0 of row 1 of 3x4 matrix
	VyY float32 // VyY [in] element 1 of row 1 of 3x4 matrix
	VzY float32 // VzY [in] element 2 of row 1 of 3x4 matrix
	PY  float32 // PY [in] element 3 of row 1 of 3x4 matrix
	VxZ float32 // VxZ [in] element 0 of row 2 of 3x4 matrix
	VyZ float32 // VyZ [in] element 1 of row 2 of 3x4 matrix
	VzZ float32 // VzZ [in] element 2 of row 2 of 3x4 matrix
	PZ  float32 // PZ [in] element 3 of row 2 of 3x4 matrix

}

ZeRtasTransformFloat3x4RowMajorExt (ze_rtas_transform_float3x4_row_major_ext_t) 3x4 affine transformation in row-major layout / / @details / - A 3x4 affine transformation in row-major layout, consisting of vectors / - vx=(vx_x, vx_y, vx_z), / - vy=(vy_x, vy_y, vy_z), / - vz=(vz_x, vz_y, vz_z), and / - p=(p_x, p_y, p_z) / - The transformation transforms a point (x, y, z) to: `x*vx + y*vy + / z*vz + p`.

type ZeRtasTriangleIndicesUint32Exp

type ZeRtasTriangleIndicesUint32Exp struct {
	V0 uint32 // V0 [in] first index pointing to the first triangle vertex in vertex array
	V1 uint32 // V1 [in] second index pointing to the second triangle vertex in vertex array
	V2 uint32 // V2 [in] third index pointing to the third triangle vertex in vertex array

}

ZeRtasTriangleIndicesUint32Exp (ze_rtas_triangle_indices_uint32_exp_t) Triangle represented using 3 vertex indices / / @details / - Represents a triangle using 3 vertex indices that index into a vertex / array that needs to be provided together with the index array. / - The linear barycentric u/v parametrization of the triangle is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, and / - (u=0, v=1) at v2

type ZeRtasTriangleIndicesUint32Ext

type ZeRtasTriangleIndicesUint32Ext struct {
	V0 uint32 // V0 [in] first index pointing to the first triangle vertex in vertex array
	V1 uint32 // V1 [in] second index pointing to the second triangle vertex in vertex array
	V2 uint32 // V2 [in] third index pointing to the third triangle vertex in vertex array

}

ZeRtasTriangleIndicesUint32Ext (ze_rtas_triangle_indices_uint32_ext_t) Triangle represented using 3 vertex indices / / @details / - Represents a triangle using 3 vertex indices that index into a vertex / array that needs to be provided together with the index array. / - The linear barycentric u/v parametrization of the triangle is defined as: / - (u=0, v=0) at v0, / - (u=1, v=0) at v1, and / - (u=0, v=1) at v2

type ZeSamplerAddressMode

type ZeSamplerAddressMode uintptr

ZeSamplerAddressMode (ze_sampler_address_mode_t) Sampler addressing modes

const (
	ZE_SAMPLER_ADDRESS_MODE_NONE            ZeSamplerAddressMode = 0 // ZE_SAMPLER_ADDRESS_MODE_NONE No coordinate modifications for out-of-bounds image access.
	ZE_SAMPLER_ADDRESS_MODE_REPEAT          ZeSamplerAddressMode = 1 // ZE_SAMPLER_ADDRESS_MODE_REPEAT Out-of-bounds coordinates are wrapped back around.
	ZE_SAMPLER_ADDRESS_MODE_CLAMP           ZeSamplerAddressMode = 2 // ZE_SAMPLER_ADDRESS_MODE_CLAMP Out-of-bounds coordinates are clamped to edge.
	ZE_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER ZeSamplerAddressMode = 3 // ZE_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER Out-of-bounds coordinates are clamped to border color which is (0.0f,

	ZE_SAMPLER_ADDRESS_MODE_MIRROR       ZeSamplerAddressMode = 4          // ZE_SAMPLER_ADDRESS_MODE_MIRROR Out-of-bounds coordinates are mirrored starting from edge.
	ZE_SAMPLER_ADDRESS_MODE_FORCE_UINT32 ZeSamplerAddressMode = 0x7fffffff // ZE_SAMPLER_ADDRESS_MODE_FORCE_UINT32 Value marking end of ZE_SAMPLER_ADDRESS_MODE_* ENUMs

)

type ZeSamplerCallbacks

type ZeSamplerCallbacks struct {
	Pfncreatecb  ZePfnsamplercreatecb
	Pfndestroycb ZePfnsamplerdestroycb
}

ZeSamplerCallbacks (ze_sampler_callbacks_t) Table of Sampler callback functions pointers

type ZeSamplerCreateParams

type ZeSamplerCreateParams struct {
	Phcontext  *ZeContextHandle
	Phdevice   *ZeDeviceHandle
	Pdesc      **ZeSamplerDesc
	Pphsampler **ZeSamplerHandle
}

ZeSamplerCreateParams (ze_sampler_create_params_t) Callback function parameters for zeSamplerCreate / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeSamplerDesc

type ZeSamplerDesc struct {
	Stype        ZeStructureType      // Stype [in] type of this structure
	Pnext        unsafe.Pointer       // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Addressmode  ZeSamplerAddressMode // Addressmode [in] Sampler addressing mode to determine how out-of-bounds coordinates are handled.
	Filtermode   ZeSamplerFilterMode  // Filtermode [in] Sampler filter mode to determine how samples are filtered.
	Isnormalized ZeBool               // Isnormalized [in] Are coordinates normalized [0, 1] or not.

}

ZeSamplerDesc (ze_sampler_desc_t) Sampler descriptor

type ZeSamplerDestroyParams

type ZeSamplerDestroyParams struct {
	Phsampler *ZeSamplerHandle
}

ZeSamplerDestroyParams (ze_sampler_destroy_params_t) Callback function parameters for zeSamplerDestroy / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeSamplerFilterMode

type ZeSamplerFilterMode uintptr

ZeSamplerFilterMode (ze_sampler_filter_mode_t) Sampler filtering modes

const (
	ZE_SAMPLER_FILTER_MODE_NEAREST      ZeSamplerFilterMode = 0          // ZE_SAMPLER_FILTER_MODE_NEAREST No coordinate modifications for out of bounds image access.
	ZE_SAMPLER_FILTER_MODE_LINEAR       ZeSamplerFilterMode = 1          // ZE_SAMPLER_FILTER_MODE_LINEAR Out-of-bounds coordinates are wrapped back around.
	ZE_SAMPLER_FILTER_MODE_FORCE_UINT32 ZeSamplerFilterMode = 0x7fffffff // ZE_SAMPLER_FILTER_MODE_FORCE_UINT32 Value marking end of ZE_SAMPLER_FILTER_MODE_* ENUMs

)

type ZeSamplerHandle

type ZeSamplerHandle uintptr

ZeSamplerHandle (ze_sampler_handle_t) Handle of driver's sampler object

type ZeSchedulingHintExpDesc

type ZeSchedulingHintExpDesc struct {
	Stype ZeStructureType          // Stype [in] type of this structure
	Pnext unsafe.Pointer           // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZeSchedulingHintExpFlags // Flags [in] flags specifying kernel scheduling hints. must be 0 (default) or a valid combination of ::ze_scheduling_hint_exp_flag_t.

}

ZeSchedulingHintExpDesc (ze_scheduling_hint_exp_desc_t) Kernel scheduling hint descriptor / / @details / - This structure may be passed to ::zeKernelSchedulingHintExp.

type ZeSchedulingHintExpFlags

type ZeSchedulingHintExpFlags uint32

ZeSchedulingHintExpFlags (ze_scheduling_hint_exp_flags_t) Supported kernel scheduling hint flags

const (
	ZE_SCHEDULING_HINT_EXP_FLAG_OLDEST_FIRST            ZeSchedulingHintExpFlags = (1 << 0)   // ZE_SCHEDULING_HINT_EXP_FLAG_OLDEST_FIRST Hint that the kernel prefers oldest-first scheduling
	ZE_SCHEDULING_HINT_EXP_FLAG_ROUND_ROBIN             ZeSchedulingHintExpFlags = (1 << 1)   // ZE_SCHEDULING_HINT_EXP_FLAG_ROUND_ROBIN Hint that the kernel prefers round-robin scheduling
	ZE_SCHEDULING_HINT_EXP_FLAG_STALL_BASED_ROUND_ROBIN ZeSchedulingHintExpFlags = (1 << 2)   // ZE_SCHEDULING_HINT_EXP_FLAG_STALL_BASED_ROUND_ROBIN Hint that the kernel prefers stall-based round-robin scheduling
	ZE_SCHEDULING_HINT_EXP_FLAG_FORCE_UINT32            ZeSchedulingHintExpFlags = 0x7fffffff // ZE_SCHEDULING_HINT_EXP_FLAG_FORCE_UINT32 Value marking end of ZE_SCHEDULING_HINT_EXP_FLAG_* ENUMs

)

type ZeSchedulingHintExpProperties

type ZeSchedulingHintExpProperties struct {
	Stype               ZeStructureType          // Stype [in] type of this structure
	Pnext               unsafe.Pointer           // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Schedulinghintflags ZeSchedulingHintExpFlags // Schedulinghintflags [out] Supported kernel scheduling hints. May be 0 (none) or a valid combination of ::ze_scheduling_hint_exp_flag_t.

}

ZeSchedulingHintExpProperties (ze_scheduling_hint_exp_properties_t) Device kernel scheduling hint properties queried using / ::zeDeviceGetModuleProperties / / @details / - This structure may be returned from ::zeDeviceGetModuleProperties, via / the `pNext` member of ::ze_device_module_properties_t.

type ZeSchedulingHintsExpVersion

type ZeSchedulingHintsExpVersion uintptr

ZeSchedulingHintsExpVersion (ze_scheduling_hints_exp_version_t) Kernel Scheduling Hints Extension Version(s)

const (
	ZE_SCHEDULING_HINTS_EXP_VERSION_1_0          ZeSchedulingHintsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SCHEDULING_HINTS_EXP_VERSION_1_0 version 1.0
	ZE_SCHEDULING_HINTS_EXP_VERSION_CURRENT      ZeSchedulingHintsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SCHEDULING_HINTS_EXP_VERSION_CURRENT latest known version
	ZE_SCHEDULING_HINTS_EXP_VERSION_FORCE_UINT32 ZeSchedulingHintsExpVersion = 0x7fffffff                     // ZE_SCHEDULING_HINTS_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_SCHEDULING_HINTS_EXP_VERSION_* ENUMs

)

type ZeSrgbExtDesc

type ZeSrgbExtDesc struct {
	Stype ZeStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer  // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Srgb  ZeBool          // Srgb [in] Is sRGB.

}

ZeSrgbExtDesc (ze_srgb_ext_desc_t) sRGB image descriptor / / @details / - This structure may be passed to ::zeImageCreate via the `pNext` member / of ::ze_image_desc_t / - Used for specifying that the image is in sRGB format.

type ZeSrgbExtVersion

type ZeSrgbExtVersion uintptr

ZeSrgbExtVersion (ze_srgb_ext_version_t) sRGB Extension Version(s)

const (
	ZE_SRGB_EXT_VERSION_1_0          ZeSrgbExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SRGB_EXT_VERSION_1_0 version 1.0
	ZE_SRGB_EXT_VERSION_CURRENT      ZeSrgbExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SRGB_EXT_VERSION_CURRENT latest known version
	ZE_SRGB_EXT_VERSION_FORCE_UINT32 ZeSrgbExtVersion = 0x7fffffff                     // ZE_SRGB_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_SRGB_EXT_VERSION_* ENUMs

)

type ZeStructureType

type ZeStructureType uintptr

ZeStructureType (ze_structure_type_t) Defines structure types

const (
	ZE_STRUCTURE_TYPE_DRIVER_PROPERTIES                                    ZeStructureType = 0x1        // ZE_STRUCTURE_TYPE_DRIVER_PROPERTIES ::ze_driver_properties_t
	ZE_STRUCTURE_TYPE_DRIVER_IPC_PROPERTIES                                ZeStructureType = 0x2        // ZE_STRUCTURE_TYPE_DRIVER_IPC_PROPERTIES ::ze_driver_ipc_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES                                    ZeStructureType = 0x3        // ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES ::ze_device_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_COMPUTE_PROPERTIES                            ZeStructureType = 0x4        // ZE_STRUCTURE_TYPE_DEVICE_COMPUTE_PROPERTIES ::ze_device_compute_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_MODULE_PROPERTIES                             ZeStructureType = 0x5        // ZE_STRUCTURE_TYPE_DEVICE_MODULE_PROPERTIES ::ze_device_module_properties_t
	ZE_STRUCTURE_TYPE_COMMAND_QUEUE_GROUP_PROPERTIES                       ZeStructureType = 0x6        // ZE_STRUCTURE_TYPE_COMMAND_QUEUE_GROUP_PROPERTIES ::ze_command_queue_group_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_MEMORY_PROPERTIES                             ZeStructureType = 0x7        // ZE_STRUCTURE_TYPE_DEVICE_MEMORY_PROPERTIES ::ze_device_memory_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_MEMORY_ACCESS_PROPERTIES                      ZeStructureType = 0x8        // ZE_STRUCTURE_TYPE_DEVICE_MEMORY_ACCESS_PROPERTIES ::ze_device_memory_access_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_CACHE_PROPERTIES                              ZeStructureType = 0x9        // ZE_STRUCTURE_TYPE_DEVICE_CACHE_PROPERTIES ::ze_device_cache_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_IMAGE_PROPERTIES                              ZeStructureType = 0xa        // ZE_STRUCTURE_TYPE_DEVICE_IMAGE_PROPERTIES ::ze_device_image_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_P2P_PROPERTIES                                ZeStructureType = 0xb        // ZE_STRUCTURE_TYPE_DEVICE_P2P_PROPERTIES ::ze_device_p2p_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_EXTERNAL_MEMORY_PROPERTIES                    ZeStructureType = 0xc        // ZE_STRUCTURE_TYPE_DEVICE_EXTERNAL_MEMORY_PROPERTIES ::ze_device_external_memory_properties_t
	ZE_STRUCTURE_TYPE_CONTEXT_DESC                                         ZeStructureType = 0xd        // ZE_STRUCTURE_TYPE_CONTEXT_DESC ::ze_context_desc_t
	ZE_STRUCTURE_TYPE_COMMAND_QUEUE_DESC                                   ZeStructureType = 0xe        // ZE_STRUCTURE_TYPE_COMMAND_QUEUE_DESC ::ze_command_queue_desc_t
	ZE_STRUCTURE_TYPE_COMMAND_LIST_DESC                                    ZeStructureType = 0xf        // ZE_STRUCTURE_TYPE_COMMAND_LIST_DESC ::ze_command_list_desc_t
	ZE_STRUCTURE_TYPE_EVENT_POOL_DESC                                      ZeStructureType = 0x10       // ZE_STRUCTURE_TYPE_EVENT_POOL_DESC ::ze_event_pool_desc_t
	ZE_STRUCTURE_TYPE_EVENT_DESC                                           ZeStructureType = 0x11       // ZE_STRUCTURE_TYPE_EVENT_DESC ::ze_event_desc_t
	ZE_STRUCTURE_TYPE_FENCE_DESC                                           ZeStructureType = 0x12       // ZE_STRUCTURE_TYPE_FENCE_DESC ::ze_fence_desc_t
	ZE_STRUCTURE_TYPE_IMAGE_DESC                                           ZeStructureType = 0x13       // ZE_STRUCTURE_TYPE_IMAGE_DESC ::ze_image_desc_t
	ZE_STRUCTURE_TYPE_IMAGE_PROPERTIES                                     ZeStructureType = 0x14       // ZE_STRUCTURE_TYPE_IMAGE_PROPERTIES ::ze_image_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_MEM_ALLOC_DESC                                ZeStructureType = 0x15       // ZE_STRUCTURE_TYPE_DEVICE_MEM_ALLOC_DESC ::ze_device_mem_alloc_desc_t
	ZE_STRUCTURE_TYPE_HOST_MEM_ALLOC_DESC                                  ZeStructureType = 0x16       // ZE_STRUCTURE_TYPE_HOST_MEM_ALLOC_DESC ::ze_host_mem_alloc_desc_t
	ZE_STRUCTURE_TYPE_MEMORY_ALLOCATION_PROPERTIES                         ZeStructureType = 0x17       // ZE_STRUCTURE_TYPE_MEMORY_ALLOCATION_PROPERTIES ::ze_memory_allocation_properties_t
	ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_EXPORT_DESC                          ZeStructureType = 0x18       // ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_EXPORT_DESC ::ze_external_memory_export_desc_t
	ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMPORT_FD                            ZeStructureType = 0x19       // ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMPORT_FD ::ze_external_memory_import_fd_t
	ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_EXPORT_FD                            ZeStructureType = 0x1a       // ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_EXPORT_FD ::ze_external_memory_export_fd_t
	ZE_STRUCTURE_TYPE_MODULE_DESC                                          ZeStructureType = 0x1b       // ZE_STRUCTURE_TYPE_MODULE_DESC ::ze_module_desc_t
	ZE_STRUCTURE_TYPE_MODULE_PROPERTIES                                    ZeStructureType = 0x1c       // ZE_STRUCTURE_TYPE_MODULE_PROPERTIES ::ze_module_properties_t
	ZE_STRUCTURE_TYPE_KERNEL_DESC                                          ZeStructureType = 0x1d       // ZE_STRUCTURE_TYPE_KERNEL_DESC ::ze_kernel_desc_t
	ZE_STRUCTURE_TYPE_KERNEL_PROPERTIES                                    ZeStructureType = 0x1e       // ZE_STRUCTURE_TYPE_KERNEL_PROPERTIES ::ze_kernel_properties_t
	ZE_STRUCTURE_TYPE_SAMPLER_DESC                                         ZeStructureType = 0x1f       // ZE_STRUCTURE_TYPE_SAMPLER_DESC ::ze_sampler_desc_t
	ZE_STRUCTURE_TYPE_PHYSICAL_MEM_DESC                                    ZeStructureType = 0x20       // ZE_STRUCTURE_TYPE_PHYSICAL_MEM_DESC ::ze_physical_mem_desc_t
	ZE_STRUCTURE_TYPE_KERNEL_PREFERRED_GROUP_SIZE_PROPERTIES               ZeStructureType = 0x21       // ZE_STRUCTURE_TYPE_KERNEL_PREFERRED_GROUP_SIZE_PROPERTIES ::ze_kernel_preferred_group_size_properties_t
	ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMPORT_WIN32                         ZeStructureType = 0x22       // ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMPORT_WIN32 ::ze_external_memory_import_win32_handle_t
	ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_EXPORT_WIN32                         ZeStructureType = 0x23       // ZE_STRUCTURE_TYPE_EXTERNAL_MEMORY_EXPORT_WIN32 ::ze_external_memory_export_win32_handle_t
	ZE_STRUCTURE_TYPE_DEVICE_RAYTRACING_EXT_PROPERTIES                     ZeStructureType = 0x00010001 // ZE_STRUCTURE_TYPE_DEVICE_RAYTRACING_EXT_PROPERTIES ::ze_device_raytracing_ext_properties_t
	ZE_STRUCTURE_TYPE_RAYTRACING_MEM_ALLOC_EXT_DESC                        ZeStructureType = 0x10002    // ZE_STRUCTURE_TYPE_RAYTRACING_MEM_ALLOC_EXT_DESC ::ze_raytracing_mem_alloc_ext_desc_t
	ZE_STRUCTURE_TYPE_FLOAT_ATOMIC_EXT_PROPERTIES                          ZeStructureType = 0x10003    // ZE_STRUCTURE_TYPE_FLOAT_ATOMIC_EXT_PROPERTIES ::ze_float_atomic_ext_properties_t
	ZE_STRUCTURE_TYPE_CACHE_RESERVATION_EXT_DESC                           ZeStructureType = 0x10004    // ZE_STRUCTURE_TYPE_CACHE_RESERVATION_EXT_DESC ::ze_cache_reservation_ext_desc_t
	ZE_STRUCTURE_TYPE_EU_COUNT_EXT                                         ZeStructureType = 0x10005    // ZE_STRUCTURE_TYPE_EU_COUNT_EXT ::ze_eu_count_ext_t
	ZE_STRUCTURE_TYPE_SRGB_EXT_DESC                                        ZeStructureType = 0x10006    // ZE_STRUCTURE_TYPE_SRGB_EXT_DESC ::ze_srgb_ext_desc_t
	ZE_STRUCTURE_TYPE_LINKAGE_INSPECTION_EXT_DESC                          ZeStructureType = 0x10007    // ZE_STRUCTURE_TYPE_LINKAGE_INSPECTION_EXT_DESC ::ze_linkage_inspection_ext_desc_t
	ZE_STRUCTURE_TYPE_PCI_EXT_PROPERTIES                                   ZeStructureType = 0x10008    // ZE_STRUCTURE_TYPE_PCI_EXT_PROPERTIES ::ze_pci_ext_properties_t
	ZE_STRUCTURE_TYPE_DRIVER_MEMORY_FREE_EXT_PROPERTIES                    ZeStructureType = 0x10009    // ZE_STRUCTURE_TYPE_DRIVER_MEMORY_FREE_EXT_PROPERTIES ::ze_driver_memory_free_ext_properties_t
	ZE_STRUCTURE_TYPE_MEMORY_FREE_EXT_DESC                                 ZeStructureType = 0x1000a    // ZE_STRUCTURE_TYPE_MEMORY_FREE_EXT_DESC ::ze_memory_free_ext_desc_t
	ZE_STRUCTURE_TYPE_MEMORY_COMPRESSION_HINTS_EXT_DESC                    ZeStructureType = 0x1000b    // ZE_STRUCTURE_TYPE_MEMORY_COMPRESSION_HINTS_EXT_DESC ::ze_memory_compression_hints_ext_desc_t
	ZE_STRUCTURE_TYPE_IMAGE_ALLOCATION_EXT_PROPERTIES                      ZeStructureType = 0x1000c    // ZE_STRUCTURE_TYPE_IMAGE_ALLOCATION_EXT_PROPERTIES ::ze_image_allocation_ext_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_LUID_EXT_PROPERTIES                           ZeStructureType = 0x1000d    // ZE_STRUCTURE_TYPE_DEVICE_LUID_EXT_PROPERTIES ::ze_device_luid_ext_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_MEMORY_EXT_PROPERTIES                         ZeStructureType = 0x1000e    // ZE_STRUCTURE_TYPE_DEVICE_MEMORY_EXT_PROPERTIES ::ze_device_memory_ext_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_IP_VERSION_EXT                                ZeStructureType = 0x1000f    // ZE_STRUCTURE_TYPE_DEVICE_IP_VERSION_EXT ::ze_device_ip_version_ext_t
	ZE_STRUCTURE_TYPE_IMAGE_VIEW_PLANAR_EXT_DESC                           ZeStructureType = 0x10010    // ZE_STRUCTURE_TYPE_IMAGE_VIEW_PLANAR_EXT_DESC ::ze_image_view_planar_ext_desc_t
	ZE_STRUCTURE_TYPE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_PROPERTIES         ZeStructureType = 0x10011    // ZE_STRUCTURE_TYPE_EVENT_QUERY_KERNEL_TIMESTAMPS_EXT_PROPERTIES ::ze_event_query_kernel_timestamps_ext_properties_t
	ZE_STRUCTURE_TYPE_EVENT_QUERY_KERNEL_TIMESTAMPS_RESULTS_EXT_PROPERTIES ZeStructureType = 0x10012    // ZE_STRUCTURE_TYPE_EVENT_QUERY_KERNEL_TIMESTAMPS_RESULTS_EXT_PROPERTIES ::ze_event_query_kernel_timestamps_results_ext_properties_t
	ZE_STRUCTURE_TYPE_KERNEL_MAX_GROUP_SIZE_EXT_PROPERTIES                 ZeStructureType = 0x10013    // ZE_STRUCTURE_TYPE_KERNEL_MAX_GROUP_SIZE_EXT_PROPERTIES ::ze_kernel_max_group_size_ext_properties_t
	ZE_STRUCTURE_TYPE_IMAGE_FORMAT_SUPPORT_EXT_PROPERTIES                  ZeStructureType = 0x10014    // ZE_STRUCTURE_TYPE_IMAGE_FORMAT_SUPPORT_EXT_PROPERTIES ::ze_image_format_support_ext_properties_t
	ZE_STRUCTURE_TYPE_RELAXED_ALLOCATION_LIMITS_EXP_DESC                   ZeStructureType = 0x00020001 // ZE_STRUCTURE_TYPE_RELAXED_ALLOCATION_LIMITS_EXP_DESC ::ze_relaxed_allocation_limits_exp_desc_t
	ZE_STRUCTURE_TYPE_MODULE_PROGRAM_EXP_DESC                              ZeStructureType = 0x00020002 // ZE_STRUCTURE_TYPE_MODULE_PROGRAM_EXP_DESC ::ze_module_program_exp_desc_t
	ZE_STRUCTURE_TYPE_SCHEDULING_HINT_EXP_PROPERTIES                       ZeStructureType = 0x00020003 // ZE_STRUCTURE_TYPE_SCHEDULING_HINT_EXP_PROPERTIES ::ze_scheduling_hint_exp_properties_t
	ZE_STRUCTURE_TYPE_SCHEDULING_HINT_EXP_DESC                             ZeStructureType = 0x00020004 // ZE_STRUCTURE_TYPE_SCHEDULING_HINT_EXP_DESC ::ze_scheduling_hint_exp_desc_t
	ZE_STRUCTURE_TYPE_IMAGE_VIEW_PLANAR_EXP_DESC                           ZeStructureType = 0x00020005 // ZE_STRUCTURE_TYPE_IMAGE_VIEW_PLANAR_EXP_DESC ::ze_image_view_planar_exp_desc_t
	ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES_1_2                                ZeStructureType = 0x00020006 // ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES_1_2 ::ze_device_properties_t
	ZE_STRUCTURE_TYPE_IMAGE_MEMORY_EXP_PROPERTIES                          ZeStructureType = 0x00020007 // ZE_STRUCTURE_TYPE_IMAGE_MEMORY_EXP_PROPERTIES ::ze_image_memory_properties_exp_t
	ZE_STRUCTURE_TYPE_POWER_SAVING_HINT_EXP_DESC                           ZeStructureType = 0x00020008 // ZE_STRUCTURE_TYPE_POWER_SAVING_HINT_EXP_DESC ::ze_context_power_saving_hint_exp_desc_t
	ZE_STRUCTURE_TYPE_COPY_BANDWIDTH_EXP_PROPERTIES                        ZeStructureType = 0x00020009 // ZE_STRUCTURE_TYPE_COPY_BANDWIDTH_EXP_PROPERTIES ::ze_copy_bandwidth_exp_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_P2P_BANDWIDTH_EXP_PROPERTIES                  ZeStructureType = 0x0002000A // ZE_STRUCTURE_TYPE_DEVICE_P2P_BANDWIDTH_EXP_PROPERTIES ::ze_device_p2p_bandwidth_exp_properties_t
	ZE_STRUCTURE_TYPE_FABRIC_VERTEX_EXP_PROPERTIES                         ZeStructureType = 0x0002000B // ZE_STRUCTURE_TYPE_FABRIC_VERTEX_EXP_PROPERTIES ::ze_fabric_vertex_exp_properties_t
	ZE_STRUCTURE_TYPE_FABRIC_EDGE_EXP_PROPERTIES                           ZeStructureType = 0x0002000C // ZE_STRUCTURE_TYPE_FABRIC_EDGE_EXP_PROPERTIES ::ze_fabric_edge_exp_properties_t
	ZE_STRUCTURE_TYPE_MEMORY_SUB_ALLOCATIONS_EXP_PROPERTIES                ZeStructureType = 0x0002000D // ZE_STRUCTURE_TYPE_MEMORY_SUB_ALLOCATIONS_EXP_PROPERTIES ::ze_memory_sub_allocations_exp_properties_t
	ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXP_DESC                                ZeStructureType = 0x0002000E // ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXP_DESC ::ze_rtas_builder_exp_desc_t
	ZE_STRUCTURE_TYPE_RTAS_BUILDER_BUILD_OP_EXP_DESC                       ZeStructureType = 0x0002000F // ZE_STRUCTURE_TYPE_RTAS_BUILDER_BUILD_OP_EXP_DESC ::ze_rtas_builder_build_op_exp_desc_t
	ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXP_PROPERTIES                          ZeStructureType = 0x00020010 // ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXP_PROPERTIES ::ze_rtas_builder_exp_properties_t
	ZE_STRUCTURE_TYPE_RTAS_PARALLEL_OPERATION_EXP_PROPERTIES               ZeStructureType = 0x00020011 // ZE_STRUCTURE_TYPE_RTAS_PARALLEL_OPERATION_EXP_PROPERTIES ::ze_rtas_parallel_operation_exp_properties_t
	ZE_STRUCTURE_TYPE_RTAS_DEVICE_EXP_PROPERTIES                           ZeStructureType = 0x00020012 // ZE_STRUCTURE_TYPE_RTAS_DEVICE_EXP_PROPERTIES ::ze_rtas_device_exp_properties_t
	ZE_STRUCTURE_TYPE_RTAS_GEOMETRY_AABBS_EXP_CB_PARAMS                    ZeStructureType = 0x00020013 // ZE_STRUCTURE_TYPE_RTAS_GEOMETRY_AABBS_EXP_CB_PARAMS ::ze_rtas_geometry_aabbs_exp_cb_params_t
	ZE_STRUCTURE_TYPE_COUNTER_BASED_EVENT_POOL_EXP_DESC                    ZeStructureType = 0x00020014 // ZE_STRUCTURE_TYPE_COUNTER_BASED_EVENT_POOL_EXP_DESC ::ze_event_pool_counter_based_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_COMMAND_LIST_EXP_PROPERTIES                  ZeStructureType = 0x00020015 // ZE_STRUCTURE_TYPE_MUTABLE_COMMAND_LIST_EXP_PROPERTIES ::ze_mutable_command_list_exp_properties_t
	ZE_STRUCTURE_TYPE_MUTABLE_COMMAND_LIST_EXP_DESC                        ZeStructureType = 0x00020016 // ZE_STRUCTURE_TYPE_MUTABLE_COMMAND_LIST_EXP_DESC ::ze_mutable_command_list_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_COMMAND_ID_EXP_DESC                          ZeStructureType = 0x00020017 // ZE_STRUCTURE_TYPE_MUTABLE_COMMAND_ID_EXP_DESC ::ze_mutable_command_id_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_COMMANDS_EXP_DESC                            ZeStructureType = 0x00020018 // ZE_STRUCTURE_TYPE_MUTABLE_COMMANDS_EXP_DESC ::ze_mutable_commands_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_KERNEL_ARGUMENT_EXP_DESC                     ZeStructureType = 0x00020019 // ZE_STRUCTURE_TYPE_MUTABLE_KERNEL_ARGUMENT_EXP_DESC ::ze_mutable_kernel_argument_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_GROUP_COUNT_EXP_DESC                         ZeStructureType = 0x0002001A // ZE_STRUCTURE_TYPE_MUTABLE_GROUP_COUNT_EXP_DESC ::ze_mutable_group_count_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_GROUP_SIZE_EXP_DESC                          ZeStructureType = 0x0002001B // ZE_STRUCTURE_TYPE_MUTABLE_GROUP_SIZE_EXP_DESC ::ze_mutable_group_size_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_GLOBAL_OFFSET_EXP_DESC                       ZeStructureType = 0x0002001C // ZE_STRUCTURE_TYPE_MUTABLE_GLOBAL_OFFSET_EXP_DESC ::ze_mutable_global_offset_exp_desc_t
	ZE_STRUCTURE_TYPE_PITCHED_ALLOC_DEVICE_EXP_PROPERTIES                  ZeStructureType = 0x0002001D // ZE_STRUCTURE_TYPE_PITCHED_ALLOC_DEVICE_EXP_PROPERTIES ::ze_device_pitched_alloc_exp_properties_t
	ZE_STRUCTURE_TYPE_BINDLESS_IMAGE_EXP_DESC                              ZeStructureType = 0x0002001E // ZE_STRUCTURE_TYPE_BINDLESS_IMAGE_EXP_DESC ::ze_image_bindless_exp_desc_t
	ZE_STRUCTURE_TYPE_PITCHED_IMAGE_EXP_DESC                               ZeStructureType = 0x0002001F // ZE_STRUCTURE_TYPE_PITCHED_IMAGE_EXP_DESC ::ze_image_pitched_exp_desc_t
	ZE_STRUCTURE_TYPE_MUTABLE_GRAPH_ARGUMENT_EXP_DESC                      ZeStructureType = 0x00020020 // ZE_STRUCTURE_TYPE_MUTABLE_GRAPH_ARGUMENT_EXP_DESC ::ze_mutable_graph_argument_exp_desc_t
	ZE_STRUCTURE_TYPE_INIT_DRIVER_TYPE_DESC                                ZeStructureType = 0x00020021 // ZE_STRUCTURE_TYPE_INIT_DRIVER_TYPE_DESC ::ze_init_driver_type_desc_t
	ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_EXT_DESC                          ZeStructureType = 0x00020022 // ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_EXT_DESC ::ze_external_semaphore_ext_desc_t
	ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_WIN32_EXT_DESC                    ZeStructureType = 0x00020023 // ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_WIN32_EXT_DESC ::ze_external_semaphore_win32_ext_desc_t
	ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_FD_EXT_DESC                       ZeStructureType = 0x00020024 // ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_FD_EXT_DESC ::ze_external_semaphore_fd_ext_desc_t
	ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_EXT                 ZeStructureType = 0x00020025 // ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_EXT ::ze_external_semaphore_signal_params_ext_t
	ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_WAIT_PARAMS_EXT                   ZeStructureType = 0x00020026 // ZE_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_WAIT_PARAMS_EXT ::ze_external_semaphore_wait_params_ext_t
	ZE_STRUCTURE_TYPE_DRIVER_DDI_HANDLES_EXT_PROPERTIES                    ZeStructureType = 0x00020027 // ZE_STRUCTURE_TYPE_DRIVER_DDI_HANDLES_EXT_PROPERTIES ::ze_driver_ddi_handles_ext_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_CACHELINE_SIZE_EXT                            ZeStructureType = 0x00020028 // ZE_STRUCTURE_TYPE_DEVICE_CACHELINE_SIZE_EXT ::ze_device_cache_line_size_ext_t
	ZE_STRUCTURE_TYPE_DEVICE_VECTOR_WIDTH_PROPERTIES_EXT                   ZeStructureType = 0x00020029 // ZE_STRUCTURE_TYPE_DEVICE_VECTOR_WIDTH_PROPERTIES_EXT ::ze_device_vector_width_properties_ext_t
	ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXT_DESC                                ZeStructureType = 0x00020030 // ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXT_DESC ::ze_rtas_builder_ext_desc_t
	ZE_STRUCTURE_TYPE_RTAS_BUILDER_BUILD_OP_EXT_DESC                       ZeStructureType = 0x00020031 // ZE_STRUCTURE_TYPE_RTAS_BUILDER_BUILD_OP_EXT_DESC ::ze_rtas_builder_build_op_ext_desc_t
	ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXT_PROPERTIES                          ZeStructureType = 0x00020032 // ZE_STRUCTURE_TYPE_RTAS_BUILDER_EXT_PROPERTIES ::ze_rtas_builder_ext_properties_t
	ZE_STRUCTURE_TYPE_RTAS_PARALLEL_OPERATION_EXT_PROPERTIES               ZeStructureType = 0x00020033 // ZE_STRUCTURE_TYPE_RTAS_PARALLEL_OPERATION_EXT_PROPERTIES ::ze_rtas_parallel_operation_ext_properties_t
	ZE_STRUCTURE_TYPE_RTAS_DEVICE_EXT_PROPERTIES                           ZeStructureType = 0x00020034 // ZE_STRUCTURE_TYPE_RTAS_DEVICE_EXT_PROPERTIES ::ze_rtas_device_ext_properties_t
	ZE_STRUCTURE_TYPE_RTAS_GEOMETRY_AABBS_EXT_CB_PARAMS                    ZeStructureType = 0x00020035 // ZE_STRUCTURE_TYPE_RTAS_GEOMETRY_AABBS_EXT_CB_PARAMS ::ze_rtas_geometry_aabbs_ext_cb_params_t
	ZE_STRUCTURE_TYPE_COMMAND_LIST_APPEND_PARAM_COOPERATIVE_DESC           ZeStructureType = 0x00020036 // ZE_STRUCTURE_TYPE_COMMAND_LIST_APPEND_PARAM_COOPERATIVE_DESC ::ze_command_list_append_launch_kernel_param_cooperative_desc_t
	ZE_STRUCTURE_TYPE_EXTERNAL_MEMMAP_SYSMEM_EXT_DESC                      ZeStructureType = 0x00020037 // ZE_STRUCTURE_TYPE_EXTERNAL_MEMMAP_SYSMEM_EXT_DESC ::ze_external_memmap_sysmem_ext_desc_t
	ZE_STRUCTURE_TYPE_PITCHED_ALLOC_2DIMAGE_LINEAR_PITCH_EXP_INFO          ZeStructureType = 0x00020038 // ZE_STRUCTURE_TYPE_PITCHED_ALLOC_2DIMAGE_LINEAR_PITCH_EXP_INFO ::ze_pitched_alloc_2dimage_linear_pitch_exp_info_t
	ZE_STRUCTURE_TYPE_KERNEL_ALLOCATION_PROPERTIES                         ZeStructureType = 0x00020039 // ZE_STRUCTURE_TYPE_KERNEL_ALLOCATION_PROPERTIES ::ze_kernel_allocation_exp_properties_t
	ZE_STRUCTURE_TYPE_EVENT_COUNTER_BASED_DESC                             ZeStructureType = 0x0002003A // ZE_STRUCTURE_TYPE_EVENT_COUNTER_BASED_DESC ::ze_event_counter_based_desc_t
	ZE_STRUCTURE_TYPE_EVENT_COUNTER_BASED_EXTERNAL_SYNC_ALLOCATION_DESC    ZeStructureType = 0x0002003B // ZE_STRUCTURE_TYPE_EVENT_COUNTER_BASED_EXTERNAL_SYNC_ALLOCATION_DESC ::ze_event_counter_based_external_sync_allocation_desc_t
	ZE_STRUCTURE_TYPE_EVENT_SYNC_MODE_DESC                                 ZeStructureType = 0x0002003C // ZE_STRUCTURE_TYPE_EVENT_SYNC_MODE_DESC ::ze_event_sync_mode_desc_t
	ZE_STRUCTURE_TYPE_IPC_MEM_HANDLE_TYPE_EXT_DESC                         ZeStructureType = 0x0002003D // ZE_STRUCTURE_TYPE_IPC_MEM_HANDLE_TYPE_EXT_DESC ::ze_ipc_mem_handle_type_ext_desc_t
	ZE_STRUCTURE_TYPE_DEVICE_EVENT_PROPERTIES                              ZeStructureType = 0x0002003E // ZE_STRUCTURE_TYPE_DEVICE_EVENT_PROPERTIES ::ze_device_event_properties_t
	ZE_STRUCTURE_TYPE_EVENT_COUNTER_BASED_EXTERNAL_AGGREGATE_STORAGE_DESC  ZeStructureType = 0x0002003F // ZE_STRUCTURE_TYPE_EVENT_COUNTER_BASED_EXTERNAL_AGGREGATE_STORAGE_DESC ::ze_event_counter_based_external_aggregate_storage_desc_t
	ZE_STRUCTURE_TYPE_PHYSICAL_MEM_PROPERTIES                              ZeStructureType = 0x00020040 // ZE_STRUCTURE_TYPE_PHYSICAL_MEM_PROPERTIES ::ze_physical_mem_properties_t
	ZE_STRUCTURE_TYPE_DEVICE_USABLEMEM_SIZE_EXT_PROPERTIES                 ZeStructureType = 0x00020041 // ZE_STRUCTURE_TYPE_DEVICE_USABLEMEM_SIZE_EXT_PROPERTIES ::ze_device_usablemem_size_ext_properties_t
	ZE_STRUCTURE_TYPE_CUSTOM_PITCH_EXP_DESC                                ZeStructureType = 0x00020042 // ZE_STRUCTURE_TYPE_CUSTOM_PITCH_EXP_DESC ::ze_custom_pitch_exp_desc_t
	ZE_STRUCTURE_TYPE_FORCE_UINT32                                         ZeStructureType = 0x7fffffff // ZE_STRUCTURE_TYPE_FORCE_UINT32 Value marking end of ZE_STRUCTURE_TYPE_* ENUMs

)

type ZeSubAllocation

type ZeSubAllocation struct {
	Base unsafe.Pointer // Base [in,out][optional] base address of the sub-allocation
	Size uintptr        // Size [in,out][optional] size of the allocation

}

ZeSubAllocation (ze_sub_allocation_t) Properties returned for a sub-allocation

type ZeSubAllocationsExpVersion

type ZeSubAllocationsExpVersion uintptr

ZeSubAllocationsExpVersion (ze_sub_allocations_exp_version_t) Sub-Allocations Properties Extension Version(s)

const (
	ZE_SUB_ALLOCATIONS_EXP_VERSION_1_0          ZeSubAllocationsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SUB_ALLOCATIONS_EXP_VERSION_1_0 version 1.0
	ZE_SUB_ALLOCATIONS_EXP_VERSION_CURRENT      ZeSubAllocationsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SUB_ALLOCATIONS_EXP_VERSION_CURRENT latest known version
	ZE_SUB_ALLOCATIONS_EXP_VERSION_FORCE_UINT32 ZeSubAllocationsExpVersion = 0x7fffffff                     // ZE_SUB_ALLOCATIONS_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_SUB_ALLOCATIONS_EXP_VERSION_* ENUMs

)

type ZeSubgroupExtVersion

type ZeSubgroupExtVersion uintptr

ZeSubgroupExtVersion (ze_subgroup_ext_version_t) Subgroups Extension Version(s)

const (
	ZE_SUBGROUP_EXT_VERSION_1_0          ZeSubgroupExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SUBGROUP_EXT_VERSION_1_0 version 1.0
	ZE_SUBGROUP_EXT_VERSION_CURRENT      ZeSubgroupExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZE_SUBGROUP_EXT_VERSION_CURRENT latest known version
	ZE_SUBGROUP_EXT_VERSION_FORCE_UINT32 ZeSubgroupExtVersion = 0x7fffffff                     // ZE_SUBGROUP_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_SUBGROUP_EXT_VERSION_* ENUMs

)

type ZeSynchronizedTimestampDataExt

type ZeSynchronizedTimestampDataExt struct {
	Kernelstart uint64 // Kernelstart [out] synchronized clock at start of kernel execution
	Kernelend   uint64 // Kernelend [out] synchronized clock at end of kernel execution

}

ZeSynchronizedTimestampDataExt (ze_synchronized_timestamp_data_ext_t) Kernel timestamp clock data synchronized to the host time domain

type ZeSynchronizedTimestampResultExt

type ZeSynchronizedTimestampResultExt struct {
	Global  ZeSynchronizedTimestampDataExt // Global [out] wall-clock data
	Context ZeSynchronizedTimestampDataExt // Context [out] context-active data; only includes clocks while device context was actively executing.

}

ZeSynchronizedTimestampResultExt (ze_synchronized_timestamp_result_ext_t) Synchronized kernel timestamp result

type ZeUuid

type ZeUuid struct {
	Id [ZE_MAX_UUID_SIZE]uint8 // Id [out] opaque data representing a UUID

}

ZeUuid (ze_uuid_t) Universal unique id (UUID)

type ZeVirtualMemCallbacks

type ZeVirtualMemCallbacks struct {
	Pfnreservecb            ZePfnvirtualmemreservecb
	Pfnfreecb               ZePfnvirtualmemfreecb
	Pfnquerypagesizecb      ZePfnvirtualmemquerypagesizecb
	Pfnmapcb                ZePfnvirtualmemmapcb
	Pfnunmapcb              ZePfnvirtualmemunmapcb
	Pfnsetaccessattributecb ZePfnvirtualmemsetaccessattributecb
	Pfngetaccessattributecb ZePfnvirtualmemgetaccessattributecb
}

ZeVirtualMemCallbacks (ze_virtual_mem_callbacks_t) Table of VirtualMem callback functions pointers

type ZeVirtualMemFreeParams

type ZeVirtualMemFreeParams struct {
	Phcontext *ZeContextHandle
	Pptr      *unsafe.Pointer
	Psize     *uintptr
}

ZeVirtualMemFreeParams (ze_virtual_mem_free_params_t) Callback function parameters for zeVirtualMemFree / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeVirtualMemGetAccessAttributeParams

type ZeVirtualMemGetAccessAttributeParams struct {
	Phcontext *ZeContextHandle
	Pptr      *unsafe.Pointer
	Psize     *uintptr
	Paccess   **ZeMemoryAccessAttribute
	Poutsize  **uintptr
}

ZeVirtualMemGetAccessAttributeParams (ze_virtual_mem_get_access_attribute_params_t) Callback function parameters for zeVirtualMemGetAccessAttribute / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeVirtualMemMapParams

type ZeVirtualMemMapParams struct {
	Phcontext        *ZeContextHandle
	Pptr             *unsafe.Pointer
	Psize            *uintptr
	Phphysicalmemory *ZePhysicalMemHandle
	Poffset          *uintptr
	Paccess          *ZeMemoryAccessAttribute
}

ZeVirtualMemMapParams (ze_virtual_mem_map_params_t) Callback function parameters for zeVirtualMemMap / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeVirtualMemQueryPageSizeParams

type ZeVirtualMemQueryPageSizeParams struct {
	Phcontext *ZeContextHandle
	Phdevice  *ZeDeviceHandle
	Psize     *uintptr
	Ppagesize **uintptr
}

ZeVirtualMemQueryPageSizeParams (ze_virtual_mem_query_page_size_params_t) Callback function parameters for zeVirtualMemQueryPageSize / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeVirtualMemReserveParams

type ZeVirtualMemReserveParams struct {
	Phcontext *ZeContextHandle
	Ppstart   *unsafe.Pointer
	Psize     *uintptr
	Ppptr     **unsafe.Pointer
}

ZeVirtualMemReserveParams (ze_virtual_mem_reserve_params_t) Callback function parameters for zeVirtualMemReserve / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeVirtualMemSetAccessAttributeParams

type ZeVirtualMemSetAccessAttributeParams struct {
	Phcontext *ZeContextHandle
	Pptr      *unsafe.Pointer
	Psize     *uintptr
	Paccess   *ZeMemoryAccessAttribute
}

ZeVirtualMemSetAccessAttributeParams (ze_virtual_mem_set_access_attribute_params_t) Callback function parameters for zeVirtualMemSetAccessAttribute / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZeVirtualMemUnmapParams

type ZeVirtualMemUnmapParams struct {
	Phcontext *ZeContextHandle
	Pptr      *unsafe.Pointer
	Psize     *uintptr
}

ZeVirtualMemUnmapParams (ze_virtual_mem_unmap_params_t) Callback function parameters for zeVirtualMemUnmap / @details Each entry is a pointer to the parameter passed to the function; / allowing the callback the ability to modify the parameter's value

type ZesBaseCapability

type ZesBaseCapability struct {
	Stype ZesStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZesBaseCapability (zes_base_capability_t) Base for all capability types

type ZesBaseConfig

type ZesBaseConfig struct {
	Stype ZesStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZesBaseConfig (zes_base_config_t) Base for all config types

type ZesBaseDesc

type ZesBaseDesc struct {
	Stype ZesStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZesBaseDesc (zes_base_desc_t) Base for all descriptor types

type ZesBaseProperties

type ZesBaseProperties struct {
	Stype ZesStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZesBaseProperties (zes_base_properties_t) Base for all properties types

type ZesBaseState

type ZesBaseState struct {
	Stype ZesStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZesBaseState (zes_base_state_t) Base for all state types

type ZesControlProperty

type ZesControlProperty struct {
	Minvalue     float64 // Minvalue [out]  This provides information about the limits of the control value so that the driver can calculate the set of valid values.
	Maxvalue     float64 // Maxvalue [out]  This provides information about the limits of the control value so that the driver can calculate the set of valid values.
	Stepvalue    float64 // Stepvalue [out]  This provides information about the limits of the control value so that the driver can calculate the set of valid values.
	Refvalue     float64 // Refvalue [out] The reference value provides the anchor point, UIs can combine this with the user offset request to show the anticipated improvement.
	Defaultvalue float64 // Defaultvalue [out] The shipped out-of-box position of this control. Driver can request this value at any time to return to the out-of-box behavior.

}

ZesControlProperty (zes_control_property_t) Overclock Control properties / / @details / - Provides all the control capabilities supported by the device for the / overclock domain.

type ZesControlState

type ZesControlState uintptr

ZesControlState (zes_control_state_t) Overclock control states.

const (
	ZES_CONTROL_STATE_STATE_UNSET ZesControlState = 0 // ZES_CONTROL_STATE_STATE_UNSET No overclock control has not been changed by the driver since the last

	ZES_CONTROL_STATE_STATE_ACTIVE   ZesControlState = 2 // ZES_CONTROL_STATE_STATE_ACTIVE The overclock control has been set and it is active.
	ZES_CONTROL_STATE_STATE_DISABLED ZesControlState = 3 // ZES_CONTROL_STATE_STATE_DISABLED The overclock control value has been disabled due to the current power

	ZES_CONTROL_STATE_FORCE_UINT32 ZesControlState = 0x7fffffff // ZES_CONTROL_STATE_FORCE_UINT32 Value marking end of ZES_CONTROL_STATE_* ENUMs

)

type ZesDeviceAction

type ZesDeviceAction uintptr

ZesDeviceAction (zes_device_action_t) State Change Requirements

const (
	ZES_DEVICE_ACTION_NONE               ZesDeviceAction = 0          // ZES_DEVICE_ACTION_NONE No action.
	ZES_DEVICE_ACTION_WARM_CARD_RESET    ZesDeviceAction = 1          // ZES_DEVICE_ACTION_WARM_CARD_RESET Warm reset of the card.
	ZES_DEVICE_ACTION_COLD_CARD_RESET    ZesDeviceAction = 2          // ZES_DEVICE_ACTION_COLD_CARD_RESET Cold reset of the card.
	ZES_DEVICE_ACTION_COLD_SYSTEM_REBOOT ZesDeviceAction = 3          // ZES_DEVICE_ACTION_COLD_SYSTEM_REBOOT Cold reboot of the system.
	ZES_DEVICE_ACTION_FORCE_UINT32       ZesDeviceAction = 0x7fffffff // ZES_DEVICE_ACTION_FORCE_UINT32 Value marking end of ZES_DEVICE_ACTION_* ENUMs

)

type ZesDeviceEccDefaultPropertiesExt

type ZesDeviceEccDefaultPropertiesExt struct {
	Stype        ZesStructureType  // Stype [in] type of this structure
	Pnext        unsafe.Pointer    // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Defaultstate ZesDeviceEccState // Defaultstate [out] Default ECC state

}

ZesDeviceEccDefaultPropertiesExt (zes_device_ecc_default_properties_ext_t) This structure may be passed to ::zesDeviceGetEccState as pNext member / of ::zes_device_ecc_properties_t.

type ZesDeviceEccDefaultPropertiesExtVersion

type ZesDeviceEccDefaultPropertiesExtVersion uintptr

ZesDeviceEccDefaultPropertiesExtVersion (zes_device_ecc_default_properties_ext_version_t) Device ECC default properties Extension Version(s)

const (
	ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_VERSION_1_0          ZesDeviceEccDefaultPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_VERSION_1_0 version 1.0
	ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_VERSION_CURRENT      ZesDeviceEccDefaultPropertiesExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_VERSION_CURRENT latest known version
	ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_VERSION_FORCE_UINT32 ZesDeviceEccDefaultPropertiesExtVersion = 0x7fffffff                     // ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_VERSION_FORCE_UINT32 Value marking end of ZES_DEVICE_ECC_DEFAULT_PROPERTIES_EXT_VERSION_* ENUMs

)

type ZesDeviceEccDesc

type ZesDeviceEccDesc struct {
	Stype ZesStructureType  // Stype [in] type of this structure
	Pnext unsafe.Pointer    // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	State ZesDeviceEccState // State [out] ECC state

}

ZesDeviceEccDesc (zes_device_ecc_desc_t) ECC State Descriptor

type ZesDeviceEccProperties

type ZesDeviceEccProperties struct {
	Stype         ZesStructureType  // Stype [in] type of this structure
	Pnext         unsafe.Pointer    // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Currentstate  ZesDeviceEccState // Currentstate [out] Current ECC state
	Pendingstate  ZesDeviceEccState // Pendingstate [out] Pending ECC state
	Pendingaction ZesDeviceAction   // Pendingaction [out] Pending action

}

ZesDeviceEccProperties (zes_device_ecc_properties_t) ECC State

type ZesDeviceEccState

type ZesDeviceEccState uintptr

ZesDeviceEccState (zes_device_ecc_state_t) ECC State

const (
	ZES_DEVICE_ECC_STATE_UNAVAILABLE  ZesDeviceEccState = 0          // ZES_DEVICE_ECC_STATE_UNAVAILABLE None
	ZES_DEVICE_ECC_STATE_ENABLED      ZesDeviceEccState = 1          // ZES_DEVICE_ECC_STATE_ENABLED ECC enabled.
	ZES_DEVICE_ECC_STATE_DISABLED     ZesDeviceEccState = 2          // ZES_DEVICE_ECC_STATE_DISABLED ECC disabled.
	ZES_DEVICE_ECC_STATE_FORCE_UINT32 ZesDeviceEccState = 0x7fffffff // ZES_DEVICE_ECC_STATE_FORCE_UINT32 Value marking end of ZES_DEVICE_ECC_STATE_* ENUMs

)

type ZesDeviceExtProperties

type ZesDeviceExtProperties struct {
	Stype ZesStructureType       // Stype [in] type of this structure
	Pnext unsafe.Pointer         // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Uuid  ZesUuid                // Uuid [out] universal unique identifier. Note: uuid obtained from Sysman API is the same as from core API. Subdevices will have their own uuid.
	Type  ZesDeviceType          // Type [out] generic device type
	Flags ZesDevicePropertyFlags // Flags [out] 0 (none) or a valid combination of ::zes_device_property_flag_t

}

ZesDeviceExtProperties (zes_device_ext_properties_t) Device properties

type ZesDeviceHandle

type ZesDeviceHandle ZeDeviceHandle

ZesDeviceHandle (zes_device_handle_t) Handle of device object

type ZesDeviceProperties

type ZesDeviceProperties struct {
	Stype         ZesStructureType               // Stype [in] type of this structure
	Pnext         unsafe.Pointer                 // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Core          ZeDeviceProperties             // Core [out] (Deprecated, use ::zes_uuid_t in the extended structure) Core device properties
	Numsubdevices uint32                         // Numsubdevices [out] Number of sub-devices. A value of 0 indicates that this device doesn't have sub-devices.
	Serialnumber  [ZES_STRING_PROPERTY_SIZE]byte // Serialnumber [out] Manufacturing serial number (NULL terminated string value). This value is intended to reflect the Part ID/SoC ID assigned by manufacturer that is unique for a SoC. Will be set to the string "unknown" if this cannot be determined for the device.
	Boardnumber   [ZES_STRING_PROPERTY_SIZE]byte // Boardnumber [out] Manufacturing board number (NULL terminated string value). Alternatively "boardSerialNumber", this value is intended to reflect the string printed on board label by manufacturer. Will be set to the string "unknown" if this cannot be determined for the device.
	Brandname     [ZES_STRING_PROPERTY_SIZE]byte // Brandname [out] Brand name of the device (NULL terminated string value). Will be set to the string "unknown" if this cannot be determined for the device.
	Modelname     [ZES_STRING_PROPERTY_SIZE]byte // Modelname [out] Model name of the device (NULL terminated string value). Will be set to the string "unknown" if this cannot be determined for the device.
	Vendorname    [ZES_STRING_PROPERTY_SIZE]byte // Vendorname [out] Vendor name of the device (NULL terminated string value). Will be set to the string "unknown" if this cannot be determined for the device.
	Driverversion [ZES_STRING_PROPERTY_SIZE]byte // Driverversion [out] Installed driver version (NULL terminated string value). Will be set to the string "unknown" if this cannot be determined for the device.

}

ZesDeviceProperties (zes_device_properties_t) Device properties

type ZesDevicePropertyFlags

type ZesDevicePropertyFlags uint32

ZesDevicePropertyFlags (zes_device_property_flags_t) Supported device property flags

const (
	ZES_DEVICE_PROPERTY_FLAG_INTEGRATED     ZesDevicePropertyFlags = (1 << 0)   // ZES_DEVICE_PROPERTY_FLAG_INTEGRATED Device is integrated with the Host.
	ZES_DEVICE_PROPERTY_FLAG_SUBDEVICE      ZesDevicePropertyFlags = (1 << 1)   // ZES_DEVICE_PROPERTY_FLAG_SUBDEVICE Device handle used for query represents a sub-device.
	ZES_DEVICE_PROPERTY_FLAG_ECC            ZesDevicePropertyFlags = (1 << 2)   // ZES_DEVICE_PROPERTY_FLAG_ECC Device supports error correction memory access.
	ZES_DEVICE_PROPERTY_FLAG_ONDEMANDPAGING ZesDevicePropertyFlags = (1 << 3)   // ZES_DEVICE_PROPERTY_FLAG_ONDEMANDPAGING Device supports on-demand page-faulting.
	ZES_DEVICE_PROPERTY_FLAG_FORCE_UINT32   ZesDevicePropertyFlags = 0x7fffffff // ZES_DEVICE_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZES_DEVICE_PROPERTY_FLAG_* ENUMs

)

type ZesDeviceState

type ZesDeviceState struct {
	Stype    ZesStructureType    // Stype [in] type of this structure
	Pnext    unsafe.Pointer      // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Reset    ZesResetReasonFlags // Reset [out] Indicates if the device needs to be reset and for what reasons. returns 0 (none) or combination of ::zes_reset_reason_flag_t
	Repaired ZesRepairStatus     // Repaired [out] Indicates if the device has been repaired

}

ZesDeviceState (zes_device_state_t) Device state

type ZesDeviceType

type ZesDeviceType uintptr

ZesDeviceType (zes_device_type_t) Supported device types

const (
	ZES_DEVICE_TYPE_GPU          ZesDeviceType = 1          // ZES_DEVICE_TYPE_GPU Graphics Processing Unit
	ZES_DEVICE_TYPE_CPU          ZesDeviceType = 2          // ZES_DEVICE_TYPE_CPU Central Processing Unit
	ZES_DEVICE_TYPE_FPGA         ZesDeviceType = 3          // ZES_DEVICE_TYPE_FPGA Field Programmable Gate Array
	ZES_DEVICE_TYPE_MCA          ZesDeviceType = 4          // ZES_DEVICE_TYPE_MCA Memory Copy Accelerator
	ZES_DEVICE_TYPE_VPU          ZesDeviceType = 5          // ZES_DEVICE_TYPE_VPU Vision Processing Unit
	ZES_DEVICE_TYPE_FORCE_UINT32 ZesDeviceType = 0x7fffffff // ZES_DEVICE_TYPE_FORCE_UINT32 Value marking end of ZES_DEVICE_TYPE_* ENUMs

)

type ZesDiagHandle

type ZesDiagHandle uintptr

ZesDiagHandle (zes_diag_handle_t) Handle for a Sysman device diagnostics test suite

type ZesDiagProperties

type ZesDiagProperties struct {
	Stype       ZesStructureType               // Stype [in] type of this structure
	Pnext       unsafe.Pointer                 // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice ZeBool                         // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid uint32                         // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Name        [ZES_STRING_PROPERTY_SIZE]byte // Name [out] Name of the diagnostics test suite
	Havetests   ZeBool                         // Havetests [out] Indicates if this test suite has individual tests which can be run separately (use the function ::zesDiagnosticsGetTests() to get the list of these tests)

}

ZesDiagProperties (zes_diag_properties_t) Diagnostics test suite properties

type ZesDiagResult

type ZesDiagResult uintptr

ZesDiagResult (zes_diag_result_t) Diagnostic results

const (
	ZES_DIAG_RESULT_NO_ERRORS         ZesDiagResult = 0 // ZES_DIAG_RESULT_NO_ERRORS Diagnostic completed without finding errors to repair
	ZES_DIAG_RESULT_ABORT             ZesDiagResult = 1 // ZES_DIAG_RESULT_ABORT Diagnostic had problems running tests
	ZES_DIAG_RESULT_FAIL_CANT_REPAIR  ZesDiagResult = 2 // ZES_DIAG_RESULT_FAIL_CANT_REPAIR Diagnostic had problems setting up repairs
	ZES_DIAG_RESULT_REBOOT_FOR_REPAIR ZesDiagResult = 3 // ZES_DIAG_RESULT_REBOOT_FOR_REPAIR Diagnostics found errors, setup for repair and reboot is required to

	ZES_DIAG_RESULT_FORCE_UINT32 ZesDiagResult = 0x7fffffff // ZES_DIAG_RESULT_FORCE_UINT32 Value marking end of ZES_DIAG_RESULT_* ENUMs

)

type ZesDiagTest

type ZesDiagTest struct {
	Index uint32                         // Index [out] Index of the test
	Name  [ZES_STRING_PROPERTY_SIZE]byte // Name [out] Name of the test

}

ZesDiagTest (zes_diag_test_t) Diagnostic test

type ZesDriverExtensionProperties

type ZesDriverExtensionProperties struct {
	Name    [ZES_MAX_EXTENSION_NAME]byte // Name [out] extension name
	Version uint32                       // Version [out] extension version using ::ZE_MAKE_VERSION

}

ZesDriverExtensionProperties (zes_driver_extension_properties_t) Extension properties queried using ::zesDriverGetExtensionProperties

type ZesDriverHandle

type ZesDriverHandle ZeDriverHandle

ZesDriverHandle (zes_driver_handle_t) Handle to a driver instance

type ZesEnergyThreshold

type ZesEnergyThreshold struct {
	Enable    ZeBool  // Enable [in,out] Indicates if the energy threshold is enabled.
	Threshold float64 // Threshold [in,out] The energy threshold in Joules. Will be 0.0 if no threshold has been set.
	Processid uint32  // Processid [in,out] The host process ID that set the energy threshold. Will be 0xFFFFFFFF if no threshold has been set.

}

ZesEnergyThreshold (zes_energy_threshold_t) Energy threshold / / @details / - .

type ZesEngineActivityExtVersion

type ZesEngineActivityExtVersion uintptr

ZesEngineActivityExtVersion (zes_engine_activity_ext_version_t) Engine Activity Extension Version(s)

const (
	ZES_ENGINE_ACTIVITY_EXT_VERSION_1_0          ZesEngineActivityExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_ENGINE_ACTIVITY_EXT_VERSION_1_0 version 1.0
	ZES_ENGINE_ACTIVITY_EXT_VERSION_CURRENT      ZesEngineActivityExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_ENGINE_ACTIVITY_EXT_VERSION_CURRENT latest known version
	ZES_ENGINE_ACTIVITY_EXT_VERSION_FORCE_UINT32 ZesEngineActivityExtVersion = 0x7fffffff                     // ZES_ENGINE_ACTIVITY_EXT_VERSION_FORCE_UINT32 Value marking end of ZES_ENGINE_ACTIVITY_EXT_VERSION_* ENUMs

)

type ZesEngineExtProperties

type ZesEngineExtProperties struct {
	Stype                          ZesStructureType // Stype [in] type of this structure
	Pnext                          unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Countofvirtualfunctioninstance uint32           // Countofvirtualfunctioninstance [out] Number of Virtual Function(VF) instances associated with engine to monitor the utilization of hardware across all Virtual Function from a Physical Function (PF) instance. These VF-by-VF views should provide engine group and individual engine level granularity. This count represents the number of VF instances that are actively using the resource represented by the engine handle.

}

ZesEngineExtProperties (zes_engine_ext_properties_t) Extension properties related to Engine Groups / / @details / - This structure may be passed to ::zesEngineGetProperties by having the / pNext member of ::zes_engine_properties_t point at this struct. / - Used for SRIOV per Virtual Function device utilization by / ::zes_engine_group_t

type ZesEngineGroup

type ZesEngineGroup uintptr

ZesEngineGroup (zes_engine_group_t) Accelerator engine groups

const (
	ZES_ENGINE_GROUP_ALL         ZesEngineGroup = 0 // ZES_ENGINE_GROUP_ALL Access information about all engines combined.
	ZES_ENGINE_GROUP_COMPUTE_ALL ZesEngineGroup = 1 // ZES_ENGINE_GROUP_COMPUTE_ALL Access information about all compute engines combined. Compute engines

	ZES_ENGINE_GROUP_MEDIA_ALL      ZesEngineGroup = 2 // ZES_ENGINE_GROUP_MEDIA_ALL Access information about all media engines combined.
	ZES_ENGINE_GROUP_COPY_ALL       ZesEngineGroup = 3 // ZES_ENGINE_GROUP_COPY_ALL Access information about all copy (blitter) engines combined.
	ZES_ENGINE_GROUP_COMPUTE_SINGLE ZesEngineGroup = 4 // ZES_ENGINE_GROUP_COMPUTE_SINGLE Access information about a single compute engine - this is an engine

	ZES_ENGINE_GROUP_RENDER_SINGLE ZesEngineGroup = 5 // ZES_ENGINE_GROUP_RENDER_SINGLE Access information about a single render engine - this is an engine

	ZES_ENGINE_GROUP_MEDIA_DECODE_SINGLE ZesEngineGroup = 6 // ZES_ENGINE_GROUP_MEDIA_DECODE_SINGLE [DEPRECATED] No longer supported.
	ZES_ENGINE_GROUP_MEDIA_ENCODE_SINGLE ZesEngineGroup = 7 // ZES_ENGINE_GROUP_MEDIA_ENCODE_SINGLE [DEPRECATED] No longer supported.
	ZES_ENGINE_GROUP_COPY_SINGLE         ZesEngineGroup = 8 // ZES_ENGINE_GROUP_COPY_SINGLE Access information about a single media encode engine. Note that

	ZES_ENGINE_GROUP_MEDIA_ENHANCEMENT_SINGLE ZesEngineGroup = 9 // ZES_ENGINE_GROUP_MEDIA_ENHANCEMENT_SINGLE Access information about a single media enhancement engine. Note that

	ZES_ENGINE_GROUP_3D_SINGLE             ZesEngineGroup = 10 // ZES_ENGINE_GROUP_3D_SINGLE [DEPRECATED] No longer supported.
	ZES_ENGINE_GROUP_3D_RENDER_COMPUTE_ALL ZesEngineGroup = 11 // ZES_ENGINE_GROUP_3D_RENDER_COMPUTE_ALL [DEPRECATED] No longer supported.
	ZES_ENGINE_GROUP_RENDER_ALL            ZesEngineGroup = 12 // ZES_ENGINE_GROUP_RENDER_ALL Access information about all render engines combined. Render engines

	ZES_ENGINE_GROUP_3D_ALL             ZesEngineGroup = 13 // ZES_ENGINE_GROUP_3D_ALL [DEPRECATED] No longer supported.
	ZES_ENGINE_GROUP_MEDIA_CODEC_SINGLE ZesEngineGroup = 14 // ZES_ENGINE_GROUP_MEDIA_CODEC_SINGLE Access information about a single media engine. Note that single

	ZES_ENGINE_GROUP_FORCE_UINT32 ZesEngineGroup = 0x7fffffff // ZES_ENGINE_GROUP_FORCE_UINT32 Value marking end of ZES_ENGINE_GROUP_* ENUMs

)

type ZesEngineHandle

type ZesEngineHandle uintptr

ZesEngineHandle (zes_engine_handle_t) Handle for a Sysman device engine group

type ZesEngineProperties

type ZesEngineProperties struct {
	Stype       ZesStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type        ZesEngineGroup   // Type [out] The engine group
	Onsubdevice ZeBool           // Onsubdevice [out] True if this resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device

}

ZesEngineProperties (zes_engine_properties_t) Engine group properties

type ZesEngineStats

type ZesEngineStats struct {
	Activetime uint64 // Activetime [out] Monotonic counter where the resource is actively running workloads.
	Timestamp  uint64 // Timestamp [out] Monotonic counter when activeTime counter was sampled.

}

ZesEngineStats (zes_engine_stats_t) Engine activity counters / / @details / - Percent utilization is calculated by taking two snapshots (s1, s2) and / using the equation: %util = (s2.activeTime - s1.activeTime) / / (s2.timestamp - s1.timestamp) / - The `activeTime` time units are implementation-specific since the / value is only intended to be used for calculating utilization / percentage. / - The `timestamp` should only be used to calculate delta between / snapshots of this structure. / - The application should never take the delta of `timestamp` with the / timestamp from a different structure since they are not guaranteed to / have the same base. / - When taking the delta, the difference between `timestamp` samples / could be `0`, if the frequency of sampling the snapshots is higher / than the frequency of the timestamp update. / - The absolute value of `timestamp` is only valid during within the / application and may be different on the next execution.

type ZesEngineTypeFlags

type ZesEngineTypeFlags uint32

ZesEngineTypeFlags (zes_engine_type_flags_t) Types of accelerator engines

const (
	ZES_ENGINE_TYPE_FLAG_OTHER        ZesEngineTypeFlags = (1 << 0)   // ZES_ENGINE_TYPE_FLAG_OTHER Undefined types of accelerators.
	ZES_ENGINE_TYPE_FLAG_COMPUTE      ZesEngineTypeFlags = (1 << 1)   // ZES_ENGINE_TYPE_FLAG_COMPUTE Engines that process compute kernels only (no 3D content).
	ZES_ENGINE_TYPE_FLAG_3D           ZesEngineTypeFlags = (1 << 2)   // ZES_ENGINE_TYPE_FLAG_3D Engines that process 3D content only (no compute kernels).
	ZES_ENGINE_TYPE_FLAG_MEDIA        ZesEngineTypeFlags = (1 << 3)   // ZES_ENGINE_TYPE_FLAG_MEDIA Engines that process media workloads.
	ZES_ENGINE_TYPE_FLAG_DMA          ZesEngineTypeFlags = (1 << 4)   // ZES_ENGINE_TYPE_FLAG_DMA Engines that copy blocks of data.
	ZES_ENGINE_TYPE_FLAG_RENDER       ZesEngineTypeFlags = (1 << 5)   // ZES_ENGINE_TYPE_FLAG_RENDER Engines that can process both 3D content and compute kernels.
	ZES_ENGINE_TYPE_FLAG_FORCE_UINT32 ZesEngineTypeFlags = 0x7fffffff // ZES_ENGINE_TYPE_FLAG_FORCE_UINT32 Value marking end of ZES_ENGINE_TYPE_FLAG_* ENUMs

)

type ZesEventTypeFlags

type ZesEventTypeFlags uint32

ZesEventTypeFlags (zes_event_type_flags_t) Event types

const (
	ZES_EVENT_TYPE_FLAG_DEVICE_DETACH ZesEventTypeFlags = (1 << 0) // ZES_EVENT_TYPE_FLAG_DEVICE_DETACH Event is triggered when the device is no longer available (due to a

	ZES_EVENT_TYPE_FLAG_DEVICE_ATTACH            ZesEventTypeFlags = (1 << 1) // ZES_EVENT_TYPE_FLAG_DEVICE_ATTACH Event is triggered after the device is available again.
	ZES_EVENT_TYPE_FLAG_DEVICE_SLEEP_STATE_ENTER ZesEventTypeFlags = (1 << 2) // ZES_EVENT_TYPE_FLAG_DEVICE_SLEEP_STATE_ENTER Event is triggered when the driver is about to put the device into a

	ZES_EVENT_TYPE_FLAG_DEVICE_SLEEP_STATE_EXIT ZesEventTypeFlags = (1 << 3) // ZES_EVENT_TYPE_FLAG_DEVICE_SLEEP_STATE_EXIT Event is triggered when the driver is waking the device up from a deep

	ZES_EVENT_TYPE_FLAG_FREQ_THROTTLED           ZesEventTypeFlags = (1 << 4) // ZES_EVENT_TYPE_FLAG_FREQ_THROTTLED Event is triggered when the frequency starts being throttled
	ZES_EVENT_TYPE_FLAG_ENERGY_THRESHOLD_CROSSED ZesEventTypeFlags = (1 << 5) // ZES_EVENT_TYPE_FLAG_ENERGY_THRESHOLD_CROSSED Event is triggered when the energy consumption threshold is reached

	ZES_EVENT_TYPE_FLAG_TEMP_CRITICAL ZesEventTypeFlags = (1 << 6) // ZES_EVENT_TYPE_FLAG_TEMP_CRITICAL Event is triggered when the critical temperature is reached (use

	ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD1 ZesEventTypeFlags = (1 << 7) // ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD1 Event is triggered when the temperature crosses threshold 1 (use

	ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD2 ZesEventTypeFlags = (1 << 8) // ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD2 Event is triggered when the temperature crosses threshold 2 (use

	ZES_EVENT_TYPE_FLAG_MEM_HEALTH             ZesEventTypeFlags = (1 << 9)  // ZES_EVENT_TYPE_FLAG_MEM_HEALTH Event is triggered when the health of device memory changes.
	ZES_EVENT_TYPE_FLAG_FABRIC_PORT_HEALTH     ZesEventTypeFlags = (1 << 10) // ZES_EVENT_TYPE_FLAG_FABRIC_PORT_HEALTH Event is triggered when the health of fabric ports change.
	ZES_EVENT_TYPE_FLAG_PCI_LINK_HEALTH        ZesEventTypeFlags = (1 << 11) // ZES_EVENT_TYPE_FLAG_PCI_LINK_HEALTH Event is triggered when the health of the PCI link changes.
	ZES_EVENT_TYPE_FLAG_RAS_CORRECTABLE_ERRORS ZesEventTypeFlags = (1 << 12) // ZES_EVENT_TYPE_FLAG_RAS_CORRECTABLE_ERRORS Event is triggered when accelerator RAS correctable errors cross

	ZES_EVENT_TYPE_FLAG_RAS_UNCORRECTABLE_ERRORS ZesEventTypeFlags = (1 << 13) // ZES_EVENT_TYPE_FLAG_RAS_UNCORRECTABLE_ERRORS Event is triggered when accelerator RAS uncorrectable errors cross

	ZES_EVENT_TYPE_FLAG_DEVICE_RESET_REQUIRED ZesEventTypeFlags = (1 << 14) // ZES_EVENT_TYPE_FLAG_DEVICE_RESET_REQUIRED Event is triggered when the device needs to be reset (use

	ZES_EVENT_TYPE_FLAG_SURVIVABILITY_MODE_DETECTED ZesEventTypeFlags = (1 << 15)  // ZES_EVENT_TYPE_FLAG_SURVIVABILITY_MODE_DETECTED Event is triggered when graphics driver encounter an error condition.
	ZES_EVENT_TYPE_FLAG_FORCE_UINT32                ZesEventTypeFlags = 0x7fffffff // ZES_EVENT_TYPE_FLAG_FORCE_UINT32 Value marking end of ZES_EVENT_TYPE_FLAG_* ENUMs

)

type ZesFabricLinkType

type ZesFabricLinkType struct {
	Desc [ZES_MAX_FABRIC_LINK_TYPE_SIZE]byte // Desc [out] Description of link technology. Will be set to the string "unkown" if this cannot be determined for this link.

}

ZesFabricLinkType (zes_fabric_link_type_t) Provides information about the fabric link attached to a port

type ZesFabricPortConfig

type ZesFabricPortConfig struct {
	Stype     ZesStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Enabled   ZeBool           // Enabled [in,out] Port is configured up/down
	Beaconing ZeBool           // Beaconing [in,out] Beaconing is configured on/off

}

ZesFabricPortConfig (zes_fabric_port_config_t) Fabric port configuration

type ZesFabricPortErrorCounters

type ZesFabricPortErrorCounters struct {
	Stype            ZesStructureType // Stype [in] type of this structure
	Pnext            unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Linkfailurecount uint64           // Linkfailurecount [out] Link Failure Error Count reported per port
	Fwcommerrorcount uint64           // Fwcommerrorcount [out] Firmware Communication Error Count reported per device
	Fwerrorcount     uint64           // Fwerrorcount [out] Firmware reported Error Count reported per device
	Linkdegradecount uint64           // Linkdegradecount [out] Link Degrade Error Count reported per port

}

ZesFabricPortErrorCounters (zes_fabric_port_error_counters_t) Fabric Port Error Counters

type ZesFabricPortFailureFlags

type ZesFabricPortFailureFlags uint32

ZesFabricPortFailureFlags (zes_fabric_port_failure_flags_t) Fabric port failure reasons

const (
	ZES_FABRIC_PORT_FAILURE_FLAG_FAILED ZesFabricPortFailureFlags = (1 << 0) // ZES_FABRIC_PORT_FAILURE_FLAG_FAILED A previously operating link has failed. Hardware will automatically

	ZES_FABRIC_PORT_FAILURE_FLAG_TRAINING_TIMEOUT ZesFabricPortFailureFlags = (1 << 1) // ZES_FABRIC_PORT_FAILURE_FLAG_TRAINING_TIMEOUT A connection has not been established within an expected time.

	ZES_FABRIC_PORT_FAILURE_FLAG_FLAPPING ZesFabricPortFailureFlags = (1 << 2) // ZES_FABRIC_PORT_FAILURE_FLAG_FLAPPING Port has excessively trained and then transitioned down for some

	ZES_FABRIC_PORT_FAILURE_FLAG_FORCE_UINT32 ZesFabricPortFailureFlags = 0x7fffffff // ZES_FABRIC_PORT_FAILURE_FLAG_FORCE_UINT32 Value marking end of ZES_FABRIC_PORT_FAILURE_FLAG_* ENUMs

)

type ZesFabricPortHandle

type ZesFabricPortHandle uintptr

ZesFabricPortHandle (zes_fabric_port_handle_t) Handle for a Sysman fabric port

type ZesFabricPortId

type ZesFabricPortId struct {
	Fabricid   uint32 // Fabricid [out] Unique identifier for the fabric end-point
	Attachid   uint32 // Attachid [out] Unique identifier for the device attachment point
	Portnumber uint8  // Portnumber [out] The logical port number (this is typically marked somewhere on the physical device)

}

ZesFabricPortId (zes_fabric_port_id_t) Unique identifier for a fabric port / / @details / - This not a universal identifier. The identified is garanteed to be / unique for the current hardware configuration of the system. Changes / in the hardware may result in a different identifier for a given port. / - The main purpose of this identifier to build up an instantaneous / topology map of system connectivity. An application should enumerate / all fabric ports and match the `remotePortId` member of / ::zes_fabric_port_state_t to the `portId` member of / ::zes_fabric_port_properties_t.

type ZesFabricPortProperties

type ZesFabricPortProperties struct {
	Stype       ZesStructureType                     // Stype [in] type of this structure
	Pnext       unsafe.Pointer                       // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Model       [ZES_MAX_FABRIC_PORT_MODEL_SIZE]byte // Model [out] Description of port technology. Will be set to the string "unkown" if this cannot be determined for this port.
	Onsubdevice ZeBool                               // Onsubdevice [out] True if the port is located on a sub-device; false means that the port is on the device of the calling Sysman handle
	Subdeviceid uint32                               // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Portid      ZesFabricPortId                      // Portid [out] The unique port identifier
	Maxrxspeed  ZesFabricPortSpeed                   // Maxrxspeed [out] Maximum speed supported by the receive side of the port (sum of all lanes)
	Maxtxspeed  ZesFabricPortSpeed                   // Maxtxspeed [out] Maximum speed supported by the transmit side of the port (sum of all lanes)

}

ZesFabricPortProperties (zes_fabric_port_properties_t) Fabric port properties

type ZesFabricPortQualIssueFlags

type ZesFabricPortQualIssueFlags uint32

ZesFabricPortQualIssueFlags (zes_fabric_port_qual_issue_flags_t) Fabric port quality degradation reasons

const (
	ZES_FABRIC_PORT_QUAL_ISSUE_FLAG_LINK_ERRORS  ZesFabricPortQualIssueFlags = (1 << 0)   // ZES_FABRIC_PORT_QUAL_ISSUE_FLAG_LINK_ERRORS Excessive link errors are occurring
	ZES_FABRIC_PORT_QUAL_ISSUE_FLAG_SPEED        ZesFabricPortQualIssueFlags = (1 << 1)   // ZES_FABRIC_PORT_QUAL_ISSUE_FLAG_SPEED There is a degradation in the bitrate and/or width of the link
	ZES_FABRIC_PORT_QUAL_ISSUE_FLAG_FORCE_UINT32 ZesFabricPortQualIssueFlags = 0x7fffffff // ZES_FABRIC_PORT_QUAL_ISSUE_FLAG_FORCE_UINT32 Value marking end of ZES_FABRIC_PORT_QUAL_ISSUE_FLAG_* ENUMs

)

type ZesFabricPortSpeed

type ZesFabricPortSpeed struct {
	Bitrate int64 // Bitrate [out] Bits/sec that the link is operating at. A value of -1 means that this property is unknown.
	Width   int32 // Width [out] The number of lanes. A value of -1 means that this property is unknown.

}

ZesFabricPortSpeed (zes_fabric_port_speed_t) Fabric port speed in one direction

type ZesFabricPortState

type ZesFabricPortState struct {
	Stype          ZesStructureType            // Stype [in] type of this structure
	Pnext          unsafe.Pointer              // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Status         ZesFabricPortStatus         // Status [out] The current status of the port
	Qualityissues  ZesFabricPortQualIssueFlags // Qualityissues [out] If status is ::ZES_FABRIC_PORT_STATUS_DEGRADED, then this gives a combination of ::zes_fabric_port_qual_issue_flag_t for quality issues that have been detected; otherwise, 0 indicates there are no quality issues with the link at this time.
	Failurereasons ZesFabricPortFailureFlags   // Failurereasons [out] If status is ::ZES_FABRIC_PORT_STATUS_FAILED, then this gives a combination of ::zes_fabric_port_failure_flag_t for reasons for the connection instability; otherwise, 0 indicates there are no connection stability issues at this time.
	Remoteportid   ZesFabricPortId             // Remoteportid [out] The unique port identifier for the remote connection point if status is ::ZES_FABRIC_PORT_STATUS_HEALTHY, ::ZES_FABRIC_PORT_STATUS_DEGRADED or ::ZES_FABRIC_PORT_STATUS_FAILED
	Rxspeed        ZesFabricPortSpeed          // Rxspeed [out] Current maximum receive speed (sum of all lanes)
	Txspeed        ZesFabricPortSpeed          // Txspeed [out] Current maximum transmit speed (sum of all lanes)

}

ZesFabricPortState (zes_fabric_port_state_t) Fabric port state

type ZesFabricPortStatus

type ZesFabricPortStatus uintptr

ZesFabricPortStatus (zes_fabric_port_status_t) Fabric port status

const (
	ZES_FABRIC_PORT_STATUS_UNKNOWN  ZesFabricPortStatus = 0 // ZES_FABRIC_PORT_STATUS_UNKNOWN The port status cannot be determined
	ZES_FABRIC_PORT_STATUS_HEALTHY  ZesFabricPortStatus = 1 // ZES_FABRIC_PORT_STATUS_HEALTHY The port is up and operating as expected
	ZES_FABRIC_PORT_STATUS_DEGRADED ZesFabricPortStatus = 2 // ZES_FABRIC_PORT_STATUS_DEGRADED The port is up but has quality and/or speed degradation
	ZES_FABRIC_PORT_STATUS_FAILED   ZesFabricPortStatus = 3 // ZES_FABRIC_PORT_STATUS_FAILED Port connection instabilities are preventing workloads making forward

	ZES_FABRIC_PORT_STATUS_DISABLED     ZesFabricPortStatus = 4          // ZES_FABRIC_PORT_STATUS_DISABLED The port is configured down
	ZES_FABRIC_PORT_STATUS_FORCE_UINT32 ZesFabricPortStatus = 0x7fffffff // ZES_FABRIC_PORT_STATUS_FORCE_UINT32 Value marking end of ZES_FABRIC_PORT_STATUS_* ENUMs

)

type ZesFabricPortThroughput

type ZesFabricPortThroughput struct {
	Timestamp uint64 // Timestamp [out] Monotonic timestamp counter in microseconds when the measurement was made. This timestamp should only be used to calculate delta time between snapshots of this structure. Never take the delta of this timestamp with the timestamp from a different structure since they are not guaranteed to have the same base. The absolute value of the timestamp is only valid during within the application and may be different on the next execution.
	Rxcounter uint64 // Rxcounter [out] Monotonic counter for the number of bytes received (sum of all lanes). This includes all protocol overhead, not only the GPU traffic.
	Txcounter uint64 // Txcounter [out] Monotonic counter for the number of bytes transmitted (sum of all lanes). This includes all protocol overhead, not only the GPU traffic.

}

ZesFabricPortThroughput (zes_fabric_port_throughput_t) Fabric port throughput.

type ZesFanConfig

type ZesFanConfig struct {
	Stype      ZesStructureType // Stype [in] type of this structure
	Pnext      unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Mode       ZesFanSpeedMode  // Mode [in,out] The fan speed mode (fixed, temp-speed table)
	Speedfixed ZesFanSpeed      // Speedfixed [in,out] The current fixed fan speed setting
	Speedtable ZesFanSpeedTable // Speedtable [out] A table containing temperature/speed pairs

}

ZesFanConfig (zes_fan_config_t) Fan configuration

type ZesFanHandle

type ZesFanHandle uintptr

ZesFanHandle (zes_fan_handle_t) Handle for a Sysman device fan

type ZesFanProperties

type ZesFanProperties struct {
	Stype          ZesStructureType // Stype [in] type of this structure
	Pnext          unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice    ZeBool           // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid    uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Cancontrol     ZeBool           // Cancontrol [out] Indicates if software can control the fan speed assuming the user has permissions
	Supportedmodes uint32           // Supportedmodes [out] Bitfield of supported fan configuration modes (1<<::zes_fan_speed_mode_t)
	Supportedunits uint32           // Supportedunits [out] Bitfield of supported fan speed units (1<<::zes_fan_speed_units_t)
	Maxrpm         int32            // Maxrpm [out] The maximum RPM of the fan. A value of -1 means that this property is unknown.
	Maxpoints      int32            // Maxpoints [out] The maximum number of points in the fan temp/speed table. A value of -1 means that this fan doesn't support providing a temp/speed table.

}

ZesFanProperties (zes_fan_properties_t) Fan properties

type ZesFanSpeed

type ZesFanSpeed struct {
	Speed int32            // Speed [in,out] The speed of the fan. On output, a value of -1 indicates that there is no fixed fan speed setting.
	Units ZesFanSpeedUnits // Units [in,out] The units that the fan speed is expressed in. On output, if fan speed is -1 then units should be ignored.

}

ZesFanSpeed (zes_fan_speed_t) Fan speed

type ZesFanSpeedMode

type ZesFanSpeedMode uintptr

ZesFanSpeedMode (zes_fan_speed_mode_t) Fan resource speed mode

const (
	ZES_FAN_SPEED_MODE_DEFAULT ZesFanSpeedMode = 0 // ZES_FAN_SPEED_MODE_DEFAULT The fan speed is operating using the hardware default settings
	ZES_FAN_SPEED_MODE_FIXED   ZesFanSpeedMode = 1 // ZES_FAN_SPEED_MODE_FIXED The fan speed is currently set to a fixed value
	ZES_FAN_SPEED_MODE_TABLE   ZesFanSpeedMode = 2 // ZES_FAN_SPEED_MODE_TABLE The fan speed is currently controlled dynamically by hardware based on

	ZES_FAN_SPEED_MODE_FORCE_UINT32 ZesFanSpeedMode = 0x7fffffff // ZES_FAN_SPEED_MODE_FORCE_UINT32 Value marking end of ZES_FAN_SPEED_MODE_* ENUMs

)

type ZesFanSpeedTable

type ZesFanSpeedTable struct {
	Numpoints int32                                          // Numpoints [in,out] The number of valid points in the fan speed table. 0 means that there is no fan speed table configured. -1 means that a fan speed table is not supported by the hardware.
	Table     [ZES_FAN_TEMP_SPEED_PAIR_COUNT]ZesFanTempSpeed // Table [in,out] Array of temperature/fan speed pairs. The table is ordered based on temperature from lowest to highest.

}

ZesFanSpeedTable (zes_fan_speed_table_t) Fan speed table

type ZesFanSpeedUnits

type ZesFanSpeedUnits uintptr

ZesFanSpeedUnits (zes_fan_speed_units_t) Fan speed units

const (
	ZES_FAN_SPEED_UNITS_RPM          ZesFanSpeedUnits = 0          // ZES_FAN_SPEED_UNITS_RPM The fan speed is in units of revolutions per minute (rpm)
	ZES_FAN_SPEED_UNITS_PERCENT      ZesFanSpeedUnits = 1          // ZES_FAN_SPEED_UNITS_PERCENT The fan speed is a percentage of the maximum speed of the fan
	ZES_FAN_SPEED_UNITS_FORCE_UINT32 ZesFanSpeedUnits = 0x7fffffff // ZES_FAN_SPEED_UNITS_FORCE_UINT32 Value marking end of ZES_FAN_SPEED_UNITS_* ENUMs

)

type ZesFanTempSpeed

type ZesFanTempSpeed struct {
	Temperature uint32      // Temperature [in,out] Temperature in degrees Celsius.
	Speed       ZesFanSpeed // Speed [in,out] The speed of the fan

}

ZesFanTempSpeed (zes_fan_temp_speed_t) Fan temperature/speed pair

type ZesFirmwareHandle

type ZesFirmwareHandle uintptr

ZesFirmwareHandle (zes_firmware_handle_t) Handle for a Sysman device firmware

type ZesFirmwareProperties

type ZesFirmwareProperties struct {
	Stype       ZesStructureType               // Stype [in] type of this structure
	Pnext       unsafe.Pointer                 // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice ZeBool                         // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid uint32                         // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Cancontrol  ZeBool                         // Cancontrol [out] Indicates if software can flash the firmware assuming the user has permissions
	Name        [ZES_STRING_PROPERTY_SIZE]byte // Name [out] NULL terminated string value. The string "unknown" will be returned if this property cannot be determined.
	Version     [ZES_STRING_PROPERTY_SIZE]byte // Version [out] NULL terminated string value. The string "unknown" will be returned if this property cannot be determined.

}

ZesFirmwareProperties (zes_firmware_properties_t) Firmware properties

type ZesFirmwareSecurityExpVersion

type ZesFirmwareSecurityExpVersion uintptr

ZesFirmwareSecurityExpVersion (zes_firmware_security_exp_version_t) Firmware security version Extension Version(s)

const (
	ZES_FIRMWARE_SECURITY_EXP_VERSION_1_0          ZesFirmwareSecurityExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_FIRMWARE_SECURITY_EXP_VERSION_1_0 version 1.0
	ZES_FIRMWARE_SECURITY_EXP_VERSION_CURRENT      ZesFirmwareSecurityExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_FIRMWARE_SECURITY_EXP_VERSION_CURRENT latest known version
	ZES_FIRMWARE_SECURITY_EXP_VERSION_FORCE_UINT32 ZesFirmwareSecurityExpVersion = 0x7fffffff                     // ZES_FIRMWARE_SECURITY_EXP_VERSION_FORCE_UINT32 Value marking end of ZES_FIRMWARE_SECURITY_EXP_VERSION_* ENUMs

)

type ZesFreqDomain

type ZesFreqDomain uintptr

ZesFreqDomain (zes_freq_domain_t) Frequency domains.

const (
	ZES_FREQ_DOMAIN_GPU          ZesFreqDomain = 0          // ZES_FREQ_DOMAIN_GPU GPU Core Domain.
	ZES_FREQ_DOMAIN_MEMORY       ZesFreqDomain = 1          // ZES_FREQ_DOMAIN_MEMORY Local Memory Domain.
	ZES_FREQ_DOMAIN_MEDIA        ZesFreqDomain = 2          // ZES_FREQ_DOMAIN_MEDIA GPU Media Domain.
	ZES_FREQ_DOMAIN_FORCE_UINT32 ZesFreqDomain = 0x7fffffff // ZES_FREQ_DOMAIN_FORCE_UINT32 Value marking end of ZES_FREQ_DOMAIN_* ENUMs

)

type ZesFreqHandle

type ZesFreqHandle uintptr

ZesFreqHandle (zes_freq_handle_t) Handle for a Sysman device frequency domain

type ZesFreqProperties

type ZesFreqProperties struct {
	Stype                    ZesStructureType // Stype [in] type of this structure
	Pnext                    unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type                     ZesFreqDomain    // Type [out] The hardware block that this frequency domain controls (GPU, memory, ...)
	Onsubdevice              ZeBool           // Onsubdevice [out] True if this resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid              uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Cancontrol               ZeBool           // Cancontrol [out] Indicates if software can control the frequency of this domain assuming the user has permissions
	Isthrottleeventsupported ZeBool           // Isthrottleeventsupported [out] Indicates if software can register to receive event ::ZES_EVENT_TYPE_FLAG_FREQ_THROTTLED
	Min                      float64          // Min [out] The minimum hardware clock frequency in units of MHz.
	Max                      float64          // Max [out] The maximum non-overclock hardware clock frequency in units of MHz.

}

ZesFreqProperties (zes_freq_properties_t) Frequency properties / / @details / - Indicates if this frequency domain can be overclocked (if true, / functions such as ::zesFrequencyOcSetFrequencyTarget() are supported). / - The min/max hardware frequencies are specified for non-overclock / configurations. For overclock configurations, use / ::zesFrequencyOcGetFrequencyTarget() to determine the maximum / frequency that can be requested.

type ZesFreqRange

type ZesFreqRange struct {
	Min float64 // Min [in,out] The min frequency in MHz below which hardware frequency management will not request frequencies. On input, setting to 0 will permit the frequency to go down to the hardware minimum while setting to -1 will return the min frequency limit to the factory value (can be larger than the hardware min). On output, a negative value indicates that no external minimum frequency limit is in effect.
	Max float64 // Max [in,out] The max frequency in MHz above which hardware frequency management will not request frequencies. On input, setting to 0 or a very big number will permit the frequency to go all the way up to the hardware maximum while setting to -1 will return the max frequency to the factory value (which can be less than the hardware max). On output, a negative number indicates that no external maximum frequency limit is in effect.

}

ZesFreqRange (zes_freq_range_t) Frequency range between which the hardware can operate. / / @details / - When setting limits, they will be clamped to the hardware limits. / - When setting limits, ensure that the max frequency is greater than or / equal to the min frequency specified. / - When setting limits to return to factory settings, specify -1 for both / the min and max limit.

type ZesFreqState

type ZesFreqState struct {
	Stype           ZesStructureType           // Stype [in] type of this structure
	Pnext           unsafe.Pointer             // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Currentvoltage  float64                    // Currentvoltage [out] Current voltage in Volts. A negative value indicates that this property is not known.
	Request         float64                    // Request [out] The current frequency request in MHz. A negative value indicates that this property is not known.
	Tdp             float64                    // Tdp [out] The maximum frequency in MHz supported under the current TDP conditions. This fluctuates dynamically based on the power and thermal limits of the part. A negative value indicates that this property is not known.
	Efficient       float64                    // Efficient [out] The efficient minimum frequency in MHz. A negative value indicates that this property is not known.
	Actual          float64                    // Actual [out] The resolved frequency in MHz. A negative value indicates that this property is not known.
	Throttlereasons ZesFreqThrottleReasonFlags // Throttlereasons [out] The reasons that the frequency is being limited by the hardware. Returns 0 (frequency not throttled) or a combination of ::zes_freq_throttle_reason_flag_t.

}

ZesFreqState (zes_freq_state_t) Frequency state

type ZesFreqThrottleReasonFlags

type ZesFreqThrottleReasonFlags uint32

ZesFreqThrottleReasonFlags (zes_freq_throttle_reason_flags_t) Frequency throttle reasons

const (
	ZES_FREQ_THROTTLE_REASON_FLAG_AVE_PWR_CAP   ZesFreqThrottleReasonFlags = (1 << 0) // ZES_FREQ_THROTTLE_REASON_FLAG_AVE_PWR_CAP frequency throttled due to average power excursion (PL1)
	ZES_FREQ_THROTTLE_REASON_FLAG_BURST_PWR_CAP ZesFreqThrottleReasonFlags = (1 << 1) // ZES_FREQ_THROTTLE_REASON_FLAG_BURST_PWR_CAP frequency throttled due to burst power excursion (PL2)
	ZES_FREQ_THROTTLE_REASON_FLAG_CURRENT_LIMIT ZesFreqThrottleReasonFlags = (1 << 2) // ZES_FREQ_THROTTLE_REASON_FLAG_CURRENT_LIMIT frequency throttled due to current excursion (PL4)
	ZES_FREQ_THROTTLE_REASON_FLAG_THERMAL_LIMIT ZesFreqThrottleReasonFlags = (1 << 3) // ZES_FREQ_THROTTLE_REASON_FLAG_THERMAL_LIMIT frequency throttled due to thermal excursion (T > TjMax)
	ZES_FREQ_THROTTLE_REASON_FLAG_PSU_ALERT     ZesFreqThrottleReasonFlags = (1 << 4) // ZES_FREQ_THROTTLE_REASON_FLAG_PSU_ALERT frequency throttled due to power supply assertion
	ZES_FREQ_THROTTLE_REASON_FLAG_SW_RANGE      ZesFreqThrottleReasonFlags = (1 << 5) // ZES_FREQ_THROTTLE_REASON_FLAG_SW_RANGE frequency throttled due to software supplied frequency range
	ZES_FREQ_THROTTLE_REASON_FLAG_HW_RANGE      ZesFreqThrottleReasonFlags = (1 << 6) // ZES_FREQ_THROTTLE_REASON_FLAG_HW_RANGE frequency throttled due to a sub block that has a lower frequency

	ZES_FREQ_THROTTLE_REASON_FLAG_VOLTAGE      ZesFreqThrottleReasonFlags = (1 << 7)   // ZES_FREQ_THROTTLE_REASON_FLAG_VOLTAGE frequency throttled due to voltage excursion
	ZES_FREQ_THROTTLE_REASON_FLAG_THERMAL      ZesFreqThrottleReasonFlags = (1 << 8)   // ZES_FREQ_THROTTLE_REASON_FLAG_THERMAL frequency throttled due to thermal conditions
	ZES_FREQ_THROTTLE_REASON_FLAG_POWER        ZesFreqThrottleReasonFlags = (1 << 9)   // ZES_FREQ_THROTTLE_REASON_FLAG_POWER frequency throttled due to power constraints
	ZES_FREQ_THROTTLE_REASON_FLAG_FORCE_UINT32 ZesFreqThrottleReasonFlags = 0x7fffffff // ZES_FREQ_THROTTLE_REASON_FLAG_FORCE_UINT32 Value marking end of ZES_FREQ_THROTTLE_REASON_FLAG_* ENUMs

)

type ZesFreqThrottleTime

type ZesFreqThrottleTime struct {
	Throttletime uint64 // Throttletime [out] The monotonic counter of time in microseconds that the frequency has been limited by the hardware.
	Timestamp    uint64 // Timestamp [out] Microsecond timestamp when throttleTime was captured. This timestamp should only be used to calculate delta time between snapshots of this structure. Never take the delta of this timestamp with the timestamp from a different structure since they are not guaranteed to have the same base. The absolute value of the timestamp is only valid during within the application and may be different on the next execution.

}

ZesFreqThrottleTime (zes_freq_throttle_time_t) Frequency throttle time snapshot / / @details / - Percent time throttled is calculated by taking two snapshots (s1, s2) / and using the equation: %throttled = (s2.throttleTime - / s1.throttleTime) / (s2.timestamp - s1.timestamp)

type ZesInitFlags

type ZesInitFlags uint32

ZesInitFlags (zes_init_flags_t) Supported sysman initialization flags

const (
	ZES_INIT_FLAG_PLACEHOLDER  ZesInitFlags = (1 << 0)   // ZES_INIT_FLAG_PLACEHOLDER placeholder for future use
	ZES_INIT_FLAG_FORCE_UINT32 ZesInitFlags = 0x7fffffff // ZES_INIT_FLAG_FORCE_UINT32 Value marking end of ZES_INIT_FLAG_* ENUMs

)

type ZesLedColor

type ZesLedColor struct {
	Red   float64 // Red [in,out][range(0.0, 1.0)] The LED red value. On output, a value less than 0.0 indicates that the color is not known.
	Green float64 // Green [in,out][range(0.0, 1.0)] The LED green value. On output, a value less than 0.0 indicates that the color is not known.
	Blue  float64 // Blue [in,out][range(0.0, 1.0)] The LED blue value. On output, a value less than 0.0 indicates that the color is not known.

}

ZesLedColor (zes_led_color_t) LED color

type ZesLedHandle

type ZesLedHandle uintptr

ZesLedHandle (zes_led_handle_t) Handle for a Sysman device LED

type ZesLedProperties

type ZesLedProperties struct {
	Stype       ZesStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice ZeBool           // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Cancontrol  ZeBool           // Cancontrol [out] Indicates if software can control the LED assuming the user has permissions
	Havergb     ZeBool           // Havergb [out] Indicates if the LED is RGB capable

}

ZesLedProperties (zes_led_properties_t) LED properties

type ZesLedState

type ZesLedState struct {
	Stype ZesStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Ison  ZeBool           // Ison [out] Indicates if the LED is on or off
	Color ZesLedColor      // Color [out] Color of the LED

}

ZesLedState (zes_led_state_t) LED state

type ZesLimitUnit

type ZesLimitUnit uintptr

ZesLimitUnit (zes_limit_unit_t) Limit Unit

const (
	ZES_LIMIT_UNIT_UNKNOWN      ZesLimitUnit = 0          // ZES_LIMIT_UNIT_UNKNOWN The PUnit power monitoring unit cannot be determined.
	ZES_LIMIT_UNIT_CURRENT      ZesLimitUnit = 1          // ZES_LIMIT_UNIT_CURRENT The limit is specified in milliamperes of current drawn.
	ZES_LIMIT_UNIT_POWER        ZesLimitUnit = 2          // ZES_LIMIT_UNIT_POWER The limit is specified in milliwatts of power generated.
	ZES_LIMIT_UNIT_FORCE_UINT32 ZesLimitUnit = 0x7fffffff // ZES_LIMIT_UNIT_FORCE_UINT32 Value marking end of ZES_LIMIT_UNIT_* ENUMs

)

type ZesMemBandwidth

type ZesMemBandwidth struct {
	Readcounter  uint64 // Readcounter [out] Total bytes read from memory
	Writecounter uint64 // Writecounter [out] Total bytes written to memory
	Maxbandwidth uint64 // Maxbandwidth [out] Current maximum bandwidth in units of bytes/sec
	Timestamp    uint64 // Timestamp [out] The timestamp in microseconds when these measurements were sampled. This timestamp should only be used to calculate delta time between snapshots of this structure. Never take the delta of this timestamp with the timestamp from a different structure since they are not guaranteed to have the same base. The absolute value of the timestamp is only valid during within the application and may be different on the next execution.

}

ZesMemBandwidth (zes_mem_bandwidth_t) Memory bandwidth / / @details / - Percent bandwidth is calculated by taking two snapshots (s1, s2) and / using the equation: %bw = 10^6 * ((s2.readCounter - s1.readCounter) + / (s2.writeCounter - s1.writeCounter)) / (s2.maxBandwidth * / (s2.timestamp - s1.timestamp)) / - Counter can roll over and rollover needs to be handled by comparing / the current read against the previous read / - Counter is a 32 byte transaction count, which means the calculated / delta (delta = current_value - previous_value or delta = 2^32 - / previous_value + current_value in case of rollover) needs to be / multiplied by 32 to get delta between samples in actual byte count

type ZesMemBandwidthCounterBitsExpProperties

type ZesMemBandwidthCounterBitsExpProperties struct {
	Stype          ZesStructureType // Stype [in] type of this structure
	Pnext          unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Validbitscount uint32           // Validbitscount [out] Returns the number of valid bits in the counter values

}

ZesMemBandwidthCounterBitsExpProperties (zes_mem_bandwidth_counter_bits_exp_properties_t) Extension properties for reporting valid bit count for memory / bandwidth counter value / / @details / - Number of valid read and write counter bits of memory bandwidth / - This structure may be returned from ::zesMemoryGetProperties via the / `pNext` member of ::zes_mem_properties_t. / - Used for denoting number of valid bits in the counter value returned / in ::zes_mem_bandwidth_t.

type ZesMemBandwidthCounterBitsExpVersion

type ZesMemBandwidthCounterBitsExpVersion uintptr

ZesMemBandwidthCounterBitsExpVersion (zes_mem_bandwidth_counter_bits_exp_version_t) Memory Bandwidth Counter Valid Bits Extension Version(s)

const (
	ZES_MEM_BANDWIDTH_COUNTER_BITS_EXP_VERSION_1_0          ZesMemBandwidthCounterBitsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_MEM_BANDWIDTH_COUNTER_BITS_EXP_VERSION_1_0 version 1.0
	ZES_MEM_BANDWIDTH_COUNTER_BITS_EXP_VERSION_CURRENT      ZesMemBandwidthCounterBitsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_MEM_BANDWIDTH_COUNTER_BITS_EXP_VERSION_CURRENT latest known version
	ZES_MEM_BANDWIDTH_COUNTER_BITS_EXP_VERSION_FORCE_UINT32 ZesMemBandwidthCounterBitsExpVersion = 0x7fffffff                     // ZES_MEM_BANDWIDTH_COUNTER_BITS_EXP_VERSION_FORCE_UINT32 Value marking end of ZES_MEM_BANDWIDTH_COUNTER_BITS_EXP_VERSION_* ENUMs

)

type ZesMemExtBandwidth

type ZesMemExtBandwidth struct {
	Memorytimestampvalidbits uint32 // Memorytimestampvalidbits [out] Returns the number of valid bits in the timestamp values

}

ZesMemExtBandwidth (zes_mem_ext_bandwidth_t) Extension properties for Memory bandwidth / / @details / - Number of counter bits / - [DEPRECATED] No longer supported.

type ZesMemHandle

type ZesMemHandle uintptr

ZesMemHandle (zes_mem_handle_t) Handle for a Sysman device memory module

type ZesMemHealth

type ZesMemHealth uintptr

ZesMemHealth (zes_mem_health_t) Memory health

const (
	ZES_MEM_HEALTH_UNKNOWN  ZesMemHealth = 0 // ZES_MEM_HEALTH_UNKNOWN The memory health cannot be determined.
	ZES_MEM_HEALTH_OK       ZesMemHealth = 1 // ZES_MEM_HEALTH_OK All memory channels are healthy.
	ZES_MEM_HEALTH_DEGRADED ZesMemHealth = 2 // ZES_MEM_HEALTH_DEGRADED Excessive correctable errors have been detected on one or more

	ZES_MEM_HEALTH_CRITICAL ZesMemHealth = 3 // ZES_MEM_HEALTH_CRITICAL Operating with reduced memory to cover banks with too many

	ZES_MEM_HEALTH_REPLACE      ZesMemHealth = 4          // ZES_MEM_HEALTH_REPLACE Device should be replaced due to excessive uncorrectable errors.
	ZES_MEM_HEALTH_FORCE_UINT32 ZesMemHealth = 0x7fffffff // ZES_MEM_HEALTH_FORCE_UINT32 Value marking end of ZES_MEM_HEALTH_* ENUMs

)

type ZesMemLoc

type ZesMemLoc uintptr

ZesMemLoc (zes_mem_loc_t) Memory module location

const (
	ZES_MEM_LOC_SYSTEM       ZesMemLoc = 0          // ZES_MEM_LOC_SYSTEM System memory
	ZES_MEM_LOC_DEVICE       ZesMemLoc = 1          // ZES_MEM_LOC_DEVICE On board local device memory
	ZES_MEM_LOC_FORCE_UINT32 ZesMemLoc = 0x7fffffff // ZES_MEM_LOC_FORCE_UINT32 Value marking end of ZES_MEM_LOC_* ENUMs

)

type ZesMemPageOfflineStateExp

type ZesMemPageOfflineStateExp struct {
	Stype                ZesStructureType // Stype [in] type of this structure
	Pnext                unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Memorypageoffline    uint32           // Memorypageoffline [out] Returns the number of Memory Pages Offline
	Maxmemorypageoffline uint32           // Maxmemorypageoffline [out] Returns the Allowed Memory Pages Offline

}

ZesMemPageOfflineStateExp (zes_mem_page_offline_state_exp_t) Extension properties for Memory State / / @details / - This structure may be returned from ::zesMemoryGetState via the / `pNext` member of ::zes_mem_state_t / - These additional parameters get Memory Page Offline Metrics

type ZesMemPageOfflineStateExpVersion

type ZesMemPageOfflineStateExpVersion uintptr

ZesMemPageOfflineStateExpVersion (zes_mem_page_offline_state_exp_version_t) Memory State Extension Version(s)

const (
	ZES_MEM_PAGE_OFFLINE_STATE_EXP_VERSION_1_0          ZesMemPageOfflineStateExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_MEM_PAGE_OFFLINE_STATE_EXP_VERSION_1_0 version 1.0
	ZES_MEM_PAGE_OFFLINE_STATE_EXP_VERSION_CURRENT      ZesMemPageOfflineStateExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_MEM_PAGE_OFFLINE_STATE_EXP_VERSION_CURRENT latest known version
	ZES_MEM_PAGE_OFFLINE_STATE_EXP_VERSION_FORCE_UINT32 ZesMemPageOfflineStateExpVersion = 0x7fffffff                     // ZES_MEM_PAGE_OFFLINE_STATE_EXP_VERSION_FORCE_UINT32 Value marking end of ZES_MEM_PAGE_OFFLINE_STATE_EXP_VERSION_* ENUMs

)

type ZesMemProperties

type ZesMemProperties struct {
	Stype        ZesStructureType // Stype [in] type of this structure
	Pnext        unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type         ZesMemType       // Type [out] The memory type
	Onsubdevice  ZeBool           // Onsubdevice [out] True if this resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid  uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Location     ZesMemLoc        // Location [out] Location of this memory (system, device)
	Physicalsize uint64           // Physicalsize [out] Physical memory capacity in bytes. A value of 0 indicates that this property is not known. However, a call to zesMemoryGetState() will return the available free physical memory.
	Buswidth     int32            // Buswidth [out] Width of the memory bus. A value of -1 means that this property is unknown.
	Numchannels  int32            // Numchannels [out] The number of memory channels. A value of -1 means that this property is unknown.

}

ZesMemProperties (zes_mem_properties_t) Memory properties

type ZesMemState

type ZesMemState struct {
	Stype  ZesStructureType // Stype [in] type of this structure
	Pnext  unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Health ZesMemHealth     // Health [out] Indicates the health of the memory
	Free   uint64           // Free [out] The free physical memory in bytes
	Size   uint64           // Size [out] The total allocatable memory in bytes (can be less than the `physicalSize` member of ::zes_mem_properties_t). *DEPRECATED* This member can no longer track the allocatable memory reliably. Clients depending on this information can use the zeDeviceGetMemoryProperties with ze_device_usablemem_size_ext_properties_t extention to get information of the available usable memory.

}

ZesMemState (zes_mem_state_t) Memory state - health, allocated / / @details / - Percent free is given by 100 * free / pysical mem size.

type ZesMemType

type ZesMemType uintptr

ZesMemType (zes_mem_type_t) Memory module types

const (
	ZES_MEM_TYPE_HBM          ZesMemType = 0          // ZES_MEM_TYPE_HBM HBM memory
	ZES_MEM_TYPE_DDR          ZesMemType = 1          // ZES_MEM_TYPE_DDR DDR memory
	ZES_MEM_TYPE_DDR3         ZesMemType = 2          // ZES_MEM_TYPE_DDR3 DDR3 memory
	ZES_MEM_TYPE_DDR4         ZesMemType = 3          // ZES_MEM_TYPE_DDR4 DDR4 memory
	ZES_MEM_TYPE_DDR5         ZesMemType = 4          // ZES_MEM_TYPE_DDR5 DDR5 memory
	ZES_MEM_TYPE_LPDDR        ZesMemType = 5          // ZES_MEM_TYPE_LPDDR LPDDR memory
	ZES_MEM_TYPE_LPDDR3       ZesMemType = 6          // ZES_MEM_TYPE_LPDDR3 LPDDR3 memory
	ZES_MEM_TYPE_LPDDR4       ZesMemType = 7          // ZES_MEM_TYPE_LPDDR4 LPDDR4 memory
	ZES_MEM_TYPE_LPDDR5       ZesMemType = 8          // ZES_MEM_TYPE_LPDDR5 LPDDR5 memory
	ZES_MEM_TYPE_SRAM         ZesMemType = 9          // ZES_MEM_TYPE_SRAM SRAM memory
	ZES_MEM_TYPE_L1           ZesMemType = 10         // ZES_MEM_TYPE_L1 L1 cache
	ZES_MEM_TYPE_L3           ZesMemType = 11         // ZES_MEM_TYPE_L3 L3 cache
	ZES_MEM_TYPE_GRF          ZesMemType = 12         // ZES_MEM_TYPE_GRF Execution unit register file
	ZES_MEM_TYPE_SLM          ZesMemType = 13         // ZES_MEM_TYPE_SLM Execution unit shared local memory
	ZES_MEM_TYPE_GDDR4        ZesMemType = 14         // ZES_MEM_TYPE_GDDR4 GDDR4 memory
	ZES_MEM_TYPE_GDDR5        ZesMemType = 15         // ZES_MEM_TYPE_GDDR5 GDDR5 memory
	ZES_MEM_TYPE_GDDR5X       ZesMemType = 16         // ZES_MEM_TYPE_GDDR5X GDDR5X memory
	ZES_MEM_TYPE_GDDR6        ZesMemType = 17         // ZES_MEM_TYPE_GDDR6 GDDR6 memory
	ZES_MEM_TYPE_GDDR6X       ZesMemType = 18         // ZES_MEM_TYPE_GDDR6X GDDR6X memory
	ZES_MEM_TYPE_GDDR7        ZesMemType = 19         // ZES_MEM_TYPE_GDDR7 GDDR7 memory
	ZES_MEM_TYPE_FORCE_UINT32 ZesMemType = 0x7fffffff // ZES_MEM_TYPE_FORCE_UINT32 Value marking end of ZES_MEM_TYPE_* ENUMs

)

type ZesOcCapabilities

type ZesOcCapabilities struct {
	Stype                      ZesStructureType // Stype [in] type of this structure
	Pnext                      unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Isocsupported              ZeBool           // Isocsupported [out] Indicates if any overclocking features are supported on this frequency domain.
	Maxfactorydefaultfrequency float64          // Maxfactorydefaultfrequency [out] Factory default non-overclock maximum frequency in Mhz.
	Maxfactorydefaultvoltage   float64          // Maxfactorydefaultvoltage [out] Factory default voltage used for the non-overclock maximum frequency in MHz.
	Maxocfrequency             float64          // Maxocfrequency [out] Maximum hardware overclocking frequency limit in Mhz.
	Minocvoltageoffset         float64          // Minocvoltageoffset [out] The minimum voltage offset that can be applied to the voltage/frequency curve. Note that this number can be negative.
	Maxocvoltageoffset         float64          // Maxocvoltageoffset [out] The maximum voltage offset that can be applied to the voltage/frequency curve.
	Maxocvoltage               float64          // Maxocvoltage [out] The maximum overclock voltage that hardware supports.
	Istjmaxsupported           ZeBool           // Istjmaxsupported [out] Indicates if the maximum temperature limit (TjMax) can be changed for this frequency domain.
	Isiccmaxsupported          ZeBool           // Isiccmaxsupported [out] Indicates if the maximum current (IccMax) can be changed for this frequency domain.
	Ishighvoltmodecapable      ZeBool           // Ishighvoltmodecapable [out] Indicates if this frequency domains supports a feature to set very high voltages.
	Ishighvoltmodeenabled      ZeBool           // Ishighvoltmodeenabled [out] Indicates if very high voltages are permitted on this frequency domain.
	Isextendedmodesupported    ZeBool           // Isextendedmodesupported [out] Indicates if the extended overclocking features are supported. If this is supported, increments are on 1 Mhz basis.
	Isfixedmodesupported       ZeBool           // Isfixedmodesupported [out] Indicates if the fixed mode is supported. In this mode, hardware will disable most frequency throttling and lock the frequency and voltage at the specified overclock values.

}

ZesOcCapabilities (zes_oc_capabilities_t) Overclocking properties / / @details / - Provides all the overclocking capabilities and properties supported by / the device for the frequency domain. / - [DEPRECATED] No longer supported.

type ZesOcMode

type ZesOcMode uintptr

ZesOcMode (zes_oc_mode_t) Overclocking modes / / @details / - [DEPRECATED] No longer supported.

const (
	ZES_OC_MODE_OFF ZesOcMode = 0 // ZES_OC_MODE_OFF Overclocking if off - hardware is running using factory default

	ZES_OC_MODE_OVERRIDE ZesOcMode = 1 // ZES_OC_MODE_OVERRIDE Overclock override mode - In this mode, a fixed user-supplied voltage

	ZES_OC_MODE_INTERPOLATIVE ZesOcMode = 2 // ZES_OC_MODE_INTERPOLATIVE Overclock interpolative mode - In this mode, the voltage/frequency

	ZES_OC_MODE_FIXED ZesOcMode = 3 // ZES_OC_MODE_FIXED Overclocking fixed Mode - In this mode, hardware will disable most

	ZES_OC_MODE_FORCE_UINT32 ZesOcMode = 0x7fffffff // ZES_OC_MODE_FORCE_UINT32 Value marking end of ZES_OC_MODE_* ENUMs

)

type ZesOverclockControl

type ZesOverclockControl uintptr

ZesOverclockControl (zes_overclock_control_t) Overclock controls.

const (
	ZES_OVERCLOCK_CONTROL_VF          ZesOverclockControl = 1 // ZES_OVERCLOCK_CONTROL_VF This control permits setting a custom V-F curve.
	ZES_OVERCLOCK_CONTROL_FREQ_OFFSET ZesOverclockControl = 2 // ZES_OVERCLOCK_CONTROL_FREQ_OFFSET The V-F curve of the overclock domain can be shifted up or down using

	ZES_OVERCLOCK_CONTROL_VMAX_OFFSET ZesOverclockControl = 4 // ZES_OVERCLOCK_CONTROL_VMAX_OFFSET This control is used to increase the permitted voltage above the

	ZES_OVERCLOCK_CONTROL_FREQ       ZesOverclockControl = 8  // ZES_OVERCLOCK_CONTROL_FREQ This control permits direct changes to the operating frequency.
	ZES_OVERCLOCK_CONTROL_VOLT_LIMIT ZesOverclockControl = 16 // ZES_OVERCLOCK_CONTROL_VOLT_LIMIT This control prevents frequencies that would push the voltage above

	ZES_OVERCLOCK_CONTROL_POWER_SUSTAINED_LIMIT ZesOverclockControl = 32         // ZES_OVERCLOCK_CONTROL_POWER_SUSTAINED_LIMIT This control changes the sustained power limit (PL1).
	ZES_OVERCLOCK_CONTROL_POWER_BURST_LIMIT     ZesOverclockControl = 64         // ZES_OVERCLOCK_CONTROL_POWER_BURST_LIMIT This control changes the burst power limit (PL2).
	ZES_OVERCLOCK_CONTROL_POWER_PEAK_LIMIT      ZesOverclockControl = 128        // ZES_OVERCLOCK_CONTROL_POWER_PEAK_LIMIT his control changes the peak power limit (PL4).
	ZES_OVERCLOCK_CONTROL_ICCMAX_LIMIT          ZesOverclockControl = 256        // ZES_OVERCLOCK_CONTROL_ICCMAX_LIMIT This control changes the value of IccMax..
	ZES_OVERCLOCK_CONTROL_TEMP_LIMIT            ZesOverclockControl = 512        // ZES_OVERCLOCK_CONTROL_TEMP_LIMIT This control changes the value of TjMax.
	ZES_OVERCLOCK_CONTROL_ITD_DISABLE           ZesOverclockControl = 1024       // ZES_OVERCLOCK_CONTROL_ITD_DISABLE This control permits disabling the adaptive voltage feature ITD
	ZES_OVERCLOCK_CONTROL_ACM_DISABLE           ZesOverclockControl = 2048       // ZES_OVERCLOCK_CONTROL_ACM_DISABLE This control permits disabling the adaptive voltage feature ACM.
	ZES_OVERCLOCK_CONTROL_FORCE_UINT32          ZesOverclockControl = 0x7fffffff // ZES_OVERCLOCK_CONTROL_FORCE_UINT32 Value marking end of ZES_OVERCLOCK_CONTROL_* ENUMs

)

type ZesOverclockDomain

type ZesOverclockDomain uintptr

ZesOverclockDomain (zes_overclock_domain_t) Overclock domains.

const (
	ZES_OVERCLOCK_DOMAIN_CARD               ZesOverclockDomain = 1          // ZES_OVERCLOCK_DOMAIN_CARD Overclocking card level properties such as temperature limits.
	ZES_OVERCLOCK_DOMAIN_PACKAGE            ZesOverclockDomain = 2          // ZES_OVERCLOCK_DOMAIN_PACKAGE Overclocking package level properties such as power limits.
	ZES_OVERCLOCK_DOMAIN_GPU_ALL            ZesOverclockDomain = 4          // ZES_OVERCLOCK_DOMAIN_GPU_ALL Overclocking a GPU that has all accelerator assets on the same PLL/VR.
	ZES_OVERCLOCK_DOMAIN_GPU_RENDER_COMPUTE ZesOverclockDomain = 8          // ZES_OVERCLOCK_DOMAIN_GPU_RENDER_COMPUTE Overclocking a GPU with render and compute assets on the same PLL/VR.
	ZES_OVERCLOCK_DOMAIN_GPU_RENDER         ZesOverclockDomain = 16         // ZES_OVERCLOCK_DOMAIN_GPU_RENDER Overclocking a GPU with render assets on its own PLL/VR.
	ZES_OVERCLOCK_DOMAIN_GPU_COMPUTE        ZesOverclockDomain = 32         // ZES_OVERCLOCK_DOMAIN_GPU_COMPUTE Overclocking a GPU with compute assets on its own PLL/VR.
	ZES_OVERCLOCK_DOMAIN_GPU_MEDIA          ZesOverclockDomain = 64         // ZES_OVERCLOCK_DOMAIN_GPU_MEDIA Overclocking a GPU with media assets on its own PLL/VR.
	ZES_OVERCLOCK_DOMAIN_VRAM               ZesOverclockDomain = 128        // ZES_OVERCLOCK_DOMAIN_VRAM Overclocking device local memory.
	ZES_OVERCLOCK_DOMAIN_ADM                ZesOverclockDomain = 256        // ZES_OVERCLOCK_DOMAIN_ADM Overclocking LLC/L4 cache.
	ZES_OVERCLOCK_DOMAIN_FORCE_UINT32       ZesOverclockDomain = 0x7fffffff // ZES_OVERCLOCK_DOMAIN_FORCE_UINT32 Value marking end of ZES_OVERCLOCK_DOMAIN_* ENUMs

)

type ZesOverclockHandle

type ZesOverclockHandle uintptr

ZesOverclockHandle (zes_overclock_handle_t) Handle for a Sysman device overclock domain

type ZesOverclockMode

type ZesOverclockMode uintptr

ZesOverclockMode (zes_overclock_mode_t) Overclock modes.

const (
	ZES_OVERCLOCK_MODE_MODE_OFF         ZesOverclockMode = 0 // ZES_OVERCLOCK_MODE_MODE_OFF Overclock mode is off
	ZES_OVERCLOCK_MODE_MODE_STOCK       ZesOverclockMode = 2 // ZES_OVERCLOCK_MODE_MODE_STOCK Stock (manufacturing settings) are being used.
	ZES_OVERCLOCK_MODE_MODE_ON          ZesOverclockMode = 3 // ZES_OVERCLOCK_MODE_MODE_ON Overclock mode is on.
	ZES_OVERCLOCK_MODE_MODE_UNAVAILABLE ZesOverclockMode = 4 // ZES_OVERCLOCK_MODE_MODE_UNAVAILABLE Overclocking is unavailable at this time since the system is running

	ZES_OVERCLOCK_MODE_MODE_DISABLED ZesOverclockMode = 5          // ZES_OVERCLOCK_MODE_MODE_DISABLED Overclock mode is disabled.
	ZES_OVERCLOCK_MODE_FORCE_UINT32  ZesOverclockMode = 0x7fffffff // ZES_OVERCLOCK_MODE_FORCE_UINT32 Value marking end of ZES_OVERCLOCK_MODE_* ENUMs

)

type ZesOverclockProperties

type ZesOverclockProperties struct {
	Stype             ZesStructureType   // Stype [in] type of this structure
	Pnext             unsafe.Pointer     // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Domaintype        ZesOverclockDomain // Domaintype [out] The hardware block that this overclock domain controls (GPU, VRAM, ...)
	Availablecontrols uint32             // Availablecontrols [out] Returns the overclock controls that are supported (a bit for each of enum ::zes_overclock_control_t). If no bits are set, the domain doesn't support overclocking.
	Vfprogramtype     ZesVfProgramType   // Vfprogramtype [out] Type of V-F curve programming that is permitted:.
	Numberofvfpoints  uint32             // Numberofvfpoints [out] Number of VF points that can be programmed - max_num_points

}

ZesOverclockProperties (zes_overclock_properties_t) Overclock properties / / @details / - Information on the overclock domain type and all the contols that are / part of the domain.

type ZesPciAddress

type ZesPciAddress struct {
	Domain   uint32 // Domain [out] BDF domain
	Bus      uint32 // Bus [out] BDF bus
	Device   uint32 // Device [out] BDF device
	Function uint32 // Function [out] BDF function

}

ZesPciAddress (zes_pci_address_t) PCI address

type ZesPciBarProperties

type ZesPciBarProperties struct {
	Stype ZesStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type  ZesPciBarType    // Type [out] The type of bar
	Index uint32           // Index [out] The index of the bar
	Base  uint64           // Base [out] Base address of the bar.
	Size  uint64           // Size [out] Size of the bar.

}

ZesPciBarProperties (zes_pci_bar_properties_t) Properties of a pci bar

type ZesPciBarProperties12

type ZesPciBarProperties12 struct {
	Stype                 ZesStructureType // Stype [in] type of this structure
	Pnext                 unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type                  ZesPciBarType    // Type [out] The type of bar
	Index                 uint32           // Index [out] The index of the bar
	Base                  uint64           // Base [out] Base address of the bar.
	Size                  uint64           // Size [out] Size of the bar.
	Resizablebarsupported ZeBool           // Resizablebarsupported [out] Support for Resizable Bar on this device.
	Resizablebarenabled   ZeBool           // Resizablebarenabled [out] Resizable Bar enabled on this device

}

ZesPciBarProperties12 (zes_pci_bar_properties_1_2_t) Properties of a pci bar, including the resizable bar.

type ZesPciBarType

type ZesPciBarType uintptr

ZesPciBarType (zes_pci_bar_type_t) PCI bar types

const (
	ZES_PCI_BAR_TYPE_MMIO         ZesPciBarType = 0          // ZES_PCI_BAR_TYPE_MMIO MMIO registers
	ZES_PCI_BAR_TYPE_ROM          ZesPciBarType = 1          // ZES_PCI_BAR_TYPE_ROM ROM aperture
	ZES_PCI_BAR_TYPE_MEM          ZesPciBarType = 2          // ZES_PCI_BAR_TYPE_MEM Device memory
	ZES_PCI_BAR_TYPE_FORCE_UINT32 ZesPciBarType = 0x7fffffff // ZES_PCI_BAR_TYPE_FORCE_UINT32 Value marking end of ZES_PCI_BAR_TYPE_* ENUMs

)

type ZesPciLinkQualIssueFlags

type ZesPciLinkQualIssueFlags uint32

ZesPciLinkQualIssueFlags (zes_pci_link_qual_issue_flags_t) PCI link quality degradation reasons

const (
	ZES_PCI_LINK_QUAL_ISSUE_FLAG_REPLAYS      ZesPciLinkQualIssueFlags = (1 << 0)   // ZES_PCI_LINK_QUAL_ISSUE_FLAG_REPLAYS A significant number of replays are occurring
	ZES_PCI_LINK_QUAL_ISSUE_FLAG_SPEED        ZesPciLinkQualIssueFlags = (1 << 1)   // ZES_PCI_LINK_QUAL_ISSUE_FLAG_SPEED There is a degradation in the maximum bandwidth of the link
	ZES_PCI_LINK_QUAL_ISSUE_FLAG_FORCE_UINT32 ZesPciLinkQualIssueFlags = 0x7fffffff // ZES_PCI_LINK_QUAL_ISSUE_FLAG_FORCE_UINT32 Value marking end of ZES_PCI_LINK_QUAL_ISSUE_FLAG_* ENUMs

)

type ZesPciLinkSpeedDowngradeExtProperties

type ZesPciLinkSpeedDowngradeExtProperties struct {
	Stype                     ZesStructureType // Stype [in] type of this structure
	Pnext                     unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Pcilinkspeedupdatecapable ZeBool           // Pcilinkspeedupdatecapable [out] Returns if PCIe downgrade capability is available.
	Maxpcigensupported        int32            // Maxpcigensupported [out] Returns the max supported PCIe generation of the device. -1 indicates the information is not available

}

ZesPciLinkSpeedDowngradeExtProperties (zes_pci_link_speed_downgrade_ext_properties_t) Query PCIe downgrade capability. / / @details / - This structure can be passed in the 'pNext' of ::zes_pci_properties_t

type ZesPciLinkSpeedDowngradeExtState

type ZesPciLinkSpeedDowngradeExtState struct {
	Stype                       ZesStructureType // Stype [in] type of this structure
	Pnext                       unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Pcilinkspeeddowngradestatus ZeBool           // Pcilinkspeeddowngradestatus [out] Returns the current PCIe downgrade status.

}

ZesPciLinkSpeedDowngradeExtState (zes_pci_link_speed_downgrade_ext_state_t) Query PCIe downgrade status. / / @details / - This structure can be passed in the 'pNext' of ::zes_pci_state_t

type ZesPciLinkSpeedDowngradeExtVersion

type ZesPciLinkSpeedDowngradeExtVersion uintptr

ZesPciLinkSpeedDowngradeExtVersion (zes_pci_link_speed_downgrade_ext_version_t) PCI Link Speed Downgrade Extension Version(s)

const (
	ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_VERSION_1_0          ZesPciLinkSpeedDowngradeExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_VERSION_1_0 version 1.0
	ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_VERSION_CURRENT      ZesPciLinkSpeedDowngradeExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_VERSION_CURRENT latest known version
	ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_VERSION_FORCE_UINT32 ZesPciLinkSpeedDowngradeExtVersion = 0x7fffffff                     // ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_VERSION_FORCE_UINT32 Value marking end of ZES_PCI_LINK_SPEED_DOWNGRADE_EXT_VERSION_* ENUMs

)

type ZesPciLinkStabIssueFlags

type ZesPciLinkStabIssueFlags uint32

ZesPciLinkStabIssueFlags (zes_pci_link_stab_issue_flags_t) PCI link stability issues

const (
	ZES_PCI_LINK_STAB_ISSUE_FLAG_RETRAINING   ZesPciLinkStabIssueFlags = (1 << 0)   // ZES_PCI_LINK_STAB_ISSUE_FLAG_RETRAINING Link retraining has occurred to deal with quality issues
	ZES_PCI_LINK_STAB_ISSUE_FLAG_FORCE_UINT32 ZesPciLinkStabIssueFlags = 0x7fffffff // ZES_PCI_LINK_STAB_ISSUE_FLAG_FORCE_UINT32 Value marking end of ZES_PCI_LINK_STAB_ISSUE_FLAG_* ENUMs

)

type ZesPciLinkStatus

type ZesPciLinkStatus uintptr

ZesPciLinkStatus (zes_pci_link_status_t) PCI link status

const (
	ZES_PCI_LINK_STATUS_UNKNOWN          ZesPciLinkStatus = 0 // ZES_PCI_LINK_STATUS_UNKNOWN The link status could not be determined
	ZES_PCI_LINK_STATUS_GOOD             ZesPciLinkStatus = 1 // ZES_PCI_LINK_STATUS_GOOD The link is up and operating as expected
	ZES_PCI_LINK_STATUS_QUALITY_ISSUES   ZesPciLinkStatus = 2 // ZES_PCI_LINK_STATUS_QUALITY_ISSUES The link is up but has quality and/or bandwidth degradation
	ZES_PCI_LINK_STATUS_STABILITY_ISSUES ZesPciLinkStatus = 3 // ZES_PCI_LINK_STATUS_STABILITY_ISSUES The link has stability issues and preventing workloads making forward

	ZES_PCI_LINK_STATUS_FORCE_UINT32 ZesPciLinkStatus = 0x7fffffff // ZES_PCI_LINK_STATUS_FORCE_UINT32 Value marking end of ZES_PCI_LINK_STATUS_* ENUMs

)

type ZesPciProperties

type ZesPciProperties struct {
	Stype                 ZesStructureType // Stype [in] type of this structure
	Pnext                 unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Address               ZesPciAddress    // Address [out] The BDF address
	Maxspeed              ZesPciSpeed      // Maxspeed [out] Fastest port configuration supported by the device (sum of all lanes)
	Havebandwidthcounters ZeBool           // Havebandwidthcounters [out] Indicates whether the `rxCounter` and `txCounter` members of ::zes_pci_stats_t will have valid values
	Havepacketcounters    ZeBool           // Havepacketcounters [out] Indicates whether the `packetCounter` member of ::zes_pci_stats_t will have a valid value
	Havereplaycounters    ZeBool           // Havereplaycounters [out] Indicates whether the `replayCounter` member of ::zes_pci_stats_t will have a valid value

}

ZesPciProperties (zes_pci_properties_t) Static PCI properties

type ZesPciSpeed

type ZesPciSpeed struct {
	Gen          int32 // Gen [out] The link generation. A value of -1 means that this property is unknown.
	Width        int32 // Width [out] The number of lanes. A value of -1 means that this property is unknown.
	Maxbandwidth int64 // Maxbandwidth [out] The maximum bandwidth in bytes/sec (sum of all lanes). A value of -1 means that this property is unknown.

}

ZesPciSpeed (zes_pci_speed_t) PCI speed

type ZesPciState

type ZesPciState struct {
	Stype           ZesStructureType         // Stype [in] type of this structure
	Pnext           unsafe.Pointer           // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Status          ZesPciLinkStatus         // Status [out] The current status of the port
	Qualityissues   ZesPciLinkQualIssueFlags // Qualityissues [out] If status is ::ZES_PCI_LINK_STATUS_QUALITY_ISSUES, then this gives a combination of ::zes_pci_link_qual_issue_flag_t for quality issues that have been detected; otherwise, 0 indicates there are no quality issues with the link at this time."
	Stabilityissues ZesPciLinkStabIssueFlags // Stabilityissues [out] If status is ::ZES_PCI_LINK_STATUS_STABILITY_ISSUES, then this gives a combination of ::zes_pci_link_stab_issue_flag_t for reasons for the connection instability; otherwise, 0 indicates there are no connection stability issues at this time."
	Speed           ZesPciSpeed              // Speed [out] The current port configure speed

}

ZesPciState (zes_pci_state_t) Dynamic PCI state

type ZesPciStats

type ZesPciStats struct {
	Timestamp     uint64      // Timestamp [out] Monotonic timestamp counter in microseconds when the measurement was made. This timestamp should only be used to calculate delta time between snapshots of this structure. Never take the delta of this timestamp with the timestamp from a different structure since they are not guaranteed to have the same base. The absolute value of the timestamp is only valid during within the application and may be different on the next execution.
	Replaycounter uint64      // Replaycounter [out] Monotonic counter for the number of replay packets (sum of all lanes). Will always be 0 when the `haveReplayCounters` member of ::zes_pci_properties_t is FALSE.
	Packetcounter uint64      // Packetcounter [out] Monotonic counter for the number of packets (sum of all lanes). Will always be 0 when the `havePacketCounters` member of ::zes_pci_properties_t is FALSE.
	Rxcounter     uint64      // Rxcounter [out] Monotonic counter for the number of bytes received (sum of all lanes). Will always be 0 when the `haveBandwidthCounters` member of ::zes_pci_properties_t is FALSE.
	Txcounter     uint64      // Txcounter [out] Monotonic counter for the number of bytes transmitted (including replays) (sum of all lanes). Will always be 0 when the `haveBandwidthCounters` member of ::zes_pci_properties_t is FALSE.
	Speed         ZesPciSpeed // Speed [out] The current speed of the link (sum of all lanes)

}

ZesPciStats (zes_pci_stats_t) PCI stats counters / / @details / - Percent replays is calculated by taking two snapshots (s1, s2) and / using the equation: %replay = 10^6 * (s2.replayCounter - / s1.replayCounter) / (s2.maxBandwidth * (s2.timestamp - s1.timestamp)) / - Percent throughput is calculated by taking two snapshots (s1, s2) and / using the equation: %bw = 10^6 * ((s2.rxCounter - s1.rxCounter) + / (s2.txCounter - s1.txCounter)) / (s2.maxBandwidth * (s2.timestamp - / s1.timestamp))

type ZesPendingAction

type ZesPendingAction uintptr

ZesPendingAction (zes_pending_action_t) Overclock pending actions.

const (
	ZES_PENDING_ACTION_PENDING_NONE       ZesPendingAction = 0 // ZES_PENDING_ACTION_PENDING_NONE There no pending actions. .
	ZES_PENDING_ACTION_PENDING_IMMINENT   ZesPendingAction = 1 // ZES_PENDING_ACTION_PENDING_IMMINENT The requested change is in progress and should complete soon.
	ZES_PENDING_ACTION_PENDING_COLD_RESET ZesPendingAction = 2 // ZES_PENDING_ACTION_PENDING_COLD_RESET The requested change requires a device cold reset (hotplug, system

	ZES_PENDING_ACTION_PENDING_WARM_RESET ZesPendingAction = 3          // ZES_PENDING_ACTION_PENDING_WARM_RESET The requested change requires a device warm reset (PCIe FLR).
	ZES_PENDING_ACTION_FORCE_UINT32       ZesPendingAction = 0x7fffffff // ZES_PENDING_ACTION_FORCE_UINT32 Value marking end of ZES_PENDING_ACTION_* ENUMs

)

type ZesPerfHandle

type ZesPerfHandle uintptr

ZesPerfHandle (zes_perf_handle_t) Handle for a Sysman device performance factors

type ZesPerfProperties

type ZesPerfProperties struct {
	Stype       ZesStructureType   // Stype [in] type of this structure
	Pnext       unsafe.Pointer     // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice ZeBool             // Onsubdevice [out] True if this Performance Factor affects accelerators located on a sub-device
	Subdeviceid uint32             // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Engines     ZesEngineTypeFlags // Engines [out] Bitfield of accelerator engine types that are affected by this Performance Factor.

}

ZesPerfProperties (zes_perf_properties_t) Static information about a Performance Factor domain

type ZesPowerBurstLimit

type ZesPowerBurstLimit struct {
	Enabled ZeBool // Enabled [in,out] indicates if the limit is enabled (true) or ignored (false)
	Power   int32  // Power [in,out] power limit in milliwatts

}

ZesPowerBurstLimit (zes_power_burst_limit_t) Burst power limit / / @details / - The power controller (Punit) will throttle the operating frequency of / the device if the power averaged over a few milliseconds exceeds a / limit known as PL2. Typically PL2 > PL1 so that it permits the / frequency to burst higher for short periods than would be otherwise / permitted by PL1. / - [DEPRECATED] No longer supported.

type ZesPowerDomain

type ZesPowerDomain uintptr

ZesPowerDomain (zes_power_domain_t) Power Domain

const (
	ZES_POWER_DOMAIN_UNKNOWN      ZesPowerDomain = 0          // ZES_POWER_DOMAIN_UNKNOWN The PUnit power domain level cannot be determined.
	ZES_POWER_DOMAIN_CARD         ZesPowerDomain = 1          // ZES_POWER_DOMAIN_CARD The PUnit power domain is a card-level power domain.
	ZES_POWER_DOMAIN_PACKAGE      ZesPowerDomain = 2          // ZES_POWER_DOMAIN_PACKAGE The PUnit power domain is a package-level power domain.
	ZES_POWER_DOMAIN_STACK        ZesPowerDomain = 3          // ZES_POWER_DOMAIN_STACK The PUnit power domain is a stack-level power domain.
	ZES_POWER_DOMAIN_MEMORY       ZesPowerDomain = 4          // ZES_POWER_DOMAIN_MEMORY The PUnit power domain is a memory-level power domain.
	ZES_POWER_DOMAIN_GPU          ZesPowerDomain = 5          // ZES_POWER_DOMAIN_GPU The PUnit power domain is a GPU-level power domain.
	ZES_POWER_DOMAIN_FORCE_UINT32 ZesPowerDomain = 0x7fffffff // ZES_POWER_DOMAIN_FORCE_UINT32 Value marking end of ZES_POWER_DOMAIN_* ENUMs

)

type ZesPowerDomainExpProperties

type ZesPowerDomainExpProperties struct {
	Stype       ZesStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Powerdomain ZesPowerDomain   // Powerdomain [out] Power domain associated with the power handle.

}

ZesPowerDomainExpProperties (zes_power_domain_exp_properties_t) Extension structure for providing power domain information associated / with a power handle / / @details / - This structure may be returned from ::zesPowerGetProperties via the / `pNext` member of ::zes_power_properties_t. / - Used for associating a power handle with a power domain.

type ZesPowerDomainPropertiesExpVersion

type ZesPowerDomainPropertiesExpVersion uintptr

ZesPowerDomainPropertiesExpVersion (zes_power_domain_properties_exp_version_t) Power Domain Properties Extension Version(s)

const (
	ZES_POWER_DOMAIN_PROPERTIES_EXP_VERSION_1_0          ZesPowerDomainPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_POWER_DOMAIN_PROPERTIES_EXP_VERSION_1_0 version 1.0
	ZES_POWER_DOMAIN_PROPERTIES_EXP_VERSION_CURRENT      ZesPowerDomainPropertiesExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_POWER_DOMAIN_PROPERTIES_EXP_VERSION_CURRENT latest known version
	ZES_POWER_DOMAIN_PROPERTIES_EXP_VERSION_FORCE_UINT32 ZesPowerDomainPropertiesExpVersion = 0x7fffffff                     // ZES_POWER_DOMAIN_PROPERTIES_EXP_VERSION_FORCE_UINT32 Value marking end of ZES_POWER_DOMAIN_PROPERTIES_EXP_VERSION_* ENUMs

)

type ZesPowerEnergyCounter

type ZesPowerEnergyCounter struct {
	Energy    uint64 // Energy [out] The monotonic energy counter in microjoules.
	Timestamp uint64 // Timestamp [out] Microsecond timestamp when energy was captured. This timestamp should only be used to calculate delta time between snapshots of this structure. Never take the delta of this timestamp with the timestamp from a different structure since they are not guaranteed to have the same base. The absolute value of the timestamp is only valid during within the application and may be different on the next execution.

}

ZesPowerEnergyCounter (zes_power_energy_counter_t) Energy counter snapshot / / @details / - Average power is calculated by taking two snapshots (s1, s2) and using / the equation: PowerWatts = (s2.energy - s1.energy) / (s2.timestamp - / s1.timestamp)

type ZesPowerExtProperties

type ZesPowerExtProperties struct {
	Stype        ZesStructureType      // Stype [in] type of this structure
	Pnext        unsafe.Pointer        // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Domain       ZesPowerDomain        // Domain [out] domain that the power limit belongs to.
	Defaultlimit *ZesPowerLimitExtDesc // Defaultlimit [out] the factory default limit of the part.

}

ZesPowerExtProperties (zes_power_ext_properties_t) Extension properties related to device power settings / / @details / - This structure may be returned from ::zesPowerGetProperties via the / `pNext` member of ::zes_power_properties_t. / - This structure may also be returned from ::zesPowerGetProperties via / the `pNext` member of ::zes_power_ext_properties_t / - Used for determining the power domain level, i.e. card-level v/s / package-level v/s stack-level & the factory default power limits.

type ZesPowerLevel

type ZesPowerLevel uintptr

ZesPowerLevel (zes_power_level_t) Power Level Type

const (
	ZES_POWER_LEVEL_UNKNOWN   ZesPowerLevel = 0 // ZES_POWER_LEVEL_UNKNOWN The PUnit power monitoring duration cannot be determined.
	ZES_POWER_LEVEL_SUSTAINED ZesPowerLevel = 1 // ZES_POWER_LEVEL_SUSTAINED The PUnit determines effective power draw by computing a moving

	ZES_POWER_LEVEL_BURST ZesPowerLevel = 2 // ZES_POWER_LEVEL_BURST The PUnit determines effective power draw by computing a moving

	ZES_POWER_LEVEL_PEAK ZesPowerLevel = 3 // ZES_POWER_LEVEL_PEAK The PUnit determines effective power draw by computing a moving

	ZES_POWER_LEVEL_INSTANTANEOUS ZesPowerLevel = 4 // ZES_POWER_LEVEL_INSTANTANEOUS The PUnit predicts effective power draw using the current device

	ZES_POWER_LEVEL_FORCE_UINT32 ZesPowerLevel = 0x7fffffff // ZES_POWER_LEVEL_FORCE_UINT32 Value marking end of ZES_POWER_LEVEL_* ENUMs

)

type ZesPowerLimitExtDesc

type ZesPowerLimitExtDesc struct {
	Stype               ZesStructureType // Stype [in] type of this structure
	Pnext               unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Level               ZesPowerLevel    // Level [in,out] duration type over which the power draw is measured, i.e. sustained, burst, peak, or critical.
	Source              ZesPowerSource   // Source [out] source of power used by the system, i.e. AC or DC.
	Limitunit           ZesLimitUnit     // Limitunit [out] unit used for specifying limit, i.e. current units (milliamps) or power units (milliwatts).
	Enabledstatelocked  ZeBool           // Enabledstatelocked [out] indicates if the power limit state (enabled/ignored) can be set (false) or is locked (true).
	Enabled             ZeBool           // Enabled [in,out] indicates if the limit is enabled (true) or ignored (false). If enabledStateIsLocked is True, this value is ignored.
	Intervalvaluelocked ZeBool           // Intervalvaluelocked [out] indicates if the interval can be modified (false) or is fixed (true).
	Interval            int32            // Interval [in,out] power averaging window in milliseconds. If intervalValueLocked is true, this value is ignored.
	Limitvaluelocked    ZeBool           // Limitvaluelocked [out] indicates if the limit can be set (false) or if the limit is fixed (true).
	Limit               int32            // Limit [in,out] limit value. If limitValueLocked is true, this value is ignored. The value should be provided in the unit specified by limitUnit.

}

ZesPowerLimitExtDesc (zes_power_limit_ext_desc_t) Device power/current limit descriptor.

type ZesPowerLimitsExtVersion

type ZesPowerLimitsExtVersion uintptr

ZesPowerLimitsExtVersion (zes_power_limits_ext_version_t) Power Limits Extension Version(s)

const (
	ZES_POWER_LIMITS_EXT_VERSION_1_0          ZesPowerLimitsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_POWER_LIMITS_EXT_VERSION_1_0 version 1.0
	ZES_POWER_LIMITS_EXT_VERSION_CURRENT      ZesPowerLimitsExtVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_POWER_LIMITS_EXT_VERSION_CURRENT latest known version
	ZES_POWER_LIMITS_EXT_VERSION_FORCE_UINT32 ZesPowerLimitsExtVersion = 0x7fffffff                     // ZES_POWER_LIMITS_EXT_VERSION_FORCE_UINT32 Value marking end of ZES_POWER_LIMITS_EXT_VERSION_* ENUMs

)

type ZesPowerPeakLimit

type ZesPowerPeakLimit struct {
	Powerac int32 // Powerac [in,out] power limit in milliwatts for the AC power source.
	Powerdc int32 // Powerdc [in,out] power limit in milliwatts for the DC power source. On input, this is ignored if the product does not have a battery. On output, this will be -1 if the product does not have a battery.

}

ZesPowerPeakLimit (zes_power_peak_limit_t) Peak power limit / / @details / - The power controller (Punit) will reactively/proactively throttle the / operating frequency of the device when the instantaneous/100usec power / exceeds this limit. The limit is known as PL4 or Psys. It expresses / the maximum power that can be drawn from the power supply. / - If this power limit is removed or set too high, the power supply will / generate an interrupt when it detects an overcurrent condition and the / power controller will throttle the device frequencies down to min. It / is thus better to tune the PL4 value in order to avoid such / excursions. / - [DEPRECATED] No longer supported.

type ZesPowerProperties

type ZesPowerProperties struct {
	Stype                      ZesStructureType // Stype [in] type of this structure
	Pnext                      unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice                ZeBool           // Onsubdevice [out] True if this resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid                uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Cancontrol                 ZeBool           // Cancontrol [out] Software can change the power limits of this domain assuming the user has permissions.
	Isenergythresholdsupported ZeBool           // Isenergythresholdsupported [out] Indicates if this power domain supports the energy threshold event (::ZES_EVENT_TYPE_FLAG_ENERGY_THRESHOLD_CROSSED).
	Defaultlimit               int32            // Defaultlimit [out] (Deprecated) The factory default TDP power limit of the part in milliwatts. A value of -1 means that this is not known.
	Minlimit                   int32            // Minlimit [out] (Deprecated) The minimum power limit in milliwatts that can be requested. A value of -1 means that this is not known.
	Maxlimit                   int32            // Maxlimit [out] (Deprecated) The maximum power limit in milliwatts that can be requested. A value of -1 means that this is not known.

}

ZesPowerProperties (zes_power_properties_t) Properties related to device power settings

type ZesPowerSource

type ZesPowerSource uintptr

ZesPowerSource (zes_power_source_t) Power Source Type

const (
	ZES_POWER_SOURCE_ANY ZesPowerSource = 0 // ZES_POWER_SOURCE_ANY Limit active no matter whether the power source is mains powered or

	ZES_POWER_SOURCE_MAINS        ZesPowerSource = 1          // ZES_POWER_SOURCE_MAINS Limit active only when the device is mains powered.
	ZES_POWER_SOURCE_BATTERY      ZesPowerSource = 2          // ZES_POWER_SOURCE_BATTERY Limit active only when the device is battery powered.
	ZES_POWER_SOURCE_FORCE_UINT32 ZesPowerSource = 0x7fffffff // ZES_POWER_SOURCE_FORCE_UINT32 Value marking end of ZES_POWER_SOURCE_* ENUMs

)

type ZesPowerSustainedLimit

type ZesPowerSustainedLimit struct {
	Enabled  ZeBool // Enabled [in,out] indicates if the limit is enabled (true) or ignored (false)
	Power    int32  // Power [in,out] power limit in milliwatts
	Interval int32  // Interval [in,out] power averaging window (Tau) in milliseconds

}

ZesPowerSustainedLimit (zes_power_sustained_limit_t) Sustained power limits / / @details / - The power controller (Punit) will throttle the operating frequency if / the power averaged over a window (typically seconds) exceeds this / limit. / - [DEPRECATED] No longer supported.

type ZesProcessState

type ZesProcessState struct {
	Stype      ZesStructureType   // Stype [in] type of this structure
	Pnext      unsafe.Pointer     // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Processid  uint32             // Processid [out] Host OS process ID.
	Memsize    uint64             // Memsize [out] Device memory size in bytes allocated by this process (may not necessarily be resident on the device at the time of reading).
	Sharedsize uint64             // Sharedsize [out] The size of shared device memory mapped into this process (may not necessarily be resident on the device at the time of reading).
	Engines    ZesEngineTypeFlags // Engines [out] Bitfield of accelerator engine types being used by this process.

}

ZesProcessState (zes_process_state_t) Contains information about a process that has an open connection with / this device / / @details / - The application can use the process ID to query the OS for the owner / and the path to the executable.

type ZesPsuHandle

type ZesPsuHandle uintptr

ZesPsuHandle (zes_psu_handle_t) Handle for a Sysman device power supply

type ZesPsuProperties

type ZesPsuProperties struct {
	Stype       ZesStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice ZeBool           // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Havefan     ZeBool           // Havefan [out] True if the power supply has a fan
	Amplimit    int32            // Amplimit [out] The maximum electrical current in milliamperes that can be drawn. A value of -1 indicates that this property cannot be determined.

}

ZesPsuProperties (zes_psu_properties_t) Static properties of the power supply

type ZesPsuState

type ZesPsuState struct {
	Stype       ZesStructureType    // Stype [in] type of this structure
	Pnext       unsafe.Pointer      // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Voltstatus  ZesPsuVoltageStatus // Voltstatus [out] The current PSU voltage status
	Fanfailed   ZeBool              // Fanfailed [out] Indicates if the fan has failed
	Temperature int32               // Temperature [out] Read the current heatsink temperature in degrees Celsius. A value of -1 indicates that this property cannot be determined.
	Current     int32               // Current [out] The amps being drawn in milliamperes. A value of -1 indicates that this property cannot be determined.

}

ZesPsuState (zes_psu_state_t) Dynamic state of the power supply

type ZesPsuVoltageStatus

type ZesPsuVoltageStatus uintptr

ZesPsuVoltageStatus (zes_psu_voltage_status_t) PSU voltage status

const (
	ZES_PSU_VOLTAGE_STATUS_UNKNOWN ZesPsuVoltageStatus = 0 // ZES_PSU_VOLTAGE_STATUS_UNKNOWN The status of the power supply voltage controllers cannot be

	ZES_PSU_VOLTAGE_STATUS_NORMAL       ZesPsuVoltageStatus = 1          // ZES_PSU_VOLTAGE_STATUS_NORMAL No unusual voltages have been detected
	ZES_PSU_VOLTAGE_STATUS_OVER         ZesPsuVoltageStatus = 2          // ZES_PSU_VOLTAGE_STATUS_OVER Over-voltage has occurred
	ZES_PSU_VOLTAGE_STATUS_UNDER        ZesPsuVoltageStatus = 3          // ZES_PSU_VOLTAGE_STATUS_UNDER Under-voltage has occurred
	ZES_PSU_VOLTAGE_STATUS_FORCE_UINT32 ZesPsuVoltageStatus = 0x7fffffff // ZES_PSU_VOLTAGE_STATUS_FORCE_UINT32 Value marking end of ZES_PSU_VOLTAGE_STATUS_* ENUMs

)

type ZesPwrHandle

type ZesPwrHandle uintptr

ZesPwrHandle (zes_pwr_handle_t) Handle for a Sysman device power domain

type ZesRasConfig

type ZesRasConfig struct {
	Stype              ZesStructureType // Stype [in] type of this structure
	Pnext              unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Totalthreshold     uint64           // Totalthreshold [in,out] If the total RAS errors exceeds this threshold, the event will be triggered. A value of 0ULL disables triggering the event based on the total counter.
	Detailedthresholds ZesRasState      // Detailedthresholds [in,out] If the RAS errors for each category exceed the threshold for that category, the event will be triggered. A value of 0ULL will disable an event being triggered for that category.

}

ZesRasConfig (zes_ras_config_t) RAS error configuration - thresholds used for triggering RAS events / (::ZES_EVENT_TYPE_FLAG_RAS_CORRECTABLE_ERRORS, / ::ZES_EVENT_TYPE_FLAG_RAS_UNCORRECTABLE_ERRORS) / / @details / - The driver maintains a total counter which is updated every time a / hardware block covered by the corresponding RAS error set notifies / that an error has occurred. When this total count goes above the / totalThreshold specified below, a RAS event is triggered. / - The driver also maintains a counter for each category of RAS error / (see ::zes_ras_state_t for a breakdown). Each time a hardware block of / that category notifies that an error has occurred, that corresponding / category counter is updated. When it goes above the threshold / specified in detailedThresholds, a RAS event is triggered.

type ZesRasErrorCat

type ZesRasErrorCat uintptr

ZesRasErrorCat (zes_ras_error_cat_t) RAS error categories

const (
	ZES_RAS_ERROR_CAT_RESET              ZesRasErrorCat = 0 // ZES_RAS_ERROR_CAT_RESET The number of accelerator engine resets attempted by the driver
	ZES_RAS_ERROR_CAT_PROGRAMMING_ERRORS ZesRasErrorCat = 1 // ZES_RAS_ERROR_CAT_PROGRAMMING_ERRORS The number of hardware exceptions generated by the way workloads have

	ZES_RAS_ERROR_CAT_DRIVER_ERRORS  ZesRasErrorCat = 2 // ZES_RAS_ERROR_CAT_DRIVER_ERRORS The number of low level driver communication errors have occurred
	ZES_RAS_ERROR_CAT_COMPUTE_ERRORS ZesRasErrorCat = 3 // ZES_RAS_ERROR_CAT_COMPUTE_ERRORS The number of errors that have occurred in the compute accelerator

	ZES_RAS_ERROR_CAT_NON_COMPUTE_ERRORS ZesRasErrorCat = 4 // ZES_RAS_ERROR_CAT_NON_COMPUTE_ERRORS The number of errors that have occurred in the fixed-function

	ZES_RAS_ERROR_CAT_CACHE_ERRORS ZesRasErrorCat = 5 // ZES_RAS_ERROR_CAT_CACHE_ERRORS The number of errors that have occurred in caches (L1/L3/register

	ZES_RAS_ERROR_CAT_DISPLAY_ERRORS ZesRasErrorCat = 6          // ZES_RAS_ERROR_CAT_DISPLAY_ERRORS The number of errors that have occurred in the display
	ZES_RAS_ERROR_CAT_FORCE_UINT32   ZesRasErrorCat = 0x7fffffff // ZES_RAS_ERROR_CAT_FORCE_UINT32 Value marking end of ZES_RAS_ERROR_CAT_* ENUMs

)

type ZesRasErrorCategoryExp

type ZesRasErrorCategoryExp uintptr

ZesRasErrorCategoryExp (zes_ras_error_category_exp_t) RAS error categories

const (
	ZES_RAS_ERROR_CATEGORY_EXP_RESET              ZesRasErrorCategoryExp = 0 // ZES_RAS_ERROR_CATEGORY_EXP_RESET The number of accelerator engine resets attempted by the driver
	ZES_RAS_ERROR_CATEGORY_EXP_PROGRAMMING_ERRORS ZesRasErrorCategoryExp = 1 // ZES_RAS_ERROR_CATEGORY_EXP_PROGRAMMING_ERRORS The number of hardware exceptions generated by the way workloads have

	ZES_RAS_ERROR_CATEGORY_EXP_DRIVER_ERRORS  ZesRasErrorCategoryExp = 2 // ZES_RAS_ERROR_CATEGORY_EXP_DRIVER_ERRORS The number of low level driver communication errors have occurred
	ZES_RAS_ERROR_CATEGORY_EXP_COMPUTE_ERRORS ZesRasErrorCategoryExp = 3 // ZES_RAS_ERROR_CATEGORY_EXP_COMPUTE_ERRORS The number of errors that have occurred in the compute accelerator

	ZES_RAS_ERROR_CATEGORY_EXP_NON_COMPUTE_ERRORS ZesRasErrorCategoryExp = 4 // ZES_RAS_ERROR_CATEGORY_EXP_NON_COMPUTE_ERRORS The number of errors that have occurred in the fixed-function

	ZES_RAS_ERROR_CATEGORY_EXP_CACHE_ERRORS ZesRasErrorCategoryExp = 5 // ZES_RAS_ERROR_CATEGORY_EXP_CACHE_ERRORS The number of errors that have occurred in caches (L1/L3/register

	ZES_RAS_ERROR_CATEGORY_EXP_DISPLAY_ERRORS  ZesRasErrorCategoryExp = 6          // ZES_RAS_ERROR_CATEGORY_EXP_DISPLAY_ERRORS The number of errors that have occurred in the display
	ZES_RAS_ERROR_CATEGORY_EXP_MEMORY_ERRORS   ZesRasErrorCategoryExp = 7          // ZES_RAS_ERROR_CATEGORY_EXP_MEMORY_ERRORS The number of errors that have occurred in Memory
	ZES_RAS_ERROR_CATEGORY_EXP_SCALE_ERRORS    ZesRasErrorCategoryExp = 8          // ZES_RAS_ERROR_CATEGORY_EXP_SCALE_ERRORS The number of errors that have occurred in Scale Fabric
	ZES_RAS_ERROR_CATEGORY_EXP_L3FABRIC_ERRORS ZesRasErrorCategoryExp = 9          // ZES_RAS_ERROR_CATEGORY_EXP_L3FABRIC_ERRORS The number of errors that have occurred in L3 Fabric
	ZES_RAS_ERROR_CATEGORY_EXP_FORCE_UINT32    ZesRasErrorCategoryExp = 0x7fffffff // ZES_RAS_ERROR_CATEGORY_EXP_FORCE_UINT32 Value marking end of ZES_RAS_ERROR_CATEGORY_EXP_* ENUMs

)

type ZesRasErrorType

type ZesRasErrorType uintptr

ZesRasErrorType (zes_ras_error_type_t) RAS error type

const (
	ZES_RAS_ERROR_TYPE_CORRECTABLE   ZesRasErrorType = 0          // ZES_RAS_ERROR_TYPE_CORRECTABLE Errors were corrected by hardware
	ZES_RAS_ERROR_TYPE_UNCORRECTABLE ZesRasErrorType = 1          // ZES_RAS_ERROR_TYPE_UNCORRECTABLE Error were not corrected
	ZES_RAS_ERROR_TYPE_FORCE_UINT32  ZesRasErrorType = 0x7fffffff // ZES_RAS_ERROR_TYPE_FORCE_UINT32 Value marking end of ZES_RAS_ERROR_TYPE_* ENUMs

)

type ZesRasHandle

type ZesRasHandle uintptr

ZesRasHandle (zes_ras_handle_t) Handle for a Sysman device RAS error set

type ZesRasProperties

type ZesRasProperties struct {
	Stype       ZesStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type        ZesRasErrorType  // Type [out] The type of RAS error
	Onsubdevice ZeBool           // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device

}

ZesRasProperties (zes_ras_properties_t) RAS properties

type ZesRasState

type ZesRasState struct {
	Stype    ZesStructureType                         // Stype [in] type of this structure
	Pnext    unsafe.Pointer                           // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Category [ZES_MAX_RAS_ERROR_CATEGORY_COUNT]uint64 // Category [in][out] Breakdown of error by category

}

ZesRasState (zes_ras_state_t) RAS error details

type ZesRasStateExp

type ZesRasStateExp struct {
	Category     ZesRasErrorCategoryExp // Category [out] category for which error counter is provided.
	Errorcounter uint64                 // Errorcounter [out] Current value of RAS counter for specific error category.

}

ZesRasStateExp (zes_ras_state_exp_t) Extension structure for providing RAS error counters for different / error sets

type ZesRasStateExpVersion

type ZesRasStateExpVersion uintptr

ZesRasStateExpVersion (zes_ras_state_exp_version_t) RAS Get State Extension Version(s)

const (
	ZES_RAS_STATE_EXP_VERSION_1_0          ZesRasStateExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_RAS_STATE_EXP_VERSION_1_0 version 1.0
	ZES_RAS_STATE_EXP_VERSION_CURRENT      ZesRasStateExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_RAS_STATE_EXP_VERSION_CURRENT latest known version
	ZES_RAS_STATE_EXP_VERSION_FORCE_UINT32 ZesRasStateExpVersion = 0x7fffffff                     // ZES_RAS_STATE_EXP_VERSION_FORCE_UINT32 Value marking end of ZES_RAS_STATE_EXP_VERSION_* ENUMs

)

type ZesRepairStatus

type ZesRepairStatus uintptr

ZesRepairStatus (zes_repair_status_t) Device repair status

const (
	ZES_REPAIR_STATUS_UNSUPPORTED   ZesRepairStatus = 0          // ZES_REPAIR_STATUS_UNSUPPORTED The device does not support in-field repairs.
	ZES_REPAIR_STATUS_NOT_PERFORMED ZesRepairStatus = 1          // ZES_REPAIR_STATUS_NOT_PERFORMED The device has never been repaired.
	ZES_REPAIR_STATUS_PERFORMED     ZesRepairStatus = 2          // ZES_REPAIR_STATUS_PERFORMED The device has been repaired.
	ZES_REPAIR_STATUS_FORCE_UINT32  ZesRepairStatus = 0x7fffffff // ZES_REPAIR_STATUS_FORCE_UINT32 Value marking end of ZES_REPAIR_STATUS_* ENUMs

)

type ZesResetProperties

type ZesResetProperties struct {
	Stype     ZesStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Force     ZeBool           // Force [in] If set to true, all applications that are currently using the device will be forcibly killed.
	Resettype ZesResetType     // Resettype [in] Type of reset needs to be performed

}

ZesResetProperties (zes_reset_properties_t) Device reset properties

type ZesResetReasonFlags

type ZesResetReasonFlags uint32

ZesResetReasonFlags (zes_reset_reason_flags_t) Device reset reasons

const (
	ZES_RESET_REASON_FLAG_WEDGED ZesResetReasonFlags = (1 << 0) // ZES_RESET_REASON_FLAG_WEDGED The device needs to be reset because one or more parts of the hardware

	ZES_RESET_REASON_FLAG_REPAIR       ZesResetReasonFlags = (1 << 1)   // ZES_RESET_REASON_FLAG_REPAIR The device needs to be reset in order to complete in-field repairs
	ZES_RESET_REASON_FLAG_FORCE_UINT32 ZesResetReasonFlags = 0x7fffffff // ZES_RESET_REASON_FLAG_FORCE_UINT32 Value marking end of ZES_RESET_REASON_FLAG_* ENUMs

)

type ZesResetType

type ZesResetType uintptr

ZesResetType (zes_reset_type_t) Device reset type

const (
	ZES_RESET_TYPE_WARM         ZesResetType = 0          // ZES_RESET_TYPE_WARM Apply warm reset
	ZES_RESET_TYPE_COLD         ZesResetType = 1          // ZES_RESET_TYPE_COLD Apply cold reset
	ZES_RESET_TYPE_FLR          ZesResetType = 2          // ZES_RESET_TYPE_FLR Apply FLR reset
	ZES_RESET_TYPE_FORCE_UINT32 ZesResetType = 0x7fffffff // ZES_RESET_TYPE_FORCE_UINT32 Value marking end of ZES_RESET_TYPE_* ENUMs

)

type ZesSchedHandle

type ZesSchedHandle uintptr

ZesSchedHandle (zes_sched_handle_t) Handle for a Sysman device scheduler queue

type ZesSchedMode

type ZesSchedMode uintptr

ZesSchedMode (zes_sched_mode_t) Scheduler mode

const (
	ZES_SCHED_MODE_TIMEOUT ZesSchedMode = 0 // ZES_SCHED_MODE_TIMEOUT Multiple applications or contexts are submitting work to the hardware.

	ZES_SCHED_MODE_TIMESLICE ZesSchedMode = 1 // ZES_SCHED_MODE_TIMESLICE The scheduler attempts to fairly timeslice hardware execution time

	ZES_SCHED_MODE_EXCLUSIVE ZesSchedMode = 2 // ZES_SCHED_MODE_EXCLUSIVE Any application or context can run indefinitely on the hardware

	ZES_SCHED_MODE_COMPUTE_UNIT_DEBUG ZesSchedMode = 3          // ZES_SCHED_MODE_COMPUTE_UNIT_DEBUG [DEPRECATED] No longer supported.
	ZES_SCHED_MODE_FORCE_UINT32       ZesSchedMode = 0x7fffffff // ZES_SCHED_MODE_FORCE_UINT32 Value marking end of ZES_SCHED_MODE_* ENUMs

)

type ZesSchedProperties

type ZesSchedProperties struct {
	Stype          ZesStructureType   // Stype [in] type of this structure
	Pnext          unsafe.Pointer     // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Onsubdevice    ZeBool             // Onsubdevice [out] True if this resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid    uint32             // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Cancontrol     ZeBool             // Cancontrol [out] Software can change the scheduler component configuration assuming the user has permissions.
	Engines        ZesEngineTypeFlags // Engines [out] Bitfield of accelerator engine types that are managed by this scheduler component. Note that there can be more than one scheduler component for the same type of accelerator engine.
	Supportedmodes uint32             // Supportedmodes [out] Bitfield of scheduler modes that can be configured for this scheduler component (bitfield of 1<<::zes_sched_mode_t).

}

ZesSchedProperties (zes_sched_properties_t) Properties related to scheduler component

type ZesSchedTimeoutProperties

type ZesSchedTimeoutProperties struct {
	Stype           ZesStructureType // Stype [in] type of this structure
	Pnext           unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Watchdogtimeout uint64           // Watchdogtimeout [in,out] The maximum time in microseconds that the scheduler will wait for a batch of work submitted to a hardware engine to complete or to be preempted so as to run another context. If this time is exceeded, the hardware engine is reset and the context terminated. If set to ::ZES_SCHED_WATCHDOG_DISABLE, a running workload can run as long as it wants without being terminated, but preemption attempts to run other contexts are permitted but not enforced.

}

ZesSchedTimeoutProperties (zes_sched_timeout_properties_t) Configuration for timeout scheduler mode (::ZES_SCHED_MODE_TIMEOUT)

type ZesSchedTimesliceProperties

type ZesSchedTimesliceProperties struct {
	Stype        ZesStructureType // Stype [in] type of this structure
	Pnext        unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Interval     uint64           // Interval [in,out] The average interval in microseconds that a submission for a context will run on a hardware engine before being preempted out to run a pending submission for another context.
	Yieldtimeout uint64           // Yieldtimeout [in,out] The maximum time in microseconds that the scheduler will wait to preempt a workload running on an engine before deciding to reset the hardware engine and terminating the associated context.

}

ZesSchedTimesliceProperties (zes_sched_timeslice_properties_t) Configuration for timeslice scheduler mode / (::ZES_SCHED_MODE_TIMESLICE)

type ZesStandbyHandle

type ZesStandbyHandle uintptr

ZesStandbyHandle (zes_standby_handle_t) Handle for a Sysman device standby control

type ZesStandbyPromoMode

type ZesStandbyPromoMode uintptr

ZesStandbyPromoMode (zes_standby_promo_mode_t) Standby promotion modes

const (
	ZES_STANDBY_PROMO_MODE_DEFAULT ZesStandbyPromoMode = 0 // ZES_STANDBY_PROMO_MODE_DEFAULT Best compromise between performance and energy savings.
	ZES_STANDBY_PROMO_MODE_NEVER   ZesStandbyPromoMode = 1 // ZES_STANDBY_PROMO_MODE_NEVER The device/component will never shutdown. This can improve performance

	ZES_STANDBY_PROMO_MODE_FORCE_UINT32 ZesStandbyPromoMode = 0x7fffffff // ZES_STANDBY_PROMO_MODE_FORCE_UINT32 Value marking end of ZES_STANDBY_PROMO_MODE_* ENUMs

)

type ZesStandbyProperties

type ZesStandbyProperties struct {
	Stype       ZesStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type        ZesStandbyType   // Type [out] Which standby hardware component this controls
	Onsubdevice ZeBool           // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device

}

ZesStandbyProperties (zes_standby_properties_t) Standby hardware component properties

type ZesStandbyType

type ZesStandbyType uintptr

ZesStandbyType (zes_standby_type_t) Standby hardware components

const (
	ZES_STANDBY_TYPE_GLOBAL       ZesStandbyType = 0          // ZES_STANDBY_TYPE_GLOBAL Control the overall standby policy of the device/sub-device
	ZES_STANDBY_TYPE_FORCE_UINT32 ZesStandbyType = 0x7fffffff // ZES_STANDBY_TYPE_FORCE_UINT32 Value marking end of ZES_STANDBY_TYPE_* ENUMs

)

type ZesStructureType

type ZesStructureType uintptr

ZesStructureType (zes_structure_type_t) Defines structure types

const (
	ZES_STRUCTURE_TYPE_DEVICE_PROPERTIES                         ZesStructureType = 0x1        // ZES_STRUCTURE_TYPE_DEVICE_PROPERTIES ::zes_device_properties_t
	ZES_STRUCTURE_TYPE_PCI_PROPERTIES                            ZesStructureType = 0x2        // ZES_STRUCTURE_TYPE_PCI_PROPERTIES ::zes_pci_properties_t
	ZES_STRUCTURE_TYPE_PCI_BAR_PROPERTIES                        ZesStructureType = 0x3        // ZES_STRUCTURE_TYPE_PCI_BAR_PROPERTIES ::zes_pci_bar_properties_t
	ZES_STRUCTURE_TYPE_DIAG_PROPERTIES                           ZesStructureType = 0x4        // ZES_STRUCTURE_TYPE_DIAG_PROPERTIES ::zes_diag_properties_t
	ZES_STRUCTURE_TYPE_ENGINE_PROPERTIES                         ZesStructureType = 0x5        // ZES_STRUCTURE_TYPE_ENGINE_PROPERTIES ::zes_engine_properties_t
	ZES_STRUCTURE_TYPE_FABRIC_PORT_PROPERTIES                    ZesStructureType = 0x6        // ZES_STRUCTURE_TYPE_FABRIC_PORT_PROPERTIES ::zes_fabric_port_properties_t
	ZES_STRUCTURE_TYPE_FAN_PROPERTIES                            ZesStructureType = 0x7        // ZES_STRUCTURE_TYPE_FAN_PROPERTIES ::zes_fan_properties_t
	ZES_STRUCTURE_TYPE_FIRMWARE_PROPERTIES                       ZesStructureType = 0x8        // ZES_STRUCTURE_TYPE_FIRMWARE_PROPERTIES ::zes_firmware_properties_t
	ZES_STRUCTURE_TYPE_FREQ_PROPERTIES                           ZesStructureType = 0x9        // ZES_STRUCTURE_TYPE_FREQ_PROPERTIES ::zes_freq_properties_t
	ZES_STRUCTURE_TYPE_LED_PROPERTIES                            ZesStructureType = 0xa        // ZES_STRUCTURE_TYPE_LED_PROPERTIES ::zes_led_properties_t
	ZES_STRUCTURE_TYPE_MEM_PROPERTIES                            ZesStructureType = 0xb        // ZES_STRUCTURE_TYPE_MEM_PROPERTIES ::zes_mem_properties_t
	ZES_STRUCTURE_TYPE_PERF_PROPERTIES                           ZesStructureType = 0xc        // ZES_STRUCTURE_TYPE_PERF_PROPERTIES ::zes_perf_properties_t
	ZES_STRUCTURE_TYPE_POWER_PROPERTIES                          ZesStructureType = 0xd        // ZES_STRUCTURE_TYPE_POWER_PROPERTIES ::zes_power_properties_t
	ZES_STRUCTURE_TYPE_PSU_PROPERTIES                            ZesStructureType = 0xe        // ZES_STRUCTURE_TYPE_PSU_PROPERTIES ::zes_psu_properties_t
	ZES_STRUCTURE_TYPE_RAS_PROPERTIES                            ZesStructureType = 0xf        // ZES_STRUCTURE_TYPE_RAS_PROPERTIES ::zes_ras_properties_t
	ZES_STRUCTURE_TYPE_SCHED_PROPERTIES                          ZesStructureType = 0x10       // ZES_STRUCTURE_TYPE_SCHED_PROPERTIES ::zes_sched_properties_t
	ZES_STRUCTURE_TYPE_SCHED_TIMEOUT_PROPERTIES                  ZesStructureType = 0x11       // ZES_STRUCTURE_TYPE_SCHED_TIMEOUT_PROPERTIES ::zes_sched_timeout_properties_t
	ZES_STRUCTURE_TYPE_SCHED_TIMESLICE_PROPERTIES                ZesStructureType = 0x12       // ZES_STRUCTURE_TYPE_SCHED_TIMESLICE_PROPERTIES ::zes_sched_timeslice_properties_t
	ZES_STRUCTURE_TYPE_STANDBY_PROPERTIES                        ZesStructureType = 0x13       // ZES_STRUCTURE_TYPE_STANDBY_PROPERTIES ::zes_standby_properties_t
	ZES_STRUCTURE_TYPE_TEMP_PROPERTIES                           ZesStructureType = 0x14       // ZES_STRUCTURE_TYPE_TEMP_PROPERTIES ::zes_temp_properties_t
	ZES_STRUCTURE_TYPE_DEVICE_STATE                              ZesStructureType = 0x15       // ZES_STRUCTURE_TYPE_DEVICE_STATE ::zes_device_state_t
	ZES_STRUCTURE_TYPE_PROCESS_STATE                             ZesStructureType = 0x16       // ZES_STRUCTURE_TYPE_PROCESS_STATE ::zes_process_state_t
	ZES_STRUCTURE_TYPE_PCI_STATE                                 ZesStructureType = 0x17       // ZES_STRUCTURE_TYPE_PCI_STATE ::zes_pci_state_t
	ZES_STRUCTURE_TYPE_FABRIC_PORT_CONFIG                        ZesStructureType = 0x18       // ZES_STRUCTURE_TYPE_FABRIC_PORT_CONFIG ::zes_fabric_port_config_t
	ZES_STRUCTURE_TYPE_FABRIC_PORT_STATE                         ZesStructureType = 0x19       // ZES_STRUCTURE_TYPE_FABRIC_PORT_STATE ::zes_fabric_port_state_t
	ZES_STRUCTURE_TYPE_FAN_CONFIG                                ZesStructureType = 0x1a       // ZES_STRUCTURE_TYPE_FAN_CONFIG ::zes_fan_config_t
	ZES_STRUCTURE_TYPE_FREQ_STATE                                ZesStructureType = 0x1b       // ZES_STRUCTURE_TYPE_FREQ_STATE ::zes_freq_state_t
	ZES_STRUCTURE_TYPE_OC_CAPABILITIES                           ZesStructureType = 0x1c       // ZES_STRUCTURE_TYPE_OC_CAPABILITIES ::zes_oc_capabilities_t
	ZES_STRUCTURE_TYPE_LED_STATE                                 ZesStructureType = 0x1d       // ZES_STRUCTURE_TYPE_LED_STATE ::zes_led_state_t
	ZES_STRUCTURE_TYPE_MEM_STATE                                 ZesStructureType = 0x1e       // ZES_STRUCTURE_TYPE_MEM_STATE ::zes_mem_state_t
	ZES_STRUCTURE_TYPE_PSU_STATE                                 ZesStructureType = 0x1f       // ZES_STRUCTURE_TYPE_PSU_STATE ::zes_psu_state_t
	ZES_STRUCTURE_TYPE_BASE_STATE                                ZesStructureType = 0x20       // ZES_STRUCTURE_TYPE_BASE_STATE ::zes_base_state_t
	ZES_STRUCTURE_TYPE_RAS_CONFIG                                ZesStructureType = 0x21       // ZES_STRUCTURE_TYPE_RAS_CONFIG ::zes_ras_config_t
	ZES_STRUCTURE_TYPE_RAS_STATE                                 ZesStructureType = 0x22       // ZES_STRUCTURE_TYPE_RAS_STATE ::zes_ras_state_t
	ZES_STRUCTURE_TYPE_TEMP_CONFIG                               ZesStructureType = 0x23       // ZES_STRUCTURE_TYPE_TEMP_CONFIG ::zes_temp_config_t
	ZES_STRUCTURE_TYPE_PCI_BAR_PROPERTIES_1_2                    ZesStructureType = 0x24       // ZES_STRUCTURE_TYPE_PCI_BAR_PROPERTIES_1_2 ::zes_pci_bar_properties_1_2_t
	ZES_STRUCTURE_TYPE_DEVICE_ECC_DESC                           ZesStructureType = 0x25       // ZES_STRUCTURE_TYPE_DEVICE_ECC_DESC ::zes_device_ecc_desc_t
	ZES_STRUCTURE_TYPE_DEVICE_ECC_PROPERTIES                     ZesStructureType = 0x26       // ZES_STRUCTURE_TYPE_DEVICE_ECC_PROPERTIES ::zes_device_ecc_properties_t
	ZES_STRUCTURE_TYPE_POWER_LIMIT_EXT_DESC                      ZesStructureType = 0x27       // ZES_STRUCTURE_TYPE_POWER_LIMIT_EXT_DESC ::zes_power_limit_ext_desc_t
	ZES_STRUCTURE_TYPE_POWER_EXT_PROPERTIES                      ZesStructureType = 0x28       // ZES_STRUCTURE_TYPE_POWER_EXT_PROPERTIES ::zes_power_ext_properties_t
	ZES_STRUCTURE_TYPE_OVERCLOCK_PROPERTIES                      ZesStructureType = 0x29       // ZES_STRUCTURE_TYPE_OVERCLOCK_PROPERTIES ::zes_overclock_properties_t
	ZES_STRUCTURE_TYPE_FABRIC_PORT_ERROR_COUNTERS                ZesStructureType = 0x2a       // ZES_STRUCTURE_TYPE_FABRIC_PORT_ERROR_COUNTERS ::zes_fabric_port_error_counters_t
	ZES_STRUCTURE_TYPE_ENGINE_EXT_PROPERTIES                     ZesStructureType = 0x2b       // ZES_STRUCTURE_TYPE_ENGINE_EXT_PROPERTIES ::zes_engine_ext_properties_t
	ZES_STRUCTURE_TYPE_RESET_PROPERTIES                          ZesStructureType = 0x2c       // ZES_STRUCTURE_TYPE_RESET_PROPERTIES ::zes_reset_properties_t
	ZES_STRUCTURE_TYPE_DEVICE_EXT_PROPERTIES                     ZesStructureType = 0x2d       // ZES_STRUCTURE_TYPE_DEVICE_EXT_PROPERTIES ::zes_device_ext_properties_t
	ZES_STRUCTURE_TYPE_DEVICE_UUID                               ZesStructureType = 0x2e       // ZES_STRUCTURE_TYPE_DEVICE_UUID ::zes_uuid_t
	ZES_STRUCTURE_TYPE_POWER_DOMAIN_EXP_PROPERTIES               ZesStructureType = 0x00020001 // ZES_STRUCTURE_TYPE_POWER_DOMAIN_EXP_PROPERTIES ::zes_power_domain_exp_properties_t
	ZES_STRUCTURE_TYPE_MEM_BANDWIDTH_COUNTER_BITS_EXP_PROPERTIES ZesStructureType = 0x00020002 // ZES_STRUCTURE_TYPE_MEM_BANDWIDTH_COUNTER_BITS_EXP_PROPERTIES ::zes_mem_bandwidth_counter_bits_exp_properties_t
	ZES_STRUCTURE_TYPE_MEMORY_PAGE_OFFLINE_STATE_EXP             ZesStructureType = 0x00020003 // ZES_STRUCTURE_TYPE_MEMORY_PAGE_OFFLINE_STATE_EXP ::zes_mem_page_offline_state_exp_t
	ZES_STRUCTURE_TYPE_SUBDEVICE_EXP_PROPERTIES                  ZesStructureType = 0x00020004 // ZES_STRUCTURE_TYPE_SUBDEVICE_EXP_PROPERTIES ::zes_subdevice_exp_properties_t
	ZES_STRUCTURE_TYPE_VF_EXP_PROPERTIES                         ZesStructureType = 0x00020005 // ZES_STRUCTURE_TYPE_VF_EXP_PROPERTIES ::zes_vf_exp_properties_t
	ZES_STRUCTURE_TYPE_VF_UTIL_MEM_EXP                           ZesStructureType = 0x00020006 // ZES_STRUCTURE_TYPE_VF_UTIL_MEM_EXP ::zes_vf_util_mem_exp_t
	ZES_STRUCTURE_TYPE_VF_UTIL_ENGINE_EXP                        ZesStructureType = 0x00020007 // ZES_STRUCTURE_TYPE_VF_UTIL_ENGINE_EXP ::zes_vf_util_engine_exp_t
	ZES_STRUCTURE_TYPE_VF_EXP_CAPABILITIES                       ZesStructureType = 0x00020008 // ZES_STRUCTURE_TYPE_VF_EXP_CAPABILITIES ::zes_vf_exp_capabilities_t
	ZES_STRUCTURE_TYPE_VF_UTIL_MEM_EXP2                          ZesStructureType = 0x00020009 // ZES_STRUCTURE_TYPE_VF_UTIL_MEM_EXP2 ::zes_vf_util_mem_exp2_t
	ZES_STRUCTURE_TYPE_VF_UTIL_ENGINE_EXP2                       ZesStructureType = 0x00020010 // ZES_STRUCTURE_TYPE_VF_UTIL_ENGINE_EXP2 ::zes_vf_util_engine_exp2_t
	ZES_STRUCTURE_TYPE_VF_EXP2_CAPABILITIES                      ZesStructureType = 0x00020011 // ZES_STRUCTURE_TYPE_VF_EXP2_CAPABILITIES ::zes_vf_exp2_capabilities_t
	ZES_STRUCTURE_TYPE_DEVICE_ECC_DEFAULT_PROPERTIES_EXT         ZesStructureType = 0x00020012 // ZES_STRUCTURE_TYPE_DEVICE_ECC_DEFAULT_PROPERTIES_EXT ::zes_device_ecc_default_properties_ext_t
	ZES_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_STATE        ZesStructureType = 0x00020013 // ZES_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_STATE ::zes_pci_link_speed_downgrade_ext_state_t
	ZES_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_PROPERTIES   ZesStructureType = 0x00020014 // ZES_STRUCTURE_TYPE_PCI_LINK_SPEED_DOWNGRADE_EXT_PROPERTIES ::zes_pci_link_speed_downgrade_ext_properties_t
	ZES_STRUCTURE_TYPE_FORCE_UINT32                              ZesStructureType = 0x7fffffff // ZES_STRUCTURE_TYPE_FORCE_UINT32 Value marking end of ZES_STRUCTURE_TYPE_* ENUMs

)

type ZesSubdeviceExpProperties

type ZesSubdeviceExpProperties struct {
	Stype       ZesStructureType // Stype [in] type of this structure
	Pnext       unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Subdeviceid uint32           // Subdeviceid [out] this gives the ID of the sub device
	Uuid        ZesUuid          // Uuid [out] universal unique identifier of the sub device.

}

ZesSubdeviceExpProperties (zes_subdevice_exp_properties_t) Sub Device Properties

type ZesSysmanDeviceMappingExpVersion

type ZesSysmanDeviceMappingExpVersion uintptr

ZesSysmanDeviceMappingExpVersion (zes_sysman_device_mapping_exp_version_t) Sysman Device Mapping Extension Version(s)

const (
	ZES_SYSMAN_DEVICE_MAPPING_EXP_VERSION_1_0          ZesSysmanDeviceMappingExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_SYSMAN_DEVICE_MAPPING_EXP_VERSION_1_0 version 1.0
	ZES_SYSMAN_DEVICE_MAPPING_EXP_VERSION_CURRENT      ZesSysmanDeviceMappingExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_SYSMAN_DEVICE_MAPPING_EXP_VERSION_CURRENT latest known version
	ZES_SYSMAN_DEVICE_MAPPING_EXP_VERSION_FORCE_UINT32 ZesSysmanDeviceMappingExpVersion = 0x7fffffff                     // ZES_SYSMAN_DEVICE_MAPPING_EXP_VERSION_FORCE_UINT32 Value marking end of ZES_SYSMAN_DEVICE_MAPPING_EXP_VERSION_* ENUMs

)

type ZesTempConfig

type ZesTempConfig struct {
	Stype          ZesStructureType // Stype [in] type of this structure
	Pnext          unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Enablecritical ZeBool           // Enablecritical [in,out] Indicates if event ::ZES_EVENT_TYPE_FLAG_TEMP_CRITICAL should be triggered by the driver.
	Threshold1     ZesTempThreshold // Threshold1 [in,out] Configuration controlling if and when event ::ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD1 should be triggered by the driver.
	Threshold2     ZesTempThreshold // Threshold2 [in,out] Configuration controlling if and when event ::ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD2 should be triggered by the driver.

}

ZesTempConfig (zes_temp_config_t) Temperature configuration - which events should be triggered and the / trigger conditions.

type ZesTempHandle

type ZesTempHandle uintptr

ZesTempHandle (zes_temp_handle_t) Handle for a Sysman device temperature sensor

type ZesTempProperties

type ZesTempProperties struct {
	Stype                   ZesStructureType // Stype [in] type of this structure
	Pnext                   unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type                    ZesTempSensors   // Type [out] Which part of the device the temperature sensor measures
	Onsubdevice             ZeBool           // Onsubdevice [out] True if the resource is located on a sub-device; false means that the resource is on the device of the calling Sysman handle
	Subdeviceid             uint32           // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device
	Maxtemperature          float64          // Maxtemperature [out] Will contain the maximum temperature for the specific device in degrees Celsius.
	Iscriticaltempsupported ZeBool           // Iscriticaltempsupported [out] Indicates if the critical temperature event ::ZES_EVENT_TYPE_FLAG_TEMP_CRITICAL is supported
	Isthreshold1supported   ZeBool           // Isthreshold1supported [out] Indicates if the temperature threshold 1 event ::ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD1 is supported
	Isthreshold2supported   ZeBool           // Isthreshold2supported [out] Indicates if the temperature threshold 2 event ::ZES_EVENT_TYPE_FLAG_TEMP_THRESHOLD2 is supported

}

ZesTempProperties (zes_temp_properties_t) Temperature sensor properties

type ZesTempSensors

type ZesTempSensors uintptr

ZesTempSensors (zes_temp_sensors_t) Temperature sensors

const (
	ZES_TEMP_SENSORS_GLOBAL            ZesTempSensors = 0          // ZES_TEMP_SENSORS_GLOBAL The maximum temperature across all device sensors
	ZES_TEMP_SENSORS_GPU               ZesTempSensors = 1          // ZES_TEMP_SENSORS_GPU The maximum temperature across all sensors in the GPU
	ZES_TEMP_SENSORS_MEMORY            ZesTempSensors = 2          // ZES_TEMP_SENSORS_MEMORY The maximum temperature across all sensors in the local memory
	ZES_TEMP_SENSORS_GLOBAL_MIN        ZesTempSensors = 3          // ZES_TEMP_SENSORS_GLOBAL_MIN The minimum temperature across all device sensors
	ZES_TEMP_SENSORS_GPU_MIN           ZesTempSensors = 4          // ZES_TEMP_SENSORS_GPU_MIN The minimum temperature across all sensors in the GPU
	ZES_TEMP_SENSORS_MEMORY_MIN        ZesTempSensors = 5          // ZES_TEMP_SENSORS_MEMORY_MIN The minimum temperature across all sensors in the local device memory
	ZES_TEMP_SENSORS_GPU_BOARD         ZesTempSensors = 6          // ZES_TEMP_SENSORS_GPU_BOARD The maximum temperature across all sensors in the GPU Board
	ZES_TEMP_SENSORS_GPU_BOARD_MIN     ZesTempSensors = 7          // ZES_TEMP_SENSORS_GPU_BOARD_MIN The minimum temperature across all sensors in the GPU Board
	ZES_TEMP_SENSORS_VOLTAGE_REGULATOR ZesTempSensors = 8          // ZES_TEMP_SENSORS_VOLTAGE_REGULATOR The maximum temperature across all sensors in the Voltage Regulator
	ZES_TEMP_SENSORS_FORCE_UINT32      ZesTempSensors = 0x7fffffff // ZES_TEMP_SENSORS_FORCE_UINT32 Value marking end of ZES_TEMP_SENSORS_* ENUMs

)

type ZesTempThreshold

type ZesTempThreshold struct {
	Enablelowtohigh ZeBool  // Enablelowtohigh [in,out] Trigger an event when the temperature crosses from below the threshold to above.
	Enablehightolow ZeBool  // Enablehightolow [in,out] Trigger an event when the temperature crosses from above the threshold to below.
	Threshold       float64 // Threshold [in,out] The threshold in degrees Celsius.

}

ZesTempThreshold (zes_temp_threshold_t) Temperature sensor threshold

type ZesUuid

type ZesUuid struct {
	Id [ZES_MAX_UUID_SIZE]uint8 // Id [out] opaque data representing a device UUID

}

ZesUuid (zes_uuid_t) Device universal unique id (UUID)

type ZesVfArrayType

type ZesVfArrayType uintptr

ZesVfArrayType (zes_vf_array_type_t) VF type

const (
	ZES_VF_ARRAY_TYPE_USER_VF_ARRAY    ZesVfArrayType = 0          // ZES_VF_ARRAY_TYPE_USER_VF_ARRAY User V-F array
	ZES_VF_ARRAY_TYPE_DEFAULT_VF_ARRAY ZesVfArrayType = 1          // ZES_VF_ARRAY_TYPE_DEFAULT_VF_ARRAY Default V-F array
	ZES_VF_ARRAY_TYPE_LIVE_VF_ARRAY    ZesVfArrayType = 2          // ZES_VF_ARRAY_TYPE_LIVE_VF_ARRAY Live V-F array
	ZES_VF_ARRAY_TYPE_FORCE_UINT32     ZesVfArrayType = 0x7fffffff // ZES_VF_ARRAY_TYPE_FORCE_UINT32 Value marking end of ZES_VF_ARRAY_TYPE_* ENUMs

)

type ZesVfExp2Capabilities

type ZesVfExp2Capabilities struct {
	Stype           ZesStructureType // Stype [in] type of this structure
	Pnext           unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Address         ZesPciAddress    // Address [out] Virtual function BDF address
	Vfdevicememsize uint64           // Vfdevicememsize [out] Virtual function memory size in bytes
	Vfid            uint32           // Vfid [out] Virtual Function ID

}

ZesVfExp2Capabilities (zes_vf_exp2_capabilities_t) Virtual function management capabilities

type ZesVfExpCapabilities

type ZesVfExpCapabilities struct {
	Stype           ZesStructureType // Stype [in] type of this structure
	Pnext           unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Address         ZesPciAddress    // Address [out] Virtual function BDF address
	Vfdevicememsize uint32           // Vfdevicememsize [out] Virtual function memory size in kilo bytes
	Vfid            uint32           // Vfid [out] Virtual Function ID

}

ZesVfExpCapabilities (zes_vf_exp_capabilities_t) Virtual function management capabilities (deprecated)

type ZesVfExpProperties

type ZesVfExpProperties struct {
	Stype   ZesStructureType      // Stype [in] type of this structure
	Pnext   unsafe.Pointer        // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Address ZesPciAddress         // Address [out] Virtual function BDF address
	Uuid    ZesUuid               // Uuid [out] universal unique identifier of the device
	Flags   ZesVfInfoUtilExpFlags // Flags [out] utilization flags available. May be 0 or a valid combination of ::zes_vf_info_util_exp_flag_t.

}

ZesVfExpProperties (zes_vf_exp_properties_t) Virtual function management properties (deprecated)

type ZesVfHandle

type ZesVfHandle uintptr

ZesVfHandle (zes_vf_handle_t) Handle for a Sysman virtual function management domain

type ZesVfInfoMemTypeExpFlags

type ZesVfInfoMemTypeExpFlags uint32

ZesVfInfoMemTypeExpFlags (zes_vf_info_mem_type_exp_flags_t) Virtual function memory types (deprecated)

const (
	ZES_VF_INFO_MEM_TYPE_EXP_FLAG_MEM_TYPE_SYSTEM ZesVfInfoMemTypeExpFlags = (1 << 0)   // ZES_VF_INFO_MEM_TYPE_EXP_FLAG_MEM_TYPE_SYSTEM System memory
	ZES_VF_INFO_MEM_TYPE_EXP_FLAG_MEM_TYPE_DEVICE ZesVfInfoMemTypeExpFlags = (1 << 1)   // ZES_VF_INFO_MEM_TYPE_EXP_FLAG_MEM_TYPE_DEVICE Device local memory
	ZES_VF_INFO_MEM_TYPE_EXP_FLAG_FORCE_UINT32    ZesVfInfoMemTypeExpFlags = 0x7fffffff // ZES_VF_INFO_MEM_TYPE_EXP_FLAG_FORCE_UINT32 Value marking end of ZES_VF_INFO_MEM_TYPE_EXP_FLAG_* ENUMs

)

type ZesVfInfoUtilExpFlags

type ZesVfInfoUtilExpFlags uint32

ZesVfInfoUtilExpFlags (zes_vf_info_util_exp_flags_t) Virtual function utilization flag bit fields (deprecated)

const (
	ZES_VF_INFO_UTIL_EXP_FLAG_INFO_NONE    ZesVfInfoUtilExpFlags = (1 << 0)   // ZES_VF_INFO_UTIL_EXP_FLAG_INFO_NONE No info associated with virtual function
	ZES_VF_INFO_UTIL_EXP_FLAG_INFO_MEM_CPU ZesVfInfoUtilExpFlags = (1 << 1)   // ZES_VF_INFO_UTIL_EXP_FLAG_INFO_MEM_CPU System memory utilization associated with virtual function
	ZES_VF_INFO_UTIL_EXP_FLAG_INFO_MEM_GPU ZesVfInfoUtilExpFlags = (1 << 2)   // ZES_VF_INFO_UTIL_EXP_FLAG_INFO_MEM_GPU Device memory utilization associated with virtual function
	ZES_VF_INFO_UTIL_EXP_FLAG_INFO_ENGINE  ZesVfInfoUtilExpFlags = (1 << 3)   // ZES_VF_INFO_UTIL_EXP_FLAG_INFO_ENGINE Engine utilization associated with virtual function
	ZES_VF_INFO_UTIL_EXP_FLAG_FORCE_UINT32 ZesVfInfoUtilExpFlags = 0x7fffffff // ZES_VF_INFO_UTIL_EXP_FLAG_FORCE_UINT32 Value marking end of ZES_VF_INFO_UTIL_EXP_FLAG_* ENUMs

)

type ZesVfManagementExpVersion

type ZesVfManagementExpVersion uintptr

ZesVfManagementExpVersion (zes_vf_management_exp_version_t) Virtual Function Management Extension Version(s)

const (
	ZES_VF_MANAGEMENT_EXP_VERSION_1_0          ZesVfManagementExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZES_VF_MANAGEMENT_EXP_VERSION_1_0 version 1.0 (deprecated)
	ZES_VF_MANAGEMENT_EXP_VERSION_1_1          ZesVfManagementExpVersion = ((1 << 16) | (1 & 0x0000ffff)) // ZES_VF_MANAGEMENT_EXP_VERSION_1_1 version 1.1 (deprecated)
	ZES_VF_MANAGEMENT_EXP_VERSION_1_2          ZesVfManagementExpVersion = ((1 << 16) | (2 & 0x0000ffff)) // ZES_VF_MANAGEMENT_EXP_VERSION_1_2 version 1.2
	ZES_VF_MANAGEMENT_EXP_VERSION_CURRENT      ZesVfManagementExpVersion = ((1 << 16) | (2 & 0x0000ffff)) // ZES_VF_MANAGEMENT_EXP_VERSION_CURRENT latest known version
	ZES_VF_MANAGEMENT_EXP_VERSION_FORCE_UINT32 ZesVfManagementExpVersion = 0x7fffffff                     // ZES_VF_MANAGEMENT_EXP_VERSION_FORCE_UINT32 Value marking end of ZES_VF_MANAGEMENT_EXP_VERSION_* ENUMs

)

type ZesVfProgramType

type ZesVfProgramType uintptr

ZesVfProgramType (zes_vf_program_type_t) Overclock V-F curve programing.

const (
	ZES_VF_PROGRAM_TYPE_VF_ARBITRARY ZesVfProgramType = 0 // ZES_VF_PROGRAM_TYPE_VF_ARBITRARY Can program an arbitrary number of V-F points up to the maximum number

	ZES_VF_PROGRAM_TYPE_VF_FREQ_FIXED ZesVfProgramType = 1 // ZES_VF_PROGRAM_TYPE_VF_FREQ_FIXED Can only program the voltage for the V-F points that it reads back -

	ZES_VF_PROGRAM_TYPE_VF_VOLT_FIXED ZesVfProgramType = 2 // ZES_VF_PROGRAM_TYPE_VF_VOLT_FIXED Can only program the frequency for the V-F points that is reads back -

	ZES_VF_PROGRAM_TYPE_FORCE_UINT32 ZesVfProgramType = 0x7fffffff // ZES_VF_PROGRAM_TYPE_FORCE_UINT32 Value marking end of ZES_VF_PROGRAM_TYPE_* ENUMs

)

type ZesVfProperty

type ZesVfProperty struct {
	Minfreq  float64 // Minfreq [out] Read the minimum frequency that can be be programmed in the custom V-F point..
	Maxfreq  float64 // Maxfreq [out] Read the maximum frequency that can be be programmed in the custom V-F point..
	Stepfreq float64 // Stepfreq [out] Read the frequency step that can be be programmed in the custom V-F point..
	Minvolt  float64 // Minvolt [out] Read the minimum voltage that can be be programmed in the custom V-F point..
	Maxvolt  float64 // Maxvolt [out] Read the maximum voltage that can be be programmed in the custom V-F point..
	Stepvolt float64 // Stepvolt [out] Read the voltage step that can be be programmed in the custom V-F point.

}

ZesVfProperty (zes_vf_property_t) Overclock VF properties / / @details / - Provides all the VF capabilities supported by the device for the / overclock domain.

type ZesVfType

type ZesVfType uintptr

ZesVfType (zes_vf_type_t) VF type

const (
	ZES_VF_TYPE_VOLT         ZesVfType = 0          // ZES_VF_TYPE_VOLT VF Voltage point
	ZES_VF_TYPE_FREQ         ZesVfType = 1          // ZES_VF_TYPE_FREQ VF Frequency point
	ZES_VF_TYPE_FORCE_UINT32 ZesVfType = 0x7fffffff // ZES_VF_TYPE_FORCE_UINT32 Value marking end of ZES_VF_TYPE_* ENUMs

)

type ZesVfUtilEngineExp

type ZesVfUtilEngineExp struct {
	Stype                ZesStructureType // Stype [in] type of this structure
	Pnext                unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type                 ZesEngineGroup   // Type [out] The engine group.
	Activecountervalue   uint64           // Activecountervalue [out] Represents active counter.
	Samplingcountervalue uint64           // Samplingcountervalue [out] Represents counter value when activeCounterValue was sampled.
	Timestamp            uint64           // Timestamp [out] Wall clock time when the activeCounterValue was sampled.

}

ZesVfUtilEngineExp (zes_vf_util_engine_exp_t) Provides engine utilization values for a virtual function (deprecated)

type ZesVfUtilEngineExp2

type ZesVfUtilEngineExp2 struct {
	Stype                ZesStructureType // Stype [in] type of this structure
	Pnext                unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Vfenginetype         ZesEngineGroup   // Vfenginetype [out] The engine group.
	Activecountervalue   uint64           // Activecountervalue [out] Represents active counter.
	Samplingcountervalue uint64           // Samplingcountervalue [out] Represents counter value when activeCounterValue was sampled. Refer to the formulae above for calculating the utilization percent

}

ZesVfUtilEngineExp2 (zes_vf_util_engine_exp2_t) Provides engine utilization values for a virtual function / / @details / - Percent utilization is calculated by taking two snapshots (s1, s2) and / using the equation: %util = (s2.activeCounterValue - / s1.activeCounterValue) / (s2.samplingCounterValue - / s1.samplingCounterValue)

type ZesVfUtilMemExp

type ZesVfUtilMemExp struct {
	Stype        ZesStructureType         // Stype [in] type of this structure
	Pnext        unsafe.Pointer           // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Memtypeflags ZesVfInfoMemTypeExpFlags // Memtypeflags [out] Memory type flags.
	Free         uint64                   // Free [out] Free memory size in bytes.
	Size         uint64                   // Size [out] Total allocatable memory in bytes.
	Timestamp    uint64                   // Timestamp [out] Wall clock time from VF when value was sampled.

}

ZesVfUtilMemExp (zes_vf_util_mem_exp_t) Provides memory utilization values for a virtual function (deprecated)

type ZesVfUtilMemExp2

type ZesVfUtilMemExp2 struct {
	Stype         ZesStructureType // Stype [in] type of this structure
	Pnext         unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Vfmemlocation ZesMemLoc        // Vfmemlocation [out] Location of this memory (system, device)
	Vfmemutilized uint64           // Vfmemutilized [out] Utilized memory size in bytes.

}

ZesVfUtilMemExp2 (zes_vf_util_mem_exp2_t) Provides memory utilization values for a virtual function

type ZetApiTracingExpVersion

type ZetApiTracingExpVersion uintptr

ZetApiTracingExpVersion (zet_api_tracing_exp_version_t) API Tracing Experimental Extension Version(s)

const (
	ZET_API_TRACING_EXP_VERSION_1_0          ZetApiTracingExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_API_TRACING_EXP_VERSION_1_0 version 1.0
	ZET_API_TRACING_EXP_VERSION_CURRENT      ZetApiTracingExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_API_TRACING_EXP_VERSION_CURRENT latest known version
	ZET_API_TRACING_EXP_VERSION_FORCE_UINT32 ZetApiTracingExpVersion = 0x7fffffff                     // ZET_API_TRACING_EXP_VERSION_FORCE_UINT32 Value marking end of ZET_API_TRACING_EXP_VERSION_* ENUMs

)

type ZetBaseDesc

type ZetBaseDesc struct {
	Stype ZetStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZetBaseDesc (zet_base_desc_t) Base for all descriptor types

type ZetBaseProperties

type ZetBaseProperties struct {
	Stype ZetStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

}

ZetBaseProperties (zet_base_properties_t) Base for all properties types

type ZetCommandListHandle

type ZetCommandListHandle ZeCommandListHandle

ZetCommandListHandle (zet_command_list_handle_t) Handle of command list object

type ZetConcurrentMetricGroupsExpVersion

type ZetConcurrentMetricGroupsExpVersion uintptr

ZetConcurrentMetricGroupsExpVersion (zet_concurrent_metric_groups_exp_version_t) Concurrent Metric Groups Experimental Extension Version(s)

const (
	ZET_CONCURRENT_METRIC_GROUPS_EXP_VERSION_1_0          ZetConcurrentMetricGroupsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_CONCURRENT_METRIC_GROUPS_EXP_VERSION_1_0 version 1.0
	ZET_CONCURRENT_METRIC_GROUPS_EXP_VERSION_CURRENT      ZetConcurrentMetricGroupsExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_CONCURRENT_METRIC_GROUPS_EXP_VERSION_CURRENT latest known version
	ZET_CONCURRENT_METRIC_GROUPS_EXP_VERSION_FORCE_UINT32 ZetConcurrentMetricGroupsExpVersion = 0x7fffffff                     // ZET_CONCURRENT_METRIC_GROUPS_EXP_VERSION_FORCE_UINT32 Value marking end of ZET_CONCURRENT_METRIC_GROUPS_EXP_VERSION_* ENUMs

)

type ZetContextHandle

type ZetContextHandle ZeContextHandle

ZetContextHandle (zet_context_handle_t) Handle of context object

type ZetCoreCallbacks

type ZetCoreCallbacks ZeCallbacks

ZetCoreCallbacks (zet_core_callbacks_t) Alias the existing callbacks definition for 'core' callbacks

type ZetDebugConfig

type ZetDebugConfig struct {
	Pid uint32 // Pid [in] the host process identifier

}

ZetDebugConfig (zet_debug_config_t) Debug configuration provided to ::zetDebugAttach

type ZetDebugDetachReason

type ZetDebugDetachReason uintptr

ZetDebugDetachReason (zet_debug_detach_reason_t) Supported debug detach reasons.

const (
	ZET_DEBUG_DETACH_REASON_INVALID      ZetDebugDetachReason = 0          // ZET_DEBUG_DETACH_REASON_INVALID The detach reason is not valid
	ZET_DEBUG_DETACH_REASON_HOST_EXIT    ZetDebugDetachReason = 1          // ZET_DEBUG_DETACH_REASON_HOST_EXIT The host process exited
	ZET_DEBUG_DETACH_REASON_FORCE_UINT32 ZetDebugDetachReason = 0x7fffffff // ZET_DEBUG_DETACH_REASON_FORCE_UINT32 Value marking end of ZET_DEBUG_DETACH_REASON_* ENUMs

)

type ZetDebugEvent

type ZetDebugEvent struct {
	Type  ZetDebugEventType  // Type [out] the event type
	Flags ZetDebugEventFlags // Flags [out] returns 0 (none) or a combination of ::zet_debug_event_flag_t
	Info  ZetDebugEventInfo  // Info [out] event type specific information

}

ZetDebugEvent (zet_debug_event_t) A debug event on the device.

type ZetDebugEventFlags

type ZetDebugEventFlags uint32

ZetDebugEventFlags (zet_debug_event_flags_t) Supported debug event flags.

const (
	ZET_DEBUG_EVENT_FLAG_NEED_ACK ZetDebugEventFlags = (1 << 0) // ZET_DEBUG_EVENT_FLAG_NEED_ACK The event needs to be acknowledged by calling

	ZET_DEBUG_EVENT_FLAG_FORCE_UINT32 ZetDebugEventFlags = 0x7fffffff // ZET_DEBUG_EVENT_FLAG_FORCE_UINT32 Value marking end of ZET_DEBUG_EVENT_FLAG_* ENUMs

)

type ZetDebugEventInfo

type ZetDebugEventInfo [32]byte

ZetDebugEventInfo (zet_debug_event_info_t) Event type-specific information

type ZetDebugEventInfoDetached

type ZetDebugEventInfoDetached struct {
	Reason ZetDebugDetachReason // Reason [out] the detach reason

}

ZetDebugEventInfoDetached (zet_debug_event_info_detached_t) Event information for ::ZET_DEBUG_EVENT_TYPE_DETACHED

type ZetDebugEventInfoModule

type ZetDebugEventInfoModule struct {
	Format      ZetModuleDebugInfoFormat // Format [out] the module format
	Modulebegin uint64                   // Modulebegin [out] the begin address of the in-memory module (inclusive)
	Moduleend   uint64                   // Moduleend [out] the end address of the in-memory module (exclusive)
	Load        uint64                   // Load [out] the load address of the module on the device

}

ZetDebugEventInfoModule (zet_debug_event_info_module_t) Event information for ::ZET_DEBUG_EVENT_TYPE_MODULE_LOAD and / ::ZET_DEBUG_EVENT_TYPE_MODULE_UNLOAD

type ZetDebugEventInfoPageFault

type ZetDebugEventInfoPageFault struct {
	Address uint64                  // Address [out] the faulting address
	Mask    uint64                  // Mask [out] the alignment mask
	Reason  ZetDebugPageFaultReason // Reason [out] the page fault reason

}

ZetDebugEventInfoPageFault (zet_debug_event_info_page_fault_t) Event information for ::ZET_DEBUG_EVENT_TYPE_PAGE_FAULT

type ZetDebugEventInfoThreadStopped

type ZetDebugEventInfoThreadStopped struct {
	Thread ZeDeviceThread // Thread [out] the stopped/unavailable thread

}

ZetDebugEventInfoThreadStopped (zet_debug_event_info_thread_stopped_t) Event information for ::ZET_DEBUG_EVENT_TYPE_THREAD_STOPPED and / ::ZET_DEBUG_EVENT_TYPE_THREAD_UNAVAILABLE

type ZetDebugEventType

type ZetDebugEventType uintptr

ZetDebugEventType (zet_debug_event_type_t) Supported debug event types.

const (
	ZET_DEBUG_EVENT_TYPE_INVALID            ZetDebugEventType = 0          // ZET_DEBUG_EVENT_TYPE_INVALID The event is invalid
	ZET_DEBUG_EVENT_TYPE_DETACHED           ZetDebugEventType = 1          // ZET_DEBUG_EVENT_TYPE_DETACHED The tool was detached
	ZET_DEBUG_EVENT_TYPE_PROCESS_ENTRY      ZetDebugEventType = 2          // ZET_DEBUG_EVENT_TYPE_PROCESS_ENTRY The debuggee process created command queues on the device
	ZET_DEBUG_EVENT_TYPE_PROCESS_EXIT       ZetDebugEventType = 3          // ZET_DEBUG_EVENT_TYPE_PROCESS_EXIT The debuggee process destroyed all command queues on the device
	ZET_DEBUG_EVENT_TYPE_MODULE_LOAD        ZetDebugEventType = 4          // ZET_DEBUG_EVENT_TYPE_MODULE_LOAD An in-memory module was loaded onto the device
	ZET_DEBUG_EVENT_TYPE_MODULE_UNLOAD      ZetDebugEventType = 5          // ZET_DEBUG_EVENT_TYPE_MODULE_UNLOAD An in-memory module is about to get unloaded from the device
	ZET_DEBUG_EVENT_TYPE_THREAD_STOPPED     ZetDebugEventType = 6          // ZET_DEBUG_EVENT_TYPE_THREAD_STOPPED The thread stopped due to a device exception
	ZET_DEBUG_EVENT_TYPE_THREAD_UNAVAILABLE ZetDebugEventType = 7          // ZET_DEBUG_EVENT_TYPE_THREAD_UNAVAILABLE The thread is not available to be stopped
	ZET_DEBUG_EVENT_TYPE_PAGE_FAULT         ZetDebugEventType = 8          // ZET_DEBUG_EVENT_TYPE_PAGE_FAULT A page request could not be completed on the device
	ZET_DEBUG_EVENT_TYPE_FORCE_UINT32       ZetDebugEventType = 0x7fffffff // ZET_DEBUG_EVENT_TYPE_FORCE_UINT32 Value marking end of ZET_DEBUG_EVENT_TYPE_* ENUMs

)

type ZetDebugMemorySpaceDesc

type ZetDebugMemorySpaceDesc struct {
	Stype   ZetStructureType        // Stype [in] type of this structure
	Pnext   unsafe.Pointer          // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type    ZetDebugMemorySpaceType // Type [in] type of memory space
	Address uint64                  // Address [in] the virtual address within the memory space

}

ZetDebugMemorySpaceDesc (zet_debug_memory_space_desc_t) Device memory space descriptor

type ZetDebugMemorySpaceType

type ZetDebugMemorySpaceType uintptr

ZetDebugMemorySpaceType (zet_debug_memory_space_type_t) Supported device memory space types.

const (
	ZET_DEBUG_MEMORY_SPACE_TYPE_DEFAULT      ZetDebugMemorySpaceType = 0          // ZET_DEBUG_MEMORY_SPACE_TYPE_DEFAULT default memory space (attribute may be omitted)
	ZET_DEBUG_MEMORY_SPACE_TYPE_SLM          ZetDebugMemorySpaceType = 1          // ZET_DEBUG_MEMORY_SPACE_TYPE_SLM shared local memory space (GPU-only)
	ZET_DEBUG_MEMORY_SPACE_TYPE_ELF          ZetDebugMemorySpaceType = 2          // ZET_DEBUG_MEMORY_SPACE_TYPE_ELF ELF file memory space
	ZET_DEBUG_MEMORY_SPACE_TYPE_BARRIER      ZetDebugMemorySpaceType = 3          // ZET_DEBUG_MEMORY_SPACE_TYPE_BARRIER Barrier memory space
	ZET_DEBUG_MEMORY_SPACE_TYPE_FORCE_UINT32 ZetDebugMemorySpaceType = 0x7fffffff // ZET_DEBUG_MEMORY_SPACE_TYPE_FORCE_UINT32 Value marking end of ZET_DEBUG_MEMORY_SPACE_TYPE_* ENUMs

)

type ZetDebugPageFaultReason

type ZetDebugPageFaultReason uintptr

ZetDebugPageFaultReason (zet_debug_page_fault_reason_t) Page fault reasons.

const (
	ZET_DEBUG_PAGE_FAULT_REASON_INVALID          ZetDebugPageFaultReason = 0          // ZET_DEBUG_PAGE_FAULT_REASON_INVALID The page fault reason is not valid
	ZET_DEBUG_PAGE_FAULT_REASON_MAPPING_ERROR    ZetDebugPageFaultReason = 1          // ZET_DEBUG_PAGE_FAULT_REASON_MAPPING_ERROR The address is not mapped
	ZET_DEBUG_PAGE_FAULT_REASON_PERMISSION_ERROR ZetDebugPageFaultReason = 2          // ZET_DEBUG_PAGE_FAULT_REASON_PERMISSION_ERROR Invalid access permissions
	ZET_DEBUG_PAGE_FAULT_REASON_FORCE_UINT32     ZetDebugPageFaultReason = 0x7fffffff // ZET_DEBUG_PAGE_FAULT_REASON_FORCE_UINT32 Value marking end of ZET_DEBUG_PAGE_FAULT_REASON_* ENUMs

)

type ZetDebugRegsetFlags

type ZetDebugRegsetFlags uint32

ZetDebugRegsetFlags (zet_debug_regset_flags_t) Supported general register set flags.

const (
	ZET_DEBUG_REGSET_FLAG_READABLE     ZetDebugRegsetFlags = (1 << 0)   // ZET_DEBUG_REGSET_FLAG_READABLE register set is readable
	ZET_DEBUG_REGSET_FLAG_WRITEABLE    ZetDebugRegsetFlags = (1 << 1)   // ZET_DEBUG_REGSET_FLAG_WRITEABLE register set is writeable
	ZET_DEBUG_REGSET_FLAG_FORCE_UINT32 ZetDebugRegsetFlags = 0x7fffffff // ZET_DEBUG_REGSET_FLAG_FORCE_UINT32 Value marking end of ZET_DEBUG_REGSET_FLAG_* ENUMs

)

type ZetDebugRegsetProperties

type ZetDebugRegsetProperties struct {
	Stype        ZetStructureType    // Stype [in] type of this structure
	Pnext        unsafe.Pointer      // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type         uint32              // Type [out] device-specific register set type
	Version      uint32              // Version [out] device-specific version of this register set
	Generalflags ZetDebugRegsetFlags // Generalflags [out] general register set flags
	Deviceflags  uint32              // Deviceflags [out] device-specific register set flags
	Count        uint32              // Count [out] number of registers in the set
	Bitsize      uint32              // Bitsize [out] the size of a register in bits
	Bytesize     uint32              // Bytesize [out] the size required for reading or writing a register in bytes

}

ZetDebugRegsetProperties (zet_debug_regset_properties_t) Device register set properties queried using / ::zetDebugGetRegisterSetProperties.

type ZetDebugSessionHandle

type ZetDebugSessionHandle uintptr

ZetDebugSessionHandle (zet_debug_session_handle_t) Debug session handle

type ZetDeviceDebugProperties

type ZetDeviceDebugProperties struct {
	Stype ZetStructureType            // Stype [in] type of this structure
	Pnext unsafe.Pointer              // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags ZetDeviceDebugPropertyFlags // Flags [out] returns 0 (none) or a valid combination of ::zet_device_debug_property_flag_t

}

ZetDeviceDebugProperties (zet_device_debug_properties_t) Device debug properties queried using ::zetDeviceGetDebugProperties.

type ZetDeviceDebugPropertyFlags

type ZetDeviceDebugPropertyFlags uint32

ZetDeviceDebugPropertyFlags (zet_device_debug_property_flags_t) Supported device debug property flags

const (
	ZET_DEVICE_DEBUG_PROPERTY_FLAG_ATTACH       ZetDeviceDebugPropertyFlags = (1 << 0)   // ZET_DEVICE_DEBUG_PROPERTY_FLAG_ATTACH the device supports attaching for debug
	ZET_DEVICE_DEBUG_PROPERTY_FLAG_FORCE_UINT32 ZetDeviceDebugPropertyFlags = 0x7fffffff // ZET_DEVICE_DEBUG_PROPERTY_FLAG_FORCE_UINT32 Value marking end of ZET_DEVICE_DEBUG_PROPERTY_FLAG_* ENUMs

)

type ZetDeviceHandle

type ZetDeviceHandle ZeDeviceHandle

ZetDeviceHandle (zet_device_handle_t) Handle of device object

type ZetDriverHandle

type ZetDriverHandle ZeDriverHandle

ZetDriverHandle (zet_driver_handle_t) Handle to a driver instance

type ZetExportDmaBufExpProperties

type ZetExportDmaBufExpProperties struct {
	Stype ZetStructureType // Stype [in] type of this structure
	Pnext unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Fd    int32            // Fd [out] the file descriptor handle that could be used to import the memory by the host process.
	Size  uintptr          // Size [out] size in bytes of the dma_buf

}

ZetExportDmaBufExpProperties (zet_export_dma_buf_exp_properties_t) Exported dma_buf properties queried using `pNext` of / ::zet_metric_group_properties_t or ::zet_metric_properties_t

type ZetExportMetricDataExpVersion

type ZetExportMetricDataExpVersion uintptr

ZetExportMetricDataExpVersion (zet_export_metric_data_exp_version_t) Exporting Metrics Data Experimental Extension Version(s)

const (
	ZET_EXPORT_METRIC_DATA_EXP_VERSION_1_0          ZetExportMetricDataExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_EXPORT_METRIC_DATA_EXP_VERSION_1_0 version 1.0
	ZET_EXPORT_METRIC_DATA_EXP_VERSION_CURRENT      ZetExportMetricDataExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_EXPORT_METRIC_DATA_EXP_VERSION_CURRENT latest known version
	ZET_EXPORT_METRIC_DATA_EXP_VERSION_FORCE_UINT32 ZetExportMetricDataExpVersion = 0x7fffffff                     // ZET_EXPORT_METRIC_DATA_EXP_VERSION_FORCE_UINT32 Value marking end of ZET_EXPORT_METRIC_DATA_EXP_VERSION_* ENUMs

)

type ZetKernelHandle

type ZetKernelHandle ZeKernelHandle

ZetKernelHandle (zet_kernel_handle_t) Handle of function object

type ZetMetricCalculateExpDesc

type ZetMetricCalculateExpDesc struct {
	Stype              ZetStructureType // Stype [in] type of this structure
	Pnext              unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Rawreportskipcount uint32           // Rawreportskipcount [in] number of reports to skip during calculation

}

ZetMetricCalculateExpDesc (zet_metric_calculate_exp_desc_t) Metrics calculation descriptor

type ZetMetricDecoderExpHandle

type ZetMetricDecoderExpHandle uintptr

ZetMetricDecoderExpHandle (zet_metric_decoder_exp_handle_t) Handle of metric decoder's object

type ZetMetricEntryExp

type ZetMetricEntryExp struct {
	Value       ZetValue // Value [out] value of the decodable metric entry or event. Number is meaningful based on the metric type.
	Timestamp   uint64   // Timestamp [out] timestamp at which the event happened.
	Metricindex uint32   // Metricindex [out] index to the decodable metric handle in the input array (phMetric) in ::zetMetricTracerDecodeExp().
	Onsubdevice ZeBool   // Onsubdevice [out] True if the event occurred on a sub-device; false means the device on which the metric tracer was opened does not have sub-devices.
	Subdeviceid uint32   // Subdeviceid [out] If onSubdevice is true, this gives the ID of the sub-device.

}

ZetMetricEntryExp (zet_metric_entry_exp_t) Decoded metric entry

type ZetMetricGlobalTimestampsResolutionExp

type ZetMetricGlobalTimestampsResolutionExp struct {
	Stype              ZetStructureType // Stype [in] type of this structure
	Pnext              unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Timerresolution    uint64           // Timerresolution [out] Returns the resolution of metrics timer (used for timestamps) in cycles/sec.
	Timestampvalidbits uint64           // Timestampvalidbits [out] Returns the number of valid bits in the timestamp value.

}

ZetMetricGlobalTimestampsResolutionExp (zet_metric_global_timestamps_resolution_exp_t) Metric timestamps resolution / / @details / - This structure may be returned from ::zetMetricGroupGetProperties via / the `pNext` member of ::zet_metric_group_properties_t. / - Used for mapping metric timestamps to other timers.

type ZetMetricGroupCalculationType

type ZetMetricGroupCalculationType uintptr

ZetMetricGroupCalculationType (zet_metric_group_calculation_type_t) Metric group calculation type

const (
	ZET_METRIC_GROUP_CALCULATION_TYPE_METRIC_VALUES     ZetMetricGroupCalculationType = 0          // ZET_METRIC_GROUP_CALCULATION_TYPE_METRIC_VALUES Calculated metric values from raw data.
	ZET_METRIC_GROUP_CALCULATION_TYPE_MAX_METRIC_VALUES ZetMetricGroupCalculationType = 1          // ZET_METRIC_GROUP_CALCULATION_TYPE_MAX_METRIC_VALUES Maximum metric values.
	ZET_METRIC_GROUP_CALCULATION_TYPE_FORCE_UINT32      ZetMetricGroupCalculationType = 0x7fffffff // ZET_METRIC_GROUP_CALCULATION_TYPE_FORCE_UINT32 Value marking end of ZET_METRIC_GROUP_CALCULATION_TYPE_* ENUMs

)

type ZetMetricGroupHandle

type ZetMetricGroupHandle uintptr

ZetMetricGroupHandle (zet_metric_group_handle_t) Handle of metric group's object

type ZetMetricGroupMarkerExpVersion

type ZetMetricGroupMarkerExpVersion uintptr

ZetMetricGroupMarkerExpVersion (zet_metric_group_marker_exp_version_t) Marker Support Using MetricGroup Experimental Extension Version(s)

const (
	ZET_METRIC_GROUP_MARKER_EXP_VERSION_1_0          ZetMetricGroupMarkerExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_METRIC_GROUP_MARKER_EXP_VERSION_1_0 version 1.0
	ZET_METRIC_GROUP_MARKER_EXP_VERSION_CURRENT      ZetMetricGroupMarkerExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_METRIC_GROUP_MARKER_EXP_VERSION_CURRENT latest known version
	ZET_METRIC_GROUP_MARKER_EXP_VERSION_FORCE_UINT32 ZetMetricGroupMarkerExpVersion = 0x7fffffff                     // ZET_METRIC_GROUP_MARKER_EXP_VERSION_FORCE_UINT32 Value marking end of ZET_METRIC_GROUP_MARKER_EXP_VERSION_* ENUMs

)

type ZetMetricGroupProperties

type ZetMetricGroupProperties struct {
	Stype        ZetStructureType                       // Stype [in] type of this structure
	Pnext        unsafe.Pointer                         // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Name         [ZET_MAX_METRIC_GROUP_NAME]byte        // Name [out] metric group name
	Description  [ZET_MAX_METRIC_GROUP_DESCRIPTION]byte // Description [out] metric group description
	Samplingtype ZetMetricGroupSamplingTypeFlags        // Samplingtype [out] metric group sampling type. returns a combination of ::zet_metric_group_sampling_type_flag_t.
	Domain       uint32                                 // Domain [out] metric group domain number. Cannot use multiple, simultaneous metric groups from the same domain.
	Metriccount  uint32                                 // Metriccount [out] metric count belonging to this group

}

ZetMetricGroupProperties (zet_metric_group_properties_t) Metric group properties queried using ::zetMetricGroupGetProperties

type ZetMetricGroupSamplingTypeFlags

type ZetMetricGroupSamplingTypeFlags uint32

ZetMetricGroupSamplingTypeFlags (zet_metric_group_sampling_type_flags_t) Metric group sampling type

const (
	ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_EVENT_BASED      ZetMetricGroupSamplingTypeFlags = (1 << 0)   // ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_EVENT_BASED Event based sampling
	ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_TIME_BASED       ZetMetricGroupSamplingTypeFlags = (1 << 1)   // ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_TIME_BASED Time based sampling
	ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_EXP_TRACER_BASED ZetMetricGroupSamplingTypeFlags = (1 << 2)   // ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_EXP_TRACER_BASED Experimental Tracer based sampling
	ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_FORCE_UINT32     ZetMetricGroupSamplingTypeFlags = 0x7fffffff // ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_FORCE_UINT32 Value marking end of ZET_METRIC_GROUP_SAMPLING_TYPE_FLAG_* ENUMs

)

type ZetMetricGroupTypeExp

type ZetMetricGroupTypeExp struct {
	Stype ZetStructureType           // Stype [in] type of this structure
	Pnext unsafe.Pointer             // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type  ZetMetricGroupTypeExpFlags // Type [out] metric group type. returns a combination of ::zet_metric_group_type_exp_flags_t.

}

ZetMetricGroupTypeExp (zet_metric_group_type_exp_t) Query the metric group type using `pNext` of / ::zet_metric_group_properties_t

type ZetMetricGroupTypeExpFlags

type ZetMetricGroupTypeExpFlags uint32

ZetMetricGroupTypeExpFlags (zet_metric_group_type_exp_flags_t) Metric group type

const (
	ZET_METRIC_GROUP_TYPE_EXP_FLAG_EXPORT_DMA_BUF ZetMetricGroupTypeExpFlags = (1 << 0) // ZET_METRIC_GROUP_TYPE_EXP_FLAG_EXPORT_DMA_BUF Metric group and metrics exports memory using linux dma-buf, which

	ZET_METRIC_GROUP_TYPE_EXP_FLAG_USER_CREATED ZetMetricGroupTypeExpFlags = (1 << 1)   // ZET_METRIC_GROUP_TYPE_EXP_FLAG_USER_CREATED Metric group created using ::zetDeviceCreateMetricGroupsFromMetricsExp
	ZET_METRIC_GROUP_TYPE_EXP_FLAG_OTHER        ZetMetricGroupTypeExpFlags = (1 << 2)   // ZET_METRIC_GROUP_TYPE_EXP_FLAG_OTHER Metric group which has a collection of metrics
	ZET_METRIC_GROUP_TYPE_EXP_FLAG_MARKER       ZetMetricGroupTypeExpFlags = (1 << 3)   // ZET_METRIC_GROUP_TYPE_EXP_FLAG_MARKER Metric group is capable of generating Marker metric
	ZET_METRIC_GROUP_TYPE_EXP_FLAG_FORCE_UINT32 ZetMetricGroupTypeExpFlags = 0x7fffffff // ZET_METRIC_GROUP_TYPE_EXP_FLAG_FORCE_UINT32 Value marking end of ZET_METRIC_GROUP_TYPE_EXP_FLAG_* ENUMs

)

type ZetMetricHandle

type ZetMetricHandle uintptr

ZetMetricHandle (zet_metric_handle_t) Handle of metric's object

type ZetMetricProgrammableExpHandle

type ZetMetricProgrammableExpHandle uintptr

ZetMetricProgrammableExpHandle (zet_metric_programmable_exp_handle_t) Handle of metric programmable's object

type ZetMetricProgrammableExpProperties

type ZetMetricProgrammableExpProperties struct {
	Stype          ZetStructureType                                  // Stype [in] type of this structure
	Pnext          unsafe.Pointer                                    // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Name           [ZET_MAX_METRIC_PROGRAMMABLE_NAME_EXP]byte        // Name [out] metric programmable name
	Description    [ZET_MAX_METRIC_PROGRAMMABLE_DESCRIPTION_EXP]byte // Description [out] metric programmable description
	Component      [ZET_MAX_METRIC_PROGRAMMABLE_COMPONENT_EXP]byte   // Component [out] metric programmable component
	Tiernumber     uint32                                            // Tiernumber [out] tier number
	Domain         uint32                                            // Domain [out] metric domain number.
	Parametercount uint32                                            // Parametercount [out] number of parameters in the programmable
	Samplingtype   ZetMetricGroupSamplingTypeFlags                   // Samplingtype [out] metric sampling type. returns a combination of ::zet_metric_group_sampling_type_flag_t.
	Sourceid       uint32                                            // Sourceid [out] unique metric source identifier(within platform)to identify the HW block where the metric is collected.

}

ZetMetricProgrammableExpProperties (zet_metric_programmable_exp_properties_t) Metric Programmable properties queried using / ::zetMetricProgrammableGetPropertiesExp

type ZetMetricProgrammableExpVersion

type ZetMetricProgrammableExpVersion uintptr

ZetMetricProgrammableExpVersion (zet_metric_programmable_exp_version_t) Programmable Metrics Experimental Extension Version(s)

const (
	ZET_METRIC_PROGRAMMABLE_EXP_VERSION_1_1          ZetMetricProgrammableExpVersion = ((1 << 16) | (1 & 0x0000ffff)) // ZET_METRIC_PROGRAMMABLE_EXP_VERSION_1_1 version 1.1
	ZET_METRIC_PROGRAMMABLE_EXP_VERSION_CURRENT      ZetMetricProgrammableExpVersion = ((1 << 16) | (1 & 0x0000ffff)) // ZET_METRIC_PROGRAMMABLE_EXP_VERSION_CURRENT latest known version
	ZET_METRIC_PROGRAMMABLE_EXP_VERSION_FORCE_UINT32 ZetMetricProgrammableExpVersion = 0x7fffffff                     // ZET_METRIC_PROGRAMMABLE_EXP_VERSION_FORCE_UINT32 Value marking end of ZET_METRIC_PROGRAMMABLE_EXP_VERSION_* ENUMs

)

type ZetMetricProgrammableParamInfoExp

type ZetMetricProgrammableParamInfoExp struct {
	Stype          ZetStructureType                                     // Stype [in] type of this structure
	Pnext          unsafe.Pointer                                       // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type           ZetMetricProgrammableParamTypeExp                    // Type [out] programmable parameter type
	Name           [ZET_MAX_METRIC_PROGRAMMABLE_PARAMETER_NAME_EXP]byte // Name [out] metric programmable parameter name
	Valueinfotype  ZetValueInfoTypeExp                                  // Valueinfotype [out] value info type
	Defaultvalue   ZetValue                                             // Defaultvalue [out] default value for the parameter
	Valueinfocount uint32                                               // Valueinfocount [out] count of ::zet_metric_programmable_param_value_info_exp_t

}

ZetMetricProgrammableParamInfoExp (zet_metric_programmable_param_info_exp_t) Metric Programmable parameter information

type ZetMetricProgrammableParamTypeExp

type ZetMetricProgrammableParamTypeExp uintptr

ZetMetricProgrammableParamTypeExp (zet_metric_programmable_param_type_exp_t) Metric Programmable Parameter types

const (
	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_DISAGGREGATION            ZetMetricProgrammableParamTypeExp = 0 // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_DISAGGREGATION Metric is disaggregated.
	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_LATENCY                   ZetMetricProgrammableParamTypeExp = 1 // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_LATENCY Metric for latency measurement.
	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_UTILIZATION ZetMetricProgrammableParamTypeExp = 2 // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_UTILIZATION Produces normalization in percent using raw_metric * 100 / cycles / HW

	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_AVERAGE ZetMetricProgrammableParamTypeExp = 3          // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_AVERAGE Produces normalization using raw_metric / HW instance_count.
	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_RATE    ZetMetricProgrammableParamTypeExp = 4          // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_RATE Produces normalization average using raw_metric / timestamp.
	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_BYTES   ZetMetricProgrammableParamTypeExp = 5          // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_NORMALIZATION_BYTES Produces normalization average using raw_metric * n bytes.
	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_GENERIC               ZetMetricProgrammableParamTypeExp = 6          // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_GENERIC Generic Parameter type. Please refer the parameter's description.
	ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_FORCE_UINT32          ZetMetricProgrammableParamTypeExp = 0x7fffffff // ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_FORCE_UINT32 Value marking end of ZET_METRIC_PROGRAMMABLE_PARAM_TYPE_EXP_* ENUMs

)

type ZetMetricProgrammableParamValueExp

type ZetMetricProgrammableParamValueExp struct {
	Value ZetValue // Value [in] parameter value

}

ZetMetricProgrammableParamValueExp (zet_metric_programmable_param_value_exp_t) Metric Programmable parameter value

type ZetMetricProgrammableParamValueInfoExp

type ZetMetricProgrammableParamValueInfoExp struct {
	Stype       ZetStructureType                                        // Stype [in] type of this structure
	Pnext       unsafe.Pointer                                          // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Valueinfo   ZetValueInfoExp                                         // Valueinfo [out] information about the parameter value
	Description [ZET_MAX_METRIC_PROGRAMMABLE_VALUE_DESCRIPTION_EXP]byte // Description [out] description about the value

}

ZetMetricProgrammableParamValueInfoExp (zet_metric_programmable_param_value_info_exp_t) Metric Programmable parameter value information

type ZetMetricProperties

type ZetMetricProperties struct {
	Stype       ZetStructureType                  // Stype [in] type of this structure
	Pnext       unsafe.Pointer                    // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Name        [ZET_MAX_METRIC_NAME]byte         // Name [out] metric name
	Description [ZET_MAX_METRIC_DESCRIPTION]byte  // Description [out] metric description
	Component   [ZET_MAX_METRIC_COMPONENT]byte    // Component [out] metric component
	Tiernumber  uint32                            // Tiernumber [out] number of tier
	Metrictype  ZetMetricType                     // Metrictype [out] metric type
	Resulttype  ZetValueType                      // Resulttype [out] metric result type
	Resultunits [ZET_MAX_METRIC_RESULT_UNITS]byte // Resultunits [out] metric result units

}

ZetMetricProperties (zet_metric_properties_t) Metric properties queried using ::zetMetricGetProperties

type ZetMetricQueryHandle

type ZetMetricQueryHandle uintptr

ZetMetricQueryHandle (zet_metric_query_handle_t) Handle of metric query's object

type ZetMetricQueryPoolDesc

type ZetMetricQueryPoolDesc struct {
	Stype ZetStructureType       // Stype [in] type of this structure
	Pnext unsafe.Pointer         // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Type  ZetMetricQueryPoolType // Type [in] Query pool type.
	Count uint32                 // Count [in] Internal slots count within query pool object.

}

ZetMetricQueryPoolDesc (zet_metric_query_pool_desc_t) Metric query pool description

type ZetMetricQueryPoolHandle

type ZetMetricQueryPoolHandle uintptr

ZetMetricQueryPoolHandle (zet_metric_query_pool_handle_t) Handle of metric query pool's object

type ZetMetricQueryPoolType

type ZetMetricQueryPoolType uintptr

ZetMetricQueryPoolType (zet_metric_query_pool_type_t) Metric query pool types

const (
	ZET_METRIC_QUERY_POOL_TYPE_PERFORMANCE  ZetMetricQueryPoolType = 0          // ZET_METRIC_QUERY_POOL_TYPE_PERFORMANCE Performance metric query pool.
	ZET_METRIC_QUERY_POOL_TYPE_EXECUTION    ZetMetricQueryPoolType = 1          // ZET_METRIC_QUERY_POOL_TYPE_EXECUTION Skips workload execution between begin/end calls.
	ZET_METRIC_QUERY_POOL_TYPE_FORCE_UINT32 ZetMetricQueryPoolType = 0x7fffffff // ZET_METRIC_QUERY_POOL_TYPE_FORCE_UINT32 Value marking end of ZET_METRIC_QUERY_POOL_TYPE_* ENUMs

)

type ZetMetricSourceIdExp

type ZetMetricSourceIdExp struct {
	Stype    ZetStructureType // Stype [in] type of this structure
	Pnext    unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Sourceid uint32           // Sourceid [out] unique number representing the Metric Source.

}

ZetMetricSourceIdExp (zet_metric_source_id_exp_t) Query the metric source unique identifier using `pNext` of / ::zet_metric_group_properties_t

type ZetMetricStreamerDesc

type ZetMetricStreamerDesc struct {
	Stype               ZetStructureType // Stype [in] type of this structure
	Pnext               unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Notifyeverynreports uint32           // Notifyeverynreports [in,out] number of collected reports after which notification event will be signaled. If the requested value is not supported exactly, then the driver may use a value that is the closest supported approximation and shall update this member during ::zetMetricStreamerOpen.
	Samplingperiod      uint32           // Samplingperiod [in,out] streamer sampling period in nanoseconds. If the requested value is not supported exactly, then the driver may use a value that is the closest supported approximation and shall update this member during ::zetMetricStreamerOpen.

}

ZetMetricStreamerDesc (zet_metric_streamer_desc_t) Metric streamer descriptor

type ZetMetricStreamerHandle

type ZetMetricStreamerHandle uintptr

ZetMetricStreamerHandle (zet_metric_streamer_handle_t) Handle of metric streamer's object

type ZetMetricTracerExpDesc

type ZetMetricTracerExpDesc struct {
	Stype             ZetStructureType // Stype [in] type of this structure
	Pnext             unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Notifyeverynbytes uint32           // Notifyeverynbytes [in,out] number of collected bytes after which notification event will be signaled. If the requested value is not supported exactly, then the driver may use a value that is the closest supported approximation and shall update this member during ::zetMetricTracerCreateExp.

}

ZetMetricTracerExpDesc (zet_metric_tracer_exp_desc_t) Metric tracer descriptor

type ZetMetricTracerExpHandle

type ZetMetricTracerExpHandle uintptr

ZetMetricTracerExpHandle (zet_metric_tracer_exp_handle_t) Handle of metric tracer's object

type ZetMetricTracerExpVersion

type ZetMetricTracerExpVersion uintptr

ZetMetricTracerExpVersion (zet_metric_tracer_exp_version_t) Metric Tracer Experimental Extension Version(s)

const (
	ZET_METRIC_TRACER_EXP_VERSION_1_0          ZetMetricTracerExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_METRIC_TRACER_EXP_VERSION_1_0 version 1.0
	ZET_METRIC_TRACER_EXP_VERSION_CURRENT      ZetMetricTracerExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_METRIC_TRACER_EXP_VERSION_CURRENT latest known version
	ZET_METRIC_TRACER_EXP_VERSION_FORCE_UINT32 ZetMetricTracerExpVersion = 0x7fffffff                     // ZET_METRIC_TRACER_EXP_VERSION_FORCE_UINT32 Value marking end of ZET_METRIC_TRACER_EXP_VERSION_* ENUMs

)

type ZetMetricType

type ZetMetricType uintptr

ZetMetricType (zet_metric_type_t) Metric types

const (
	ZET_METRIC_TYPE_DURATION                        ZetMetricType = 0          // ZET_METRIC_TYPE_DURATION Metric type: duration
	ZET_METRIC_TYPE_EVENT                           ZetMetricType = 1          // ZET_METRIC_TYPE_EVENT Metric type: event
	ZET_METRIC_TYPE_EVENT_WITH_RANGE                ZetMetricType = 2          // ZET_METRIC_TYPE_EVENT_WITH_RANGE Metric type: event with range
	ZET_METRIC_TYPE_THROUGHPUT                      ZetMetricType = 3          // ZET_METRIC_TYPE_THROUGHPUT Metric type: throughput
	ZET_METRIC_TYPE_TIMESTAMP                       ZetMetricType = 4          // ZET_METRIC_TYPE_TIMESTAMP Metric type: timestamp
	ZET_METRIC_TYPE_FLAG                            ZetMetricType = 5          // ZET_METRIC_TYPE_FLAG Metric type: flag
	ZET_METRIC_TYPE_RATIO                           ZetMetricType = 6          // ZET_METRIC_TYPE_RATIO Metric type: ratio
	ZET_METRIC_TYPE_RAW                             ZetMetricType = 7          // ZET_METRIC_TYPE_RAW Metric type: raw
	ZET_METRIC_TYPE_EVENT_EXP_TIMESTAMP             ZetMetricType = 0x7ffffff9 // ZET_METRIC_TYPE_EVENT_EXP_TIMESTAMP Metric type: event with only timestamp and value has no meaning
	ZET_METRIC_TYPE_EVENT_EXP_START                 ZetMetricType = 0x7ffffffa // ZET_METRIC_TYPE_EVENT_EXP_START Metric type: the first event of a start/end event pair
	ZET_METRIC_TYPE_EVENT_EXP_END                   ZetMetricType = 0x7ffffffb // ZET_METRIC_TYPE_EVENT_EXP_END Metric type: the second event of a start/end event pair
	ZET_METRIC_TYPE_EVENT_EXP_MONOTONIC_WRAPS_VALUE ZetMetricType = 0x7ffffffc // ZET_METRIC_TYPE_EVENT_EXP_MONOTONIC_WRAPS_VALUE Metric type: value of the event is a monotonically increasing value

	ZET_METRIC_TYPE_EXP_EXPORT_DMA_BUF ZetMetricType = 0x7ffffffd // ZET_METRIC_TYPE_EXP_EXPORT_DMA_BUF Metric which exports linux dma_buf, which could be imported/mapped to

	ZET_METRIC_TYPE_IP_EXP ZetMetricType = 0x7ffffffe // ZET_METRIC_TYPE_IP_EXP Metric type: instruction pointer. Deprecated, use

	ZET_METRIC_TYPE_IP           ZetMetricType = 0x7ffffffe // ZET_METRIC_TYPE_IP Metric type: instruction pointer
	ZET_METRIC_TYPE_FORCE_UINT32 ZetMetricType = 0x7fffffff // ZET_METRIC_TYPE_FORCE_UINT32 Value marking end of ZET_METRIC_TYPE_* ENUMs

)

type ZetMetricsRuntimeEnableDisableExpVersion

type ZetMetricsRuntimeEnableDisableExpVersion uintptr

ZetMetricsRuntimeEnableDisableExpVersion (zet_metrics_runtime_enable_disable_exp_version_t) Runtime Enabling and Disabling Metrics Extension Version(s)

const (
	ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_1_0          ZetMetricsRuntimeEnableDisableExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_1_0 version 1.0
	ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_CURRENT      ZetMetricsRuntimeEnableDisableExpVersion = ((1 << 16) | (0 & 0x0000ffff)) // ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_CURRENT latest known version
	ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_FORCE_UINT32 ZetMetricsRuntimeEnableDisableExpVersion = 0x7fffffff                     // ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_FORCE_UINT32 Value marking end of ZET_METRICS_RUNTIME_ENABLE_DISABLE_EXP_VERSION_* ENUMs

)

type ZetModuleDebugInfoFormat

type ZetModuleDebugInfoFormat uintptr

ZetModuleDebugInfoFormat (zet_module_debug_info_format_t) Supported module debug info formats.

const (
	ZET_MODULE_DEBUG_INFO_FORMAT_ELF_DWARF    ZetModuleDebugInfoFormat = 0          // ZET_MODULE_DEBUG_INFO_FORMAT_ELF_DWARF Format is ELF/DWARF
	ZET_MODULE_DEBUG_INFO_FORMAT_FORCE_UINT32 ZetModuleDebugInfoFormat = 0x7fffffff // ZET_MODULE_DEBUG_INFO_FORMAT_FORCE_UINT32 Value marking end of ZET_MODULE_DEBUG_INFO_FORMAT_* ENUMs

)

type ZetModuleHandle

type ZetModuleHandle ZeModuleHandle

ZetModuleHandle (zet_module_handle_t) Handle of module object

type ZetProfileFlags

type ZetProfileFlags uint32

ZetProfileFlags (zet_profile_flags_t) Supportted profile features

const (
	ZET_PROFILE_FLAG_REGISTER_REALLOCATION ZetProfileFlags = (1 << 0) // ZET_PROFILE_FLAG_REGISTER_REALLOCATION request the compiler attempt to minimize register usage as much as

	ZET_PROFILE_FLAG_FREE_REGISTER_INFO ZetProfileFlags = (1 << 1)   // ZET_PROFILE_FLAG_FREE_REGISTER_INFO request the compiler generate free register info
	ZET_PROFILE_FLAG_FORCE_UINT32       ZetProfileFlags = 0x7fffffff // ZET_PROFILE_FLAG_FORCE_UINT32 Value marking end of ZET_PROFILE_FLAG_* ENUMs

)

type ZetProfileFreeRegisterToken

type ZetProfileFreeRegisterToken struct {
	Type  ZetProfileTokenType // Type [out] type of token
	Size  uint32              // Size [out] total size of the token, in bytes
	Count uint32              // Count [out] number of register sequences immediately following this structure

}

ZetProfileFreeRegisterToken (zet_profile_free_register_token_t) Profile free register token detailing unused registers in the current / function

type ZetProfileProperties

type ZetProfileProperties struct {
	Stype     ZetStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer   // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Flags     ZetProfileFlags  // Flags [out] indicates which flags were enabled during compilation. returns 0 (none) or a combination of ::zet_profile_flag_t
	Numtokens uint32           // Numtokens [out] number of tokens immediately following this structure

}

ZetProfileProperties (zet_profile_properties_t) Profiling meta-data for instrumentation

type ZetProfileRegisterSequence

type ZetProfileRegisterSequence struct {
	Start uint32 // Start [out] starting byte in the register table, representing the start of unused bytes in the current function
	Count uint32 // Count [out] number of consecutive bytes in the sequence, starting from start

}

ZetProfileRegisterSequence (zet_profile_register_sequence_t) Profile register sequence detailing consecutive bytes, all of which / are unused

type ZetProfileTokenType

type ZetProfileTokenType uintptr

ZetProfileTokenType (zet_profile_token_type_t) Supported profile token types

const (
	ZET_PROFILE_TOKEN_TYPE_FREE_REGISTER ZetProfileTokenType = 0          // ZET_PROFILE_TOKEN_TYPE_FREE_REGISTER GRF info
	ZET_PROFILE_TOKEN_TYPE_FORCE_UINT32  ZetProfileTokenType = 0x7fffffff // ZET_PROFILE_TOKEN_TYPE_FORCE_UINT32 Value marking end of ZET_PROFILE_TOKEN_TYPE_* ENUMs

)

type ZetStructureType

type ZetStructureType uintptr

ZetStructureType (zet_structure_type_t) Defines structure types

const (
	ZET_STRUCTURE_TYPE_METRIC_GROUP_PROPERTIES                  ZetStructureType = 0x1 // ZET_STRUCTURE_TYPE_METRIC_GROUP_PROPERTIES ::zet_metric_group_properties_t
	ZET_STRUCTURE_TYPE_METRIC_PROPERTIES                        ZetStructureType = 0x2 // ZET_STRUCTURE_TYPE_METRIC_PROPERTIES ::zet_metric_properties_t
	ZET_STRUCTURE_TYPE_METRIC_STREAMER_DESC                     ZetStructureType = 0x3 // ZET_STRUCTURE_TYPE_METRIC_STREAMER_DESC ::zet_metric_streamer_desc_t
	ZET_STRUCTURE_TYPE_METRIC_QUERY_POOL_DESC                   ZetStructureType = 0x4 // ZET_STRUCTURE_TYPE_METRIC_QUERY_POOL_DESC ::zet_metric_query_pool_desc_t
	ZET_STRUCTURE_TYPE_PROFILE_PROPERTIES                       ZetStructureType = 0x5 // ZET_STRUCTURE_TYPE_PROFILE_PROPERTIES ::zet_profile_properties_t
	ZET_STRUCTURE_TYPE_DEVICE_DEBUG_PROPERTIES                  ZetStructureType = 0x6 // ZET_STRUCTURE_TYPE_DEVICE_DEBUG_PROPERTIES ::zet_device_debug_properties_t
	ZET_STRUCTURE_TYPE_DEBUG_MEMORY_SPACE_DESC                  ZetStructureType = 0x7 // ZET_STRUCTURE_TYPE_DEBUG_MEMORY_SPACE_DESC ::zet_debug_memory_space_desc_t
	ZET_STRUCTURE_TYPE_DEBUG_REGSET_PROPERTIES                  ZetStructureType = 0x8 // ZET_STRUCTURE_TYPE_DEBUG_REGSET_PROPERTIES ::zet_debug_regset_properties_t
	ZET_STRUCTURE_TYPE_GLOBAL_METRICS_TIMESTAMPS_EXP_PROPERTIES ZetStructureType = 0x9 // ZET_STRUCTURE_TYPE_GLOBAL_METRICS_TIMESTAMPS_EXP_PROPERTIES ::zet_metric_global_timestamps_resolution_exp_t. Deprecated, use

	ZET_STRUCTURE_TYPE_METRIC_GLOBAL_TIMESTAMPS_RESOLUTION_EXP ZetStructureType = 0x9        // ZET_STRUCTURE_TYPE_METRIC_GLOBAL_TIMESTAMPS_RESOLUTION_EXP ::zet_metric_global_timestamps_resolution_exp_t
	ZET_STRUCTURE_TYPE_TRACER_EXP_DESC                         ZetStructureType = 0x00010001 // ZET_STRUCTURE_TYPE_TRACER_EXP_DESC ::zet_tracer_exp_desc_t
	ZET_STRUCTURE_TYPE_METRICS_CALCULATE_EXP_DESC              ZetStructureType = 0x00010002 // ZET_STRUCTURE_TYPE_METRICS_CALCULATE_EXP_DESC ::zet_metric_calculate_exp_desc_t. Deprecated, use

	ZET_STRUCTURE_TYPE_METRIC_CALCULATE_EXP_DESC                ZetStructureType = 0x00010002 // ZET_STRUCTURE_TYPE_METRIC_CALCULATE_EXP_DESC ::zet_metric_calculate_exp_desc_t
	ZET_STRUCTURE_TYPE_METRIC_PROGRAMMABLE_EXP_PROPERTIES       ZetStructureType = 0x00010003 // ZET_STRUCTURE_TYPE_METRIC_PROGRAMMABLE_EXP_PROPERTIES ::zet_metric_programmable_exp_properties_t
	ZET_STRUCTURE_TYPE_METRIC_PROGRAMMABLE_PARAM_INFO_EXP       ZetStructureType = 0x00010004 // ZET_STRUCTURE_TYPE_METRIC_PROGRAMMABLE_PARAM_INFO_EXP ::zet_metric_programmable_param_info_exp_t
	ZET_STRUCTURE_TYPE_METRIC_PROGRAMMABLE_PARAM_VALUE_INFO_EXP ZetStructureType = 0x00010005 // ZET_STRUCTURE_TYPE_METRIC_PROGRAMMABLE_PARAM_VALUE_INFO_EXP ::zet_metric_programmable_param_value_info_exp_t
	ZET_STRUCTURE_TYPE_METRIC_GROUP_TYPE_EXP                    ZetStructureType = 0x00010006 // ZET_STRUCTURE_TYPE_METRIC_GROUP_TYPE_EXP ::zet_metric_group_type_exp_t
	ZET_STRUCTURE_TYPE_EXPORT_DMA_EXP_PROPERTIES                ZetStructureType = 0x00010007 // ZET_STRUCTURE_TYPE_EXPORT_DMA_EXP_PROPERTIES ::zet_export_dma_buf_exp_properties_t
	ZET_STRUCTURE_TYPE_METRIC_TRACER_EXP_DESC                   ZetStructureType = 0x00010008 // ZET_STRUCTURE_TYPE_METRIC_TRACER_EXP_DESC ::zet_metric_tracer_exp_desc_t
	ZET_STRUCTURE_TYPE_METRIC_SOURCE_ID_EXP                     ZetStructureType = 0x00010009 // ZET_STRUCTURE_TYPE_METRIC_SOURCE_ID_EXP ::zet_metric_source_id_exp_t
	ZET_STRUCTURE_TYPE_FORCE_UINT32                             ZetStructureType = 0x7fffffff // ZET_STRUCTURE_TYPE_FORCE_UINT32 Value marking end of ZET_STRUCTURE_TYPE_* ENUMs

)

type ZetTracerExpDesc

type ZetTracerExpDesc struct {
	Stype     ZetStructureType // Stype [in] type of this structure
	Pnext     unsafe.Pointer   // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
	Puserdata unsafe.Pointer   // Puserdata [in] pointer passed to every tracer's callbacks

}

ZetTracerExpDesc (zet_tracer_exp_desc_t) Tracer descriptor

type ZetTracerExpHandle

type ZetTracerExpHandle uintptr

ZetTracerExpHandle (zet_tracer_exp_handle_t) Handle of tracer object

type ZetTypedValue

type ZetTypedValue struct {
	Type  ZetValueType // Type [out] type of value
	Value ZetValue     // Value [out] value

}

ZetTypedValue (zet_typed_value_t) Typed value

type ZetValue

type ZetValue [8]byte

ZetValue (zet_value_t) Union of values

type ZetValueFp64RangeExp

type ZetValueFp64RangeExp struct {
	Fp64min float64 // Fp64min [out] minimum value of the range
	Fp64max float64 // Fp64max [out] maximum value of the range

}

ZetValueFp64RangeExp (zet_value_fp64_range_exp_t) Value info of type float64 range

type ZetValueInfoExp

type ZetValueInfoExp [16]byte

ZetValueInfoExp (zet_value_info_exp_t) Union of value information

type ZetValueInfoTypeExp

type ZetValueInfoTypeExp uintptr

ZetValueInfoTypeExp (zet_value_info_type_exp_t) Supported value info types

const (
	ZET_VALUE_INFO_TYPE_EXP_UINT32        ZetValueInfoTypeExp = 0          // ZET_VALUE_INFO_TYPE_EXP_UINT32 32-bit unsigned-integer
	ZET_VALUE_INFO_TYPE_EXP_UINT64        ZetValueInfoTypeExp = 1          // ZET_VALUE_INFO_TYPE_EXP_UINT64 64-bit unsigned-integer
	ZET_VALUE_INFO_TYPE_EXP_FLOAT32       ZetValueInfoTypeExp = 2          // ZET_VALUE_INFO_TYPE_EXP_FLOAT32 32-bit floating-point
	ZET_VALUE_INFO_TYPE_EXP_FLOAT64       ZetValueInfoTypeExp = 3          // ZET_VALUE_INFO_TYPE_EXP_FLOAT64 64-bit floating-point
	ZET_VALUE_INFO_TYPE_EXP_BOOL8         ZetValueInfoTypeExp = 4          // ZET_VALUE_INFO_TYPE_EXP_BOOL8 8-bit boolean
	ZET_VALUE_INFO_TYPE_EXP_UINT8         ZetValueInfoTypeExp = 5          // ZET_VALUE_INFO_TYPE_EXP_UINT8 8-bit unsigned-integer
	ZET_VALUE_INFO_TYPE_EXP_UINT16        ZetValueInfoTypeExp = 6          // ZET_VALUE_INFO_TYPE_EXP_UINT16 16-bit unsigned-integer
	ZET_VALUE_INFO_TYPE_EXP_UINT64_RANGE  ZetValueInfoTypeExp = 7          // ZET_VALUE_INFO_TYPE_EXP_UINT64_RANGE 64-bit unsigned-integer range (minimum and maximum)
	ZET_VALUE_INFO_TYPE_EXP_FLOAT64_RANGE ZetValueInfoTypeExp = 8          // ZET_VALUE_INFO_TYPE_EXP_FLOAT64_RANGE 64-bit floating point range (minimum and maximum)
	ZET_VALUE_INFO_TYPE_EXP_FORCE_UINT32  ZetValueInfoTypeExp = 0x7fffffff // ZET_VALUE_INFO_TYPE_EXP_FORCE_UINT32 Value marking end of ZET_VALUE_INFO_TYPE_EXP_* ENUMs

)

type ZetValueType

type ZetValueType uintptr

ZetValueType (zet_value_type_t) Supported value types

const (
	ZET_VALUE_TYPE_UINT32       ZetValueType = 0          // ZET_VALUE_TYPE_UINT32 32-bit unsigned-integer
	ZET_VALUE_TYPE_UINT64       ZetValueType = 1          // ZET_VALUE_TYPE_UINT64 64-bit unsigned-integer
	ZET_VALUE_TYPE_FLOAT32      ZetValueType = 2          // ZET_VALUE_TYPE_FLOAT32 32-bit floating-point
	ZET_VALUE_TYPE_FLOAT64      ZetValueType = 3          // ZET_VALUE_TYPE_FLOAT64 64-bit floating-point
	ZET_VALUE_TYPE_BOOL8        ZetValueType = 4          // ZET_VALUE_TYPE_BOOL8 8-bit boolean
	ZET_VALUE_TYPE_STRING       ZetValueType = 5          // ZET_VALUE_TYPE_STRING C string
	ZET_VALUE_TYPE_UINT8        ZetValueType = 6          // ZET_VALUE_TYPE_UINT8 8-bit unsigned-integer
	ZET_VALUE_TYPE_UINT16       ZetValueType = 7          // ZET_VALUE_TYPE_UINT16 16-bit unsigned-integer
	ZET_VALUE_TYPE_FORCE_UINT32 ZetValueType = 0x7fffffff // ZET_VALUE_TYPE_FORCE_UINT32 Value marking end of ZET_VALUE_TYPE_* ENUMs

)

type ZetValueUint64RangeExp

type ZetValueUint64RangeExp struct {
	Ui64min uint64 // Ui64min [out] minimum value of the range
	Ui64max uint64 // Ui64max [out] maximum value of the range

}

ZetValueUint64RangeExp (zet_value_uint64_range_exp_t) Value info of type uint64_t range

Source Files

Directories

Path Synopsis
cmd
gen command
examples
quick_start command
Package main demonstrates quick start usage of the gozel Level Zero bindings.
Package main demonstrates quick start usage of the gozel Level Zero bindings.
vadd command
Package main demonstrates vector addition using the gozel Level Zero bindings.
Package main demonstrates vector addition using the gozel Level Zero bindings.
internal
zecall
Package zecall provides internal helpers for calling Level Zero functions via purego.
Package zecall provides internal helpers for calling Level Zero functions via purego.
Package ze provides high-level wrappers around Level Zero command objects.
Package ze provides high-level wrappers around Level Zero command objects.

Jump to

Keyboard shortcuts

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