File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
include/sycl/ext/oneapi/experimental Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ enum class clock_scope : int {
2525#ifdef __SYCL_DEVICE_ONLY__
2626[[__sycl_detail__::__uses_aspects__(sycl::aspect::ext_oneapi_clock)]]
2727#endif // __SYCL_DEVICE_ONLY__
28- uint64_t clock (clock_scope scope = clock_scope::sub_group) {
28+ uint64_t clock ([[maybe_unused]] clock_scope scope = clock_scope::sub_group) {
2929#ifdef __SYCL_DEVICE_ONLY__
3030 return __spirv_ReadClockKHR (static_cast <int >(scope));
3131#else
Original file line number Diff line number Diff line change 11// REQUIRES: aspect-ext_oneapi_clock, aspect-usm_shared_allocations
2+ // RUN: %{build} -o %t.out
3+ // RUN: %{run} %t.out
24
35#include < sycl/detail/core.hpp>
46#include < sycl/ext/oneapi/experimental/clock.hpp>
You can’t perform that action at this time.
0 commit comments