Skip to content

Commit e5f4da8

Browse files
committed
Remove guarded members
1 parent 26b24a9 commit e5f4da8

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,7 @@ struct _pi_queue : _pi_object {
939939
// Map of all command lists used in this queue.
940940
pi_command_list_map_t CommandListMap;
941941
// TODO: Assign Graph related command lists to command_graph object
942-
#if SYCL_EXT_ONEAPI_GRAPH
943942
pi_command_list_map_t LazyCommandListMap;
944-
#endif
945943

946944
// Helper data structure to hold all variables related to batching
947945
typedef struct CommandBatch {

sycl/source/detail/graph_impl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ void graph_impl::exec_and_wait(
4242
MFirst = false;
4343
}
4444
#else
45-
exec(q);
45+
exec(Queue);
4646
#endif
47-
if (!isSubGraph) {
48-
q->setIsGraphSubmitting(false);
49-
q->wait();
47+
if (!IsSubGraph) {
48+
Queue->setIsGraphSubmitting(false);
49+
Queue->wait();
5050
}
5151
}
5252

sycl/source/detail/graph_impl.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,7 @@ struct graph_impl {
170170
const std::vector<sycl::detail::ArgDesc> &Args,
171171
const std::vector<std::shared_ptr<node_impl>> &Dep = {});
172172

173-
#if SYCL_EXT_ONEAPI_GRAPH
174173
graph_impl() : MFirst(true) {}
175-
#else
176-
graph_impl() {}
177-
#endif
178174

179175
/// Add a queue to the set of queues which are currently recording to this
180176
/// graph.

0 commit comments

Comments
 (0)