-
Notifications
You must be signed in to change notification settings - Fork 30
Add descriptors: max_read_image_args, max_write_image_args #318
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
Conversation
I think my comment on another PR applies here as well. On the Python side there is no need to ask for these descriptors at the time of This will avoid need to special-handle descriptors in case they are not supported for certain devices, like |
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.
Rebase with master and update C API tests.
@@ -388,6 +388,24 @@ bool DPCTLDevice_HasAspect(__dpctl_keep const DPCTLSyclDeviceRef DRef, | |||
return hasAspect; | |||
} | |||
|
|||
#define declmethod(FUNC, NAME) \ |
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.
You are really liking this style 👍
DPCTLSyclDeviceRef DRef = nullptr; | ||
size_t max_read_image_args = 0; | ||
EXPECT_NO_FATAL_FAILURE(DRef = DPCTLDevice_CreateFromSelector(DSRef)); | ||
if (!DRef) |
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.
See my comments in #315. Same apply here.
Closes #317