-
Notifications
You must be signed in to change notification settings - Fork 80
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
Enable dimension item/id/range dimension checks for DPC++ #751
Enable dimension item/id/range dimension checks for DPC++ #751
Conversation
This commit enables a number of test cases previously disabled for DPC++ due to missing `dimensions` member in `id`, `range`, `nd_range`, `h_item`, `item`, and `nd_item`. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
CHECK(sycl::id<3>::dimensions == 3); | ||
KCHECK(EVAL(sycl::id<1>::dimensions) == 1); | ||
KCHECK(EVAL(sycl::id<2>::dimensions) == 2); | ||
KCHECK(EVAL(sycl::id<3>::dimensions) == 3); |
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.
Note: The names given to the kernel in each instantiation of this test case would previously not be unique, hence the split here.
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 interesting design information that should appear in a comment.
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.
Good point. I've added a comment about it.
CHECK(sycl::id<3>::dimensions == 3); | ||
KCHECK(EVAL(sycl::id<1>::dimensions) == 1); | ||
KCHECK(EVAL(sycl::id<2>::dimensions) == 2); | ||
KCHECK(EVAL(sycl::id<3>::dimensions) == 3); |
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 interesting design information that should appear in a comment.
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
This commit enables a number of test cases previously disabled for DPC++ due to missing
dimensions
member inid
,range
,nd_range
,h_item
,item
, andnd_item
.