Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sycl/include/sycl/ext/oneapi/memcpy2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ template <typename T, typename>
void handler::ext_oneapi_memcpy2d(void *Dest, size_t DestPitch, const void *Src,
size_t SrcPitch, size_t Width,
size_t Height) {
#ifndef __SYCL_DEVICE_ONLY__
throwIfGraphAssociated<
ext::oneapi::experimental::detail::UnsupportedGraphFeatures::
sycl_ext_oneapi_memcpy2d>();
Expand All @@ -30,6 +31,7 @@ void handler::ext_oneapi_memcpy2d(void *Dest, size_t DestPitch, const void *Src,
throw sycl::exception(sycl::make_error_code(errc::invalid),
"Source pitch must be greater than or equal "
"to the width specified in 'ext_oneapi_memcpy2d'");
#endif

// Get the type of the pointers.
context Ctx = detail::createSyclObjFromImpl<context>(getContextImplPtr());
Expand Down
Loading
Loading