Skip to content

Commit

Permalink
Use add_library to link archives in Numba patch
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Feb 13, 2024
1 parent 90bc3f2 commit 34afabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynvjitlink/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def add_file(self, path, kind):
elif kind == FILE_EXTENSION_MAP["fatbin"]:
fn = self._linker.add_fatbin
elif kind == FILE_EXTENSION_MAP["a"]:
raise LinkerError("Don't know how to link archives")
fn = self._linker.add_library
elif kind == FILE_EXTENSION_MAP["ptx"]:
return self.add_ptx(data, name)
elif kind == FILE_EXTENSION_MAP["o"]:
Expand Down

0 comments on commit 34afabc

Please sign in to comment.