Skip to content

Commit

Permalink
NVMATHPY-224 Linking LTOIR from memory instead of files
Browse files Browse the repository at this point in the history
  • Loading branch information
nvlcambier committed Apr 17, 2024
1 parent 1cef304 commit 440f99a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pynvjitlink/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ class Object(LinkableCode):
default_name = "<unnamed-object>"


class LTOIR(LinkableCode):
"""An LTOIR file in memory"""

kind = 'ltoir'
default_name = "<unnamed-ltoir>"


class PatchedLinker(Linker):
def __init__(
self,
Expand Down Expand Up @@ -259,3 +266,4 @@ def patch_numba_linker():
cuda.Fatbin = Fatbin
cuda.Object = Object
cuda.PTXSource = PTXSource
cuda.LTOIR = LTOIR

0 comments on commit 440f99a

Please sign in to comment.