Skip to content

Commit

Permalink
[SYCL] Change graph_support_level namespace (#256)
Browse files Browse the repository at this point in the history
Matching implementation change to specification PR
#255
  • Loading branch information
Bensuo committed Jul 14, 2023
1 parent 9b86e94 commit 86fd94f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sycl/test-e2e/Graph/device_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ int main() {

auto Device = Queue.get_device();

exp_ext::info::device::graph_support_level SupportsGraphs =
exp_ext::info::graph_support_level SupportsGraphs =
Device.get_info<exp_ext::info::device::graph_support>();
auto Backend = Device.get_backend();

if (Backend == backend::ext_oneapi_level_zero) {
assert(SupportsGraphs ==
exp_ext::info::device::graph_support_level::native);
assert(SupportsGraphs == exp_ext::info::graph_support_level::native);
} else {
assert(SupportsGraphs ==
exp_ext::info::device::graph_support_level::unsupported);
assert(SupportsGraphs == exp_ext::info::graph_support_level::unsupported);
}
}

0 comments on commit 86fd94f

Please sign in to comment.