[llvm] [offload] Add context parameter to olCreateQueue (PR #213057)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 03:17:45 PDT 2026
=?utf-8?q?Łukasz?= Plewa <lukasz.plewa at intel.com>,
=?utf-8?q?Łukasz?= Plewa <lukasz.plewa at intel.com>,
=?utf-8?q?Łukasz?= Plewa <lukasz.plewa at intel.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/213057 at github.com>
================
@@ -177,6 +182,7 @@ struct AsyncInfoWrapperTy {
GenericDeviceTy &Device;
__tgt_async_info LocalAsyncInfo;
__tgt_async_info *AsyncInfoPtr;
+ PluginContextTy *Context = nullptr;
----------------
blazej-smorawski wrote:
>From what I see in the omptarget code there's a different wrapper for async info - `AsyncInfoTy` which is created separately. The we call `GenericDeviceTy::launchKernel` which uses internal `__tgt_async_info` and then builds `AsyncInfoWrapperTy` on top of it. I think my change should be okay, because it will create same `__tgt_async_info` but with queue created in specific context.
https://github.com/llvm/llvm-project/pull/213057
More information about the llvm-commits
mailing list