File: preview_api_entrypoints.h

package info (click to toggle)
intel-compute-runtime 25.44.36015.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 79,632 kB
  • sloc: cpp: 931,547; lisp: 2,074; sh: 719; makefile: 162; python: 21
file content (47 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright (C) 2025 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#pragma once

#include "level_zero/ze_intel_gpu.h"

namespace L0 {

ze_context_handle_t zeDriverGetDefaultContext(ze_driver_handle_t hDriver);

ze_result_t zeDeviceSynchronize(ze_device_handle_t hDevice);

ze_result_t zeCommandListAppendLaunchKernelWithParameters(
    ze_command_list_handle_t hCommandList,
    ze_kernel_handle_t hKernel,
    const ze_group_count_t *pGroupCounts,
    const void *pNext,
    ze_event_handle_t hSignalEvent,
    uint32_t numWaitEvents,
    ze_event_handle_t *phWaitEvents);

ze_result_t zeCommandListAppendLaunchKernelWithArguments(
    ze_command_list_handle_t hCommandList,
    ze_kernel_handle_t hKernel,
    const ze_group_count_t groupCounts,
    const ze_group_size_t groupSizes,
    void **pArguments,
    const void *pNext,
    ze_event_handle_t hSignalEvent,
    uint32_t numWaitEvents,
    ze_event_handle_t *phWaitEvents

);

ze_result_t zerGetLastErrorDescription(const char **ppString);

uint32_t zerTranslateDeviceHandleToIdentifier(ze_device_handle_t device);

ze_device_handle_t zerTranslateIdentifierToDeviceHandle(uint32_t identifier);

ze_context_handle_t zerGetDefaultContext();
} // namespace L0