Skip to content

Commit 34f24f3

Browse files
committed
Rename Result to Device2SpillMap
1 parent 106b1e2 commit 34f24f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/source/detail/kernel_info.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ get_kernel_device_specific_info<
162162
size_t DeviceCount = ResultSize / sizeof(uint32_t);
163163

164164
// Second call to retrieve the data
165-
std::vector<uint32_t> Result(DeviceCount);
165+
std::vector<uint32_t> Device2SpillMap(DeviceCount);
166166
Adapter->call<UrApiKind::urKernelGetInfo>(Kernel, UR_KERNEL_INFO_SPILL_MEM_SIZE, ResultSize,
167-
Result.data(), nullptr);
167+
Device2SpillMap.data(), nullptr);
168168

169169
ur_program_handle_t Program;
170170
Adapter->call<UrApiKind::urKernelGetInfo>(Kernel, UR_KERNEL_INFO_PROGRAM,
@@ -180,12 +180,12 @@ get_kernel_device_specific_info<
180180
Adapter->call<UrApiKind::urProgramGetInfo>(Program, UR_PROGRAM_INFO_DEVICES,
181181
URDevicesSize, URDevices.data(),
182182
nullptr);
183-
assert(Result.size() == URDevices.size());
183+
assert(Device2SpillMap.size() == URDevices.size());
184184

185185
// Map the result back to the program devices
186186
for (size_t idx = 0; idx < URDevices.size(); ++idx) {
187187
if (URDevices[idx] == Device)
188-
return size_t{Result[idx]};
188+
return size_t{Device2SpillMap[idx]};
189189
}
190190
throw exception(
191191
make_error_code(errc::runtime),

0 commit comments

Comments
 (0)