Skip to content

[SYCL][ESIMD][EMU] Merging buffer/image info to surface info #5930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 2, 2022

Conversation

dongkyunahn-intel
Copy link
Contributor

This PR is to merge cm buffer info and cm image info into one surface_info struct. Suggested in #5606.

Comment : https://github.com/intel/llvm/pull/5606/files#r831642498, https://github.com/intel/llvm/pull/5606/files#r836308878

@dongkyunahn-intel dongkyunahn-intel requested a review from a team as a code owner March 30, 2022 21:38
@dongkyunahn-intel dongkyunahn-intel requested review from steffenlarsen and lsatanov and removed request for steffenlarsen March 30, 2022 21:38
PiBuf->SurfacePtr.UPBufPtr);
} else if (Mem->SurfacePtr.tag == cm_surface_ptr_t::type_regular_buffer) {
_pi_buffer *PiBuf = static_cast<_pi_buffer *>(Mem);
Status = Mem->Context->Device->CmDevicePtr->DestroySurface(
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this functionality be encapsulated in destrutor of _pi_mem ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -105,9 +107,28 @@ struct _pi_queue : _pi_object {
cm_support::CmQueue *CmQueuePtr = nullptr;
};

struct _pi_mem : _pi_object {
_pi_mem() = default;
struct cm_surface_ptr_t {
Copy link
Contributor

@kbobrovs kbobrovs Apr 28, 2022

Choose a reason for hiding this comment

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

Please add later comments what is this structure for.

@kbobrovs kbobrovs merged commit b1b4e68 into intel:sycl May 2, 2022
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.

3 participants