We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dff32b commit 8332e50Copy full SHA for 8332e50
sycl/include/sycl/ext/oneapi/experimental/clock.hpp
@@ -22,6 +22,9 @@ enum class clock_scope : int {
22
sub_group = 3
23
};
24
25
+#ifdef __SYCL_DEVICE_ONLY__
26
+[[__sycl_detail__::__uses_aspects__(sycl::aspect::ext_oneapi_clock)]]
27
+#endif // __SYCL_DEVICE_ONLY__
28
uint64_t clock(clock_scope scope = clock_scope::sub_group) {
29
#ifdef __SYCL_DEVICE_ONLY__
30
return __spirv_ReadClockKHR(static_cast<int>(scope));
0 commit comments