-
Notifications
You must be signed in to change notification settings - Fork 797
[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
Conversation
@callumfare (or anyone in @intel/unified-runtime-reviewers , if they want) mind having a look at this? |
@intel/unified-runtime-reviewers Can I get this looked at? |
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; | ||
} |
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.
Why not do this in case UR_DEVICE_INFO_MAX_WORK_ITEM_SIZES:
?
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 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.
@kbenzie If you're happy with the change, could you merge this please? |
No description provided.