Skip to content

Commit 106b1e2

Browse files
committed
Inline UR_KERNEL_INFO_SPILL_MEM_SIZE
1 parent 597e5f0 commit 106b1e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/source/detail/kernel_info.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,16 @@ get_kernel_device_specific_info<
154154
ur_kernel_handle_t Kernel, ur_device_handle_t Device,
155155
const AdapterPtr &Adapter) {
156156
size_t ResultSize = 0;
157-
ur_kernel_info_t PropName = UR_KERNEL_INFO_SPILL_MEM_SIZE;
158157

159158
// First call to get the number of device images
160-
Adapter->call<UrApiKind::urKernelGetInfo>(Kernel, PropName, 0, nullptr,
159+
Adapter->call<UrApiKind::urKernelGetInfo>(Kernel, UR_KERNEL_INFO_SPILL_MEM_SIZE, 0, nullptr,
161160
&ResultSize);
162161

163162
size_t DeviceCount = ResultSize / sizeof(uint32_t);
164163

165164
// Second call to retrieve the data
166165
std::vector<uint32_t> Result(DeviceCount);
167-
Adapter->call<UrApiKind::urKernelGetInfo>(Kernel, PropName, ResultSize,
166+
Adapter->call<UrApiKind::urKernelGetInfo>(Kernel, UR_KERNEL_INFO_SPILL_MEM_SIZE, ResultSize,
168167
Result.data(), nullptr);
169168

170169
ur_program_handle_t Program;

0 commit comments

Comments
 (0)