Skip to content

[UR][Offload] Implement UR_DEVICE_INFO_MAX_WORK_ITEM_SIZES #19275

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 2 commits into from
Jul 21, 2025

Conversation

RossBrunton
Copy link
Contributor

No description provided.

@RossBrunton RossBrunton requested a review from a team as a code owner July 2, 2025 16:08
@RossBrunton RossBrunton requested a review from callumfare July 3, 2025 08:54
@RossBrunton
Copy link
Contributor Author

@callumfare (or anyone in @intel/unified-runtime-reviewers , if they want) mind having a look at this?

@RossBrunton
Copy link
Contributor Author

@intel/unified-runtime-reviewers Can I get this looked at?

Comment on lines 102 to 105
if (isVec3) {
if (pPropSizeRet) {
*pPropSizeRet = sizeof(size_t) * 3;
}

if (pPropValue) {
ol_dimensions_t olVec;
size_t *urVec = reinterpret_cast<size_t *>(pPropValue);
OL_RETURN_ON_ERR(olGetDeviceInfo(hDevice->OffloadDevice, olInfo,
sizeof(olVec), &olVec));

urVec[0] = olVec.x;
urVec[1] = olVec.y;
urVec[2] = olVec.z;
}

return UR_RESULT_SUCCESS;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not do this in case UR_DEVICE_INFO_MAX_WORK_ITEM_SIZES:?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I assumed that there were more info queries that return size_t[3]... But a quick skim shows that's not the case. I'll go move this in there then.

@RossBrunton
Copy link
Contributor Author

@kbenzie If you're happy with the change, could you merge this please?

@kbenzie kbenzie merged commit 8164138 into intel:sycl Jul 21, 2025
31 of 34 checks passed
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