File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ struct ur_context_handle_t_ {
117
117
}
118
118
119
119
// Gets the index of the device relative to other devices in the context
120
- int getDeviceIndex (ur_device_handle_t hDevice) {
120
+ size_t getDeviceIndex (ur_device_handle_t hDevice) {
121
121
auto It = std::find (Devices.begin (), Devices.end (), hDevice);
122
122
assert (It != Devices.end ());
123
123
return std::distance (Devices.begin (), It);
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ struct ur_context_handle_t_ {
113
113
}
114
114
115
115
// Gets the index of the device relative to other devices in the context
116
- int getDeviceIndex (ur_device_handle_t hDevice) {
116
+ size_t getDeviceIndex (ur_device_handle_t hDevice) {
117
117
auto It = std::find (Devices.begin (), Devices.end (), hDevice);
118
118
assert (It != Devices.end ());
119
119
return std::distance (Devices.begin (), It);
You can’t perform that action at this time.
0 commit comments