[llvm] [libsycl] Add queue constructors with context. (PR #221763)
Kseniya Tikhomirova via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 04:39:07 PDT 2026
================
@@ -55,12 +56,31 @@ class ProgramWrapper {
/// \return the corresponding liboffload program handle.
ol_program_handle_t getOLHandle() { return MProgram; }
+ /// Returns the liboffload kernel symbol for the specified kernel, looking it
+ /// up in this program on first use.
+ ///
+ /// Symbols belong to the program they were retrieved from: liboffload has no
+ /// olDestroySymbol, so they are released together with this program. Caching
+ /// them here rather than per device keeps a symbol from ever being handed out
+ /// for a program it does not belong to.
----------------
KseniyaTikhomirova wrote:
yes, let's do it separately, thanks for reminding about that
https://github.com/llvm/llvm-project/pull/221763
More information about the llvm-commits
mailing list