Skip to content

Commit 03208c0

Browse files
author
Ivan Karachun
authored
[SYCL] Make cl::sycl::event::get() method to be constant. (#1591)
According to recent changes(1) in SYCL-1.2.1 spec method `cl::sycl::event::get()` is supposed to be constant. (1) KhronosGroup/SYCL-Docs#95 Signed-off-by: Ivan Karachun <[email protected]>
1 parent f62de21 commit 03208c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/include/CL/sycl/event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class __SYCL_EXPORT event {
5454
/// Returns a valid OpenCL event interoperability handle.
5555
///
5656
/// \return a valid instance of OpenCL cl_event.
57-
cl_event get();
57+
cl_event get() const;
5858

5959
/// Checks if this event is a SYCL host event.
6060
///

sycl/source/event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bool event::operator==(const event &rhs) const { return rhs.impl == impl; }
3131

3232
bool event::operator!=(const event &rhs) const { return !(*this == rhs); }
3333

34-
cl_event event::get() { return impl->get(); }
34+
cl_event event::get() const { return impl->get(); }
3535

3636
bool event::is_host() const { return impl->is_host(); }
3737

sycl/test/abi/sycl_symbols_linux.dump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,6 @@ _ZN2cl4sycl4freeEPvRKNS0_7contextE
31023102
_ZN2cl4sycl5event13get_wait_listEv
31033103
_ZN2cl4sycl5event14wait_and_throwERKSt6vectorIS1_SaIS1_EE
31043104
_ZN2cl4sycl5event14wait_and_throwEv
3105-
_ZN2cl4sycl5event3getEv
31063105
_ZN2cl4sycl5event4waitERKSt6vectorIS1_SaIS1_EE
31073106
_ZN2cl4sycl5event4waitEv
31083107
_ZN2cl4sycl5eventC1EP9_cl_eventRKNS0_7contextE
@@ -3278,6 +3277,7 @@ _ZNK2cl4sycl20accelerator_selectorclERKNS0_6deviceE
32783277
_ZNK2cl4sycl5event18get_profiling_infoILNS0_4info15event_profilingE4737EEENS3_12param_traitsIS4_XT_EE11return_typeEv
32793278
_ZNK2cl4sycl5event18get_profiling_infoILNS0_4info15event_profilingE4738EEENS3_12param_traitsIS4_XT_EE11return_typeEv
32803279
_ZNK2cl4sycl5event18get_profiling_infoILNS0_4info15event_profilingE4739EEENS3_12param_traitsIS4_XT_EE11return_typeEv
3280+
_ZNK2cl4sycl5event3getEv
32813281
_ZNK2cl4sycl5event7is_hostEv
32823282
_ZNK2cl4sycl5event8get_infoILNS0_4info5eventE4562EEENS3_12param_traitsIS4_XT_EE11return_typeEv
32833283
_ZNK2cl4sycl5event8get_infoILNS0_4info5eventE4563EEENS3_12param_traitsIS4_XT_EE11return_typeEv

0 commit comments

Comments
 (0)