-
Notifications
You must be signed in to change notification settings - Fork 30
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
[SYClomatic-test] Add help function for Block Load header #619
[SYClomatic-test] Add help function for Block Load header #619
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs some more checks as described. Until this is improved, I don't think we can be confident in the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments from my side. The most important I think are testing the remaining free functions and verifying the correctness of the data that has been loaded.
q.wait_and_throw(); | ||
|
||
sycl::host_accessor data_accessor(buffer, sycl::read_only); | ||
const int *ptr = data_accessor.get_multi_ptr<sycl::access::decorated::yes>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal from my side, but host_accessor
overloads operator[]
, so we don't really need a pointer.
Co-authored-by: Yihan Wang <[email protected]>
Co-authored-by: Yihan Wang <[email protected]>
Co-authored-by: Yihan Wang <[email protected]>
Also requesting review from @ShengchenJ @yihanwg . thanks |
help_function/help_function.xml
Outdated
@@ -144,6 +144,7 @@ | |||
<!-- <test testName="onedpl_test_transform" configFile="config/TEMPLATE_help_function_skip_cuda_backend.xml" /> --> | |||
<test testName="onedpl_test_transform_output_iterator" configFile="config/TEMPLATE_help_function_skip_cuda_backend.xml" /> | |||
<test testName="onedpl_test_group_sort" configFile="config/TEMPLATE_help_function.xml" /> | |||
<test testName="util_group_load_test" configFile="config/TEMPLATE_help_function.xml" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test name should be onedpl_test_group_load
.
@@ -0,0 +1,213 @@ | |||
// ====------ util_group_load_test.cpp------------ *- C++ -* ----===// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep the filename same as other onedpl test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the other similar filenames for sort etc should also change when being migrated to the group_util.hpp file.
This was changed to util_group_load_test post @danhoeflinger 's review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be done in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not testing oneDPL or oneDPL-like functionality. It is currently placed in the dpcpp extensions header with the intention to move it to a new header which is targeted at sycl compat.
This code tests a helper function called from within a kernel, which is a lower level than the rest of oneDPL or oneDPL compatibility headers.
If we must have the name as onedpl test until the code is moved, that is fine, but it is just more that needs to be changed later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes noted, will update the file paths when writing linking tests for oneapi-src/SYCLomatic#1784 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for all the work on this.
Thanks @danhoeflinger @mmichel11 @yihanwg for review . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add block load test Following PR #1640
oneapi-src/SYCLomatic#1640 (Merge after 1640 is merged)
cc @yihanwg