FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unified-runtime/scripts/templates/queue_api.cpp.mako at main · oneapi-src/unified-runtime · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
oneapi-src
/
unified-runtime
Public
Notifications
You must be signed in to change notification settings
Fork
120
Star
57
Code
Issues
109
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
unified-runtime
/
scripts
/
templates
/
queue_api.cpp.mako
Copy path
More file actions
More file actions
Latest commit
History
History
History
73 lines (66 loc) · 1.86 KB
Breadcrumbs
unified-runtime
/
scripts
/
templates
/
queue_api.cpp.mako
Copy path
File metadata and controls
73 lines (66 loc) · 1.86 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<%!
import
re
from
templates
import
helper
as
th
%><%
n
=
namespace
N
=
n.upper()
x
=
tags[
'
$x
'
]
X
=
x.upper()
%>
/*
*
*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM
* Exceptions. See https://llvm.org/LICENSE.txt for license information.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
* @file
${
name
}
.cpp
*
*/
// Do not edit. This file is auto generated from a template: scripts/templates/queue_api.cpp.mako
#
include "queue_api.hpp"
#
include "queue_handle.hpp"
#
include "ur_util.hpp"
namespace ur::level_zero::v2 {
ur_queue_t_::~ur_queue_t_() {}
## FUNCTION ###################################################################
%
for
obj
in
th.get_queue_related_functions(specs, n, tags):
%
if
not
'
Release
'
in
obj[
'
name
'
]
and
not
'
Retain
'
in
obj[
'
name
'
]:
%
if
'
guard
'
in
obj:
#
if ${obj['guard']}
%endif
${
x
}
_result_t
${
th.make_func_name(n, tags, obj)
}
(
%
for
line
in
th.make_param_lines(n, tags, obj,
format
=
[
"
name
"
,
"
type
"
,
"
delim
"
],
global_handles
=
True
):
${
line
}
%endfor
)
try {
return v2_cast(
${
obj[
'
params
'
][
0
][
'
name
'
]
}
)->get().
${
th.transform_queue_related_function_name(n, tags, obj,
format
=
[
"
name
"
],
cast_handles
=
True
)
}
;
} catch(...) {
return exceptionToResult(std::current_exception());
}
%
if
'
guard
'
in
obj:
#
endif // ${obj['guard']}
%endif
%
else
:
%
if
'
guard
'
in
obj:
#
endif // ${obj['guard']}
%endif
${
x
}
_result_t
${
th.make_func_name(n, tags, obj)
}
(
%
for
line
in
th.make_param_lines(n, tags, obj,
format
=
[
"
name
"
,
"
type
"
,
"
delim
"
],
global_handles
=
True
):
${
line
}
%endfor
)
try {
return v2_cast(
${
obj[
'
params
'
][
0
][
'
name
'
]
}
)->
${
th.transform_queue_related_function_name(n, tags, obj,
format
=
[
"
name
"
],
cast_handles
=
True
)
}
;
} catch(...) {
return exceptionToResult(std::current_exception());
}
%
if
'
guard
'
in
obj:
#
endif // ${obj['guard']}
%endif
%endif
%endfor
} // namespace ur::level_zero::v2
Back
|
FazBrowse Home
|
New Git URL