-
Notifications
You must be signed in to change notification settings - Fork 768
/
Copy pathqueue_api.hpp
182 lines (177 loc) · 10.6 KB
/
queue_api.hpp
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/*
*
* Copyright (C) 2024 Intel Corporation
*
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
* Exceptions. See LICENSE.TXT
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file queue_api.hpp
*
*/
// Do not edit. This file is auto generated from a template:
// scripts/templates/queue_api.hpp.mako
#pragma once
#include <ur_api.h>
struct ur_queue_t_ {
virtual ~ur_queue_t_();
virtual ur_result_t queueGetInfo(ur_queue_info_t, size_t, void *,
size_t *) = 0;
virtual ur_result_t queueGetNativeHandle(ur_queue_native_desc_t *,
ur_native_handle_t *) = 0;
virtual ur_result_t queueFinish() = 0;
virtual ur_result_t queueFlush() = 0;
virtual ur_result_t enqueueKernelLaunch(ur_kernel_handle_t, uint32_t,
const size_t *, const size_t *,
const size_t *, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueEventsWait(uint32_t, const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueEventsWaitWithBarrier(uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemBufferRead(ur_mem_handle_t, bool, size_t,
size_t, void *, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemBufferWrite(ur_mem_handle_t, bool, size_t,
size_t, const void *, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueMemBufferReadRect(ur_mem_handle_t, bool, ur_rect_offset_t,
ur_rect_offset_t, ur_rect_region_t, size_t, size_t,
size_t, size_t, void *, uint32_t,
const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueMemBufferWriteRect(ur_mem_handle_t, bool, ur_rect_offset_t,
ur_rect_offset_t, ur_rect_region_t, size_t, size_t,
size_t, size_t, void *, uint32_t,
const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemBufferCopy(ur_mem_handle_t, ur_mem_handle_t,
size_t, size_t, size_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueMemBufferCopyRect(ur_mem_handle_t, ur_mem_handle_t, ur_rect_offset_t,
ur_rect_offset_t, ur_rect_region_t, size_t, size_t,
size_t, size_t, uint32_t, const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemBufferFill(ur_mem_handle_t, const void *,
size_t, size_t, size_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemImageRead(ur_mem_handle_t, bool,
ur_rect_offset_t, ur_rect_region_t,
size_t, size_t, void *, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemImageWrite(ur_mem_handle_t, bool,
ur_rect_offset_t, ur_rect_region_t,
size_t, size_t, void *, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemImageCopy(ur_mem_handle_t, ur_mem_handle_t,
ur_rect_offset_t, ur_rect_offset_t,
ur_rect_region_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueMemBufferMap(ur_mem_handle_t, bool, ur_map_flags_t,
size_t, size_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *, void **) = 0;
virtual ur_result_t enqueueMemUnmap(ur_mem_handle_t, void *, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueUSMFill(void *, size_t, const void *, size_t,
uint32_t, const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueUSMMemcpy(bool, void *, const void *, size_t,
uint32_t, const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueUSMPrefetch(const void *, size_t,
ur_usm_migration_flags_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueUSMAdvise(const void *, size_t,
ur_usm_advice_flags_t,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueUSMFill2D(void *, size_t, size_t, const void *,
size_t, size_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueUSMMemcpy2D(bool, void *, size_t, const void *,
size_t, size_t, size_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueDeviceGlobalVariableWrite(
ur_program_handle_t, const char *, bool, size_t, size_t, const void *,
uint32_t, const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t enqueueDeviceGlobalVariableRead(
ur_program_handle_t, const char *, bool, size_t, size_t, void *, uint32_t,
const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t enqueueReadHostPipe(ur_program_handle_t, const char *,
bool, void *, size_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueWriteHostPipe(ur_program_handle_t, const char *,
bool, void *, size_t, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueUSMDeviceAllocExp(ur_usm_pool_handle_t, const size_t,
const ur_exp_async_usm_alloc_properties_t *,
uint32_t, const ur_event_handle_t *, void **,
ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueUSMSharedAllocExp(ur_usm_pool_handle_t, const size_t,
const ur_exp_async_usm_alloc_properties_t *,
uint32_t, const ur_event_handle_t *, void **,
ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueUSMHostAllocExp(ur_usm_pool_handle_t, const size_t,
const ur_exp_async_usm_alloc_properties_t *, uint32_t,
const ur_event_handle_t *, void **,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueUSMFreeExp(ur_usm_pool_handle_t, void *, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t bindlessImagesImageCopyExp(
const void *, void *, const ur_image_desc_t *, const ur_image_desc_t *,
const ur_image_format_t *, const ur_image_format_t *,
ur_exp_image_copy_region_t *, ur_exp_image_copy_flags_t, uint32_t,
const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t bindlessImagesWaitExternalSemaphoreExp(
ur_exp_external_semaphore_handle_t, bool, uint64_t, uint32_t,
const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t bindlessImagesSignalExternalSemaphoreExp(
ur_exp_external_semaphore_handle_t, bool, uint64_t, uint32_t,
const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t enqueueCommandBufferExp(ur_exp_command_buffer_handle_t,
uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueCooperativeKernelLaunchExp(
ur_kernel_handle_t, uint32_t, const size_t *, const size_t *,
const size_t *, uint32_t, const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueTimestampRecordingExp(bool, uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t enqueueKernelLaunchCustomExp(
ur_kernel_handle_t, uint32_t, const size_t *, const size_t *,
const size_t *, uint32_t, const ur_exp_launch_property_t *, uint32_t,
const ur_event_handle_t *, ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueEventsWaitWithBarrierExt(const ur_exp_enqueue_ext_properties_t *,
uint32_t, const ur_event_handle_t *,
ur_event_handle_t *) = 0;
virtual ur_result_t
enqueueNativeCommandExp(ur_exp_enqueue_native_command_function_t, void *,
uint32_t, const ur_mem_handle_t *,
const ur_exp_enqueue_native_command_properties_t *,
uint32_t, const ur_event_handle_t *,
ur_event_handle_t *) = 0;
};