-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathAPINamesGraph.inc
More file actions
79 lines (72 loc) · 3.76 KB
/
APINamesGraph.inc
File metadata and controls
79 lines (72 loc) · 3.76 KB
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
//===--------------- APINamesGraph.inc ------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
CONDITIONAL_FACTORY_ENTRY(
UseExtGraph,
ASSIGNABLE_FACTORY(ASSIGN_FACTORY_ENTRY(
"cudaGraphInstantiate", DEREF(0),
NEW(MapNames::getClNamespace() +
"ext::oneapi::experimental::command_graph<" +
MapNames::getClNamespace() +
"ext::oneapi::experimental::graph_state::executable>",
MEMBER_CALL(ARG(1), true, "finalize")))),
UNSUPPORT_FACTORY_ENTRY("cudaGraphInstantiate",
Diagnostics::TRY_EXPERIMENTAL_FEATURE,
ARG("cudaGraphInstantiate"),
ARG("--use-experimental-features=graph")))
ASSIGNABLE_FACTORY(CONDITIONAL_FACTORY_ENTRY(
UseExtGraph, DELETE_FACTORY_ENTRY("cudaGraphExecDestroy", ARG(0)),
UNSUPPORT_FACTORY_ENTRY("cudaGraphExecDestroy",
Diagnostics::TRY_EXPERIMENTAL_FEATURE,
ARG("cudaGraphExecDestroy"),
ARG("--use-experimental-features=graph"))))
ASSIGNABLE_FACTORY(CONDITIONAL_FACTORY_ENTRY(
UseExtGraph,
MEMBER_CALL_FACTORY_ENTRY("cudaGraphLaunch", ARG(1), true,
"ext_oneapi_graph", DEREF(0)),
UNSUPPORT_FACTORY_ENTRY("cudaGraphLaunch",
Diagnostics::TRY_EXPERIMENTAL_FEATURE,
ARG("cudaGraphLaunch"),
ARG("--use-experimental-features=graph"))))
ASSIGNABLE_FACTORY(CONDITIONAL_FACTORY_ENTRY(
UseExtGraph,
CALL_FACTORY_ENTRY("cudaGraphAddEmptyNode",
CALL(MapNames::getDpctNamespace() +
"experimental::add_empty_node",
ARG(0), ARG(1), ARG(2), ARG(3))),
UNSUPPORT_FACTORY_ENTRY("cudaGraphAddEmptyNode",
Diagnostics::TRY_EXPERIMENTAL_FEATURE,
ARG("cudaGraphAddEmptyNode"),
ARG("--use-experimental-features=graph"))))
ASSIGNABLE_FACTORY(CONDITIONAL_FACTORY_ENTRY(
UseExtGraph,
CALL_FACTORY_ENTRY("cudaGraphAddDependencies",
CALL(MapNames::getDpctNamespace() +
"experimental::add_dependencies",
ARG(0), ARG(1), ARG(2), ARG(3))),
UNSUPPORT_FACTORY_ENTRY("cudaGraphAddDependencies",
Diagnostics::TRY_EXPERIMENTAL_FEATURE,
ARG("cudaGraphAddDependencies"),
ARG("--use-experimental-features=graph"))))
ASSIGNABLE_FACTORY(CONDITIONAL_FACTORY_ENTRY(
UseExtGraph,
MEMBER_CALL_FACTORY_ENTRY("cudaGraphExecUpdate", ARG(0), true, "update",
DEREF(1)),
UNSUPPORT_FACTORY_ENTRY("cudaGraphExecUpdate",
Diagnostics::TRY_EXPERIMENTAL_FEATURE,
ARG("cudaGraphExecUpdate"),
ARG("--use-experimental-features=graph"))))
ASSIGNABLE_FACTORY(CONDITIONAL_FACTORY_ENTRY(
UseExtGraph,
MEMBER_CALL_FACTORY_ENTRY(
"cudaGraphDebugDotPrint", ARG(0), true, "print_graph",
CAST_IF_NOT_SAME(makeLiteral("std::string"), ARG(1)),
makeLiteral("true")),
UNSUPPORT_FACTORY_ENTRY("cudaGraphDebugDotPrint",
Diagnostics::TRY_EXPERIMENTAL_FEATURE,
ARG("cudaGraphDebugDotPrint"),
ARG("--use-experimental-features=graph"))))