-
Notifications
You must be signed in to change notification settings - Fork 804
[UR][L0] Refine default device logic in urDeviceGet #20036
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
base: sycl
Are you sure you want to change the base?
Conversation
Unrelated issue: Should be fixed by: |
@@ -1462,6 +1353,143 @@ ur_result_t urDeviceGetInfo( | |||
return UR_RESULT_SUCCESS; | |||
} | |||
|
|||
ur_result_t urDeviceGet( |
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 hard to review because you moved the function. Can you move it back?
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.
Done.
0da83a4
to
7081a4e
Compare
// In case of DeviceType is DEFAULT, pick only the most powerful GPU | ||
// device. | ||
if (DeviceDefaultGPU) { | ||
uint32_t maxComputeUnits = 0; |
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.
nit: I'm not sure if it wouldn't be cleaner to just collect matched devices here, and then outside this loop, if DeviceType == UR_DEVICE_TYPE_DEFAULT
, iterate over them to select the best single GPU.
No description provided.