diff options
Diffstat (limited to 'offload/plugins-nextgen/host/src/rtl.cpp')
| -rw-r--r-- | offload/plugins-nextgen/host/src/rtl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/offload/plugins-nextgen/host/src/rtl.cpp b/offload/plugins-nextgen/host/src/rtl.cpp index aa59ea618e39..fe296b77c7d5 100644 --- a/offload/plugins-nextgen/host/src/rtl.cpp +++ b/offload/plugins-nextgen/host/src/rtl.cpp @@ -90,7 +90,8 @@ struct GenELF64KernelTy : public GenericKernelTy { /// Launch the kernel using the libffi. Error launchImpl(GenericDeviceTy &GenericDevice, uint32_t NumThreads, - uint64_t NumBlocks, KernelArgsTy &KernelArgs, void *Args, + uint64_t NumBlocks, KernelArgsTy &KernelArgs, + KernelLaunchParamsTy LaunchParams, AsyncInfoWrapperTy &AsyncInfoWrapper) const override { // Create a vector of ffi_types, one per argument. SmallVector<ffi_type *, 16> ArgTypes(KernelArgs.NumArgs, &ffi_type_pointer); @@ -105,7 +106,7 @@ struct GenELF64KernelTy : public GenericKernelTy { // Call the kernel function through libffi. long Return; - ffi_call(&Cif, Func, &Return, (void **)Args); + ffi_call(&Cif, Func, &Return, (void **)LaunchParams.Ptrs); return Plugin::success(); } |
