Skip to content

Conversation

@joeatodd
Copy link
Contributor

@joeatodd joeatodd commented Jun 4, 2024

This PR adds syclcompat::experimental::memcpy and syclcompat::experimental::memcpy_async taking memcpy_parameter arguments which wrap either:

  • deprecated sycl::image
  • experimental bindless images

Since image support was decided to be out of scope for 2025.0, these APIs are introduced for forward compatibility only, and currently throw a std::runtime_error.

@joeatodd joeatodd requested a review from a team as a code owner June 4, 2024 19:00
joeatodd added 2 commits June 4, 2024 20:12
Signed-off-by: Joe Todd <joe.todd@codeplay.com>
There is actually a currently valid codepath in the memcpy_parameter
overload, so long as the source & dest are represented as `pitched_data`.

I added tests to ensure every other codepath raises a runtime_error for
now.

Signed-off-by: Joe Todd <joe.todd@codeplay.com>
Signed-off-by: Joe Todd <joe.todd@codeplay.com>
joeatodd added 2 commits June 5, 2024 13:50
Signed-off-by: Joe Todd <joe.todd@codeplay.com>
Signed-off-by: Joe Todd <joe.todd@codeplay.com>
Signed-off-by: Joe Todd <joe.todd@codeplay.com>
Copy link

@Alcpz Alcpz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Great

@joeatodd
Copy link
Contributor Author

joeatodd commented Jun 6, 2024

@intel/llvm-gatekeepers this is ready to merge 🙏 CI failures unrelated

@steffenlarsen
Copy link
Contributor

@intel/llvm-gatekeepers this is ready to merge 🙏 CI failures unrelated

The Windows failure seems to be in cleanup and so it should be alright to ignore and Jenkins seems to be infrastructural as well. However, the CUDA failure meant no CUDA tests were run, so I will retrigger it in the hopes that we can get some actual results there. 🤞

@steffenlarsen
Copy link
Contributor

Looks like the CUDA device issue is expected to be fixed with #14074. We may have to push a merge commit for it to take effect once merged however.

@joeatodd
Copy link
Contributor Author

@intel/llvm-gatekeepers I believe this is ready to merge. Intel GEN12 failures appear unrelated. Unsure about Jenkins/Precommit as I can't see that from here.

@steffenlarsen
Copy link
Contributor

Jenkins/Precommit is being weird, but rerunning the Gen12 Windows tests made them pass, so this is indeed good-to-go!

@steffenlarsen steffenlarsen merged commit 9332d1a into intel:sycl Jun 11, 2024
ianayl pushed a commit to ianayl/sycl that referenced this pull request Jun 13, 2024
…ds (intel#14039)

This PR adds `syclcompat::experimental::memcpy` and
`syclcompat::experimental::memcpy_async` taking `memcpy_parameter`
arguments which wrap either:
 - deprecated `sycl::image`
 - experimental bindless images

Since image support was decided to be out of scope for 2025.0, these
APIs are introduced for forward compatibility only, and currently throw
a `std::runtime_error`.

---------

Signed-off-by: Joe Todd <joe.todd@codeplay.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants