Skip to content

Commit

Permalink
Fix style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Jan 12, 2024
1 parent 3c7746f commit 441364d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ci/test_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Copyright (c) 2024, NVIDIA CORPORATION

from pynvjitlink import patch

patch.patch_numba_linker()

if __name__ == '__main__':
if __name__ == "__main__":
from numba.testing._runtests import _main
import sys

Expand Down
8 changes: 6 additions & 2 deletions pynvjitlink/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@
if _numba_version_ok:
from numba.core import config
from numba.cuda.cudadrv import nvrtc
from numba.cuda.cudadrv.driver import (driver, FILE_EXTENSION_MAP, Linker,
LinkerError)
from numba.cuda.cudadrv.driver import (
driver,
FILE_EXTENSION_MAP,
Linker,
LinkerError,
)
else:
# Prevent the definition of PatchedLinker failing if we have no Numba
# Linker - it won't be used anyway.
Expand Down

0 comments on commit 441364d

Please sign in to comment.