@@ -52,14 +52,14 @@ get_kernel_info(ur_kernel_handle_t Kernel, adapter_impl &Adapter) {
52
52
53
53
// TODO catch an exception and put it to list of asynchronous exceptions
54
54
Adapter.call <UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value, 0 ,
55
- nullptr , &ResultSize);
55
+ nullptr , &ResultSize);
56
56
if (ResultSize == 0 ) {
57
57
return " " ;
58
58
}
59
59
std::vector<char > Result (ResultSize);
60
60
// TODO catch an exception and put it to list of asynchronous exceptions
61
61
Adapter.call <UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value,
62
- ResultSize, Result.data (), nullptr );
62
+ ResultSize, Result.data (), nullptr );
63
63
return std::string (Result.data ());
64
64
}
65
65
@@ -71,7 +71,7 @@ get_kernel_info(ur_kernel_handle_t Kernel, adapter_impl &Adapter) {
71
71
72
72
// TODO catch an exception and put it to list of asynchronous exceptions
73
73
Adapter.call <UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value,
74
- sizeof (uint32_t ), &Result, nullptr );
74
+ sizeof (uint32_t ), &Result, nullptr );
75
75
return Result;
76
76
}
77
77
@@ -92,7 +92,7 @@ get_kernel_device_specific_info_helper(
92
92
ur_kernel_handle_t Kernel, [[maybe_unused]] ur_device_handle_t Device,
93
93
adapter_impl &Adapter, void *Result, size_t Size) {
94
94
Adapter.call <UrApiKind::urKernelGetInfo>(Kernel, UrInfoCode<Param>::value,
95
- Size, Result, nullptr );
95
+ Size, Result, nullptr );
96
96
}
97
97
98
98
template <typename Param>
@@ -188,18 +188,18 @@ get_kernel_device_specific_info<
188
188
189
189
ur_program_handle_t Program;
190
190
Adapter.call <UrApiKind::urKernelGetInfo>(Kernel, UR_KERNEL_INFO_PROGRAM,
191
- sizeof (ur_program_handle_t ),
192
- &Program, nullptr );
191
+ sizeof (ur_program_handle_t ),
192
+ &Program, nullptr );
193
193
// Retrieve the associated device list
194
194
size_t URDevicesSize = 0 ;
195
- Adapter.call <UrApiKind::urProgramGetInfo>(Program, UR_PROGRAM_INFO_DEVICES,
196
- 0 , nullptr , &URDevicesSize);
195
+ Adapter.call <UrApiKind::urProgramGetInfo>(Program, UR_PROGRAM_INFO_DEVICES, 0 ,
196
+ nullptr , &URDevicesSize);
197
197
198
198
std::vector<ur_device_handle_t > URDevices (URDevicesSize /
199
199
sizeof (ur_device_handle_t ));
200
200
Adapter.call <UrApiKind::urProgramGetInfo>(Program, UR_PROGRAM_INFO_DEVICES,
201
- URDevicesSize, URDevices.data (),
202
- nullptr );
201
+ URDevicesSize, URDevices.data (),
202
+ nullptr );
203
203
assert (Device2SpillMap.size () == URDevices.size ());
204
204
205
205
// Map the result back to the program devices. UR provides the following
0 commit comments