@@ -34,7 +34,7 @@ void handler::ext_oneapi_memcpy2d(void *Dest, size_t DestPitch, const void *Src,
3434#endif
3535
3636 // Get the type of the pointers.
37- context Ctx = detail::createSyclObjFromImpl<context>( getContextImplPtr () );
37+ detail::context_impl & Ctx = getContextImpl ( );
3838 usm::alloc SrcAllocType = get_pointer_type (Src, Ctx);
3939 usm::alloc DestAllocType = get_pointer_type (Dest, Ctx);
4040 bool SrcIsHost =
@@ -71,7 +71,7 @@ void handler::ext_oneapi_copy2d(const T *Src, size_t SrcPitch, T *Dest,
7171 " to the width specified in 'ext_oneapi_copy2d'" );
7272
7373 // Get the type of the pointers.
74- context Ctx = detail::createSyclObjFromImpl<context>( getContextImplPtr () );
74+ detail::context_impl & Ctx = getContextImpl ( );
7575 usm::alloc SrcAllocType = get_pointer_type (Src, Ctx);
7676 usm::alloc DestAllocType = get_pointer_type (Dest, Ctx);
7777 bool SrcIsHost =
@@ -106,7 +106,7 @@ void handler::ext_oneapi_memset2d(void *Dest, size_t DestPitch, int Value,
106106 " to the width specified in 'ext_oneapi_memset2d'" );
107107 T CharVal = static_cast <T>(Value);
108108
109- context Ctx = detail::createSyclObjFromImpl<context>( getContextImplPtr () );
109+ detail::context_impl & Ctx = getContextImpl ( );
110110 usm::alloc DestAllocType = get_pointer_type (Dest, Ctx);
111111
112112 // If the backends supports 2D fill we use that. Otherwise we use a fallback
@@ -130,7 +130,7 @@ void handler::ext_oneapi_fill2d(void *Dest, size_t DestPitch, const T &Pattern,
130130 " Destination pitch must be greater than or equal "
131131 " to the width specified in 'ext_oneapi_fill2d'" );
132132
133- context Ctx = detail::createSyclObjFromImpl<context>( getContextImplPtr () );
133+ detail::context_impl & Ctx = getContextImpl ( );
134134 usm::alloc DestAllocType = get_pointer_type (Dest, Ctx);
135135
136136 // If the backends supports 2D fill we use that. Otherwise we use a fallback
0 commit comments