File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,10 @@ class event_impl {
251
251
252
252
bool isContextInitialized () const noexcept { return MIsContextInitialized; }
253
253
254
- ContextImplPtr getContextImplPtr () const { return MContext; }
254
+ ContextImplPtr getContextImplPtr () {
255
+ ensureContextInitialized ();
256
+ return MContext;
257
+ }
255
258
256
259
protected:
257
260
// When instrumentation is enabled emits trace event for event wait begin and
Original file line number Diff line number Diff line change 7
7
#include < detail/plugin.hpp>
8
8
9
9
namespace pi {
10
- inline const char * GetBackendString (const sycl::detail::plugin &Plugin) {
10
+ inline std::string GetBackendString (const sycl::detail::plugin &Plugin) {
11
11
std::stringstream Str;
12
12
for (sycl::backend Backend :
13
13
{sycl::backend::opencl, sycl::backend::ext_oneapi_level_zero,
@@ -17,6 +17,6 @@ inline const char *GetBackendString(const sycl::detail::plugin &Plugin) {
17
17
Str << Backend;
18
18
}
19
19
}
20
- return Str.str (). c_str () ;
20
+ return Str.str ();
21
21
}
22
22
} // namespace pi
You can’t perform that action at this time.
0 commit comments