Skip to content

Commit 4b273cd

Browse files
Adapt olLaunchKernel call to a change in the Offload API
1 parent c85da4c commit 4b273cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

offload/unittests/Conformance/lib/DeviceContext.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,14 @@ DeviceContext::getKernelHandle(ol_program_handle_t ProgramHandle,
288288
void DeviceContext::launchKernelImpl(
289289
ol_symbol_handle_t KernelHandle, uint32_t NumGroups, uint32_t GroupSize,
290290
const void *KernelArgs, std::size_t KernelArgsSize) const noexcept {
291-
ol_kernel_launch_size_args_t LaunchArgs;
292-
LaunchArgs.Dimensions = 1;
293-
LaunchArgs.NumGroups = {NumGroups, 1, 1};
294-
LaunchArgs.GroupSize = {GroupSize, 1, 1};
295-
LaunchArgs.DynSharedMemory = 0;
291+
ol_kernel_launch_size_args_t LaunchSizeArgs;
292+
LaunchSizeArgs.Dimensions = 1;
293+
LaunchSizeArgs.NumGroups = {NumGroups, 1, 1};
294+
LaunchSizeArgs.GroupSize = {GroupSize, 1, 1};
295+
LaunchSizeArgs.DynSharedMemory = 0;
296296

297297
OL_CHECK(olLaunchKernel(nullptr, DeviceHandle, KernelHandle, KernelArgs,
298-
KernelArgsSize, &LaunchArgs, nullptr));
298+
KernelArgsSize, &LaunchSizeArgs));
299299
}
300300

301301
[[nodiscard]] llvm::StringRef DeviceContext::getName() const noexcept {

0 commit comments

Comments
 (0)