Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add a test checking wrapped USM pointers #1288

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

Fznamznon
Copy link

The big changes are being made to clang's handling of wrapped USM pointers. This simple test is to make sure that nothing breaks.

The big changes are being made to clang's handling of wrapped USM
pointers. This simple test is to make sure that nothing breaks.
@Fznamznon Fznamznon requested a review from a team as a code owner September 23, 2022 10:11
@Fznamznon
Copy link
Author

FYI, the first PR with redesign is here - intel/llvm#6728 . And more is coming...

@Fznamznon
Copy link
Author

@KseniyaTikhomirova & @intel/llvm-reviewers-runtime , could you please review?

Comment on lines +41 to +43
NonTrivial NonTrivialObj(sycl::malloc_shared<int>(NumOfElements, Q), 38);
Simple SimpleObj = {sycl::malloc_shared<int>(NumOfElements, Q), 42};
WrapperOfSimple WrapperOfSimpleObj = {

Choose a reason for hiding this comment

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

Please free the allocated memory at the end of the program.

Copy link
Author

Choose a reason for hiding this comment

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

Done, thanks!
Apparently simple USM examples from SYCL 2020 spec do not free memory as well :)

@Fznamznon
Copy link
Author

Some other test is failing in pre-commit:

Failed Tests (1):
SYCL :: DeviceLib/imf_fp32_test.cpp

@Fznamznon
Copy link
Author

@intel/llvm-gatekeepers , can this one be merged?

@v-klochkov v-klochkov merged commit 42cd6d3 into intel:intel Sep 27, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
* [SYCL] Add a test checking wrapped USM pointers

The big changes are being made to clang's handling of wrapped USM
pointers. This simple test is to make sure that nothing breaks.
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…#1288)

Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…e#1288)

* [SYCL] Add a test checking wrapped USM pointers

The big changes are being made to clang's handling of wrapped USM
pointers. This simple test is to make sure that nothing breaks.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants