Skip to content

Commit 9918c93

Browse files
committed
fix some
1 parent 7872221 commit 9918c93

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sycl/include/sycl/ext/oneapi/experimental/clock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

sycl/test-e2e/Experimental/clock.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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>

0 commit comments

Comments
 (0)