We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc80df3 commit d7ac874Copy full SHA for d7ac874
numba_cuda/numba/cuda/typing/context.py
@@ -512,9 +512,9 @@ def is_external(obj):
512
continue
513
self.insert_attributes(ftcls(self))
514
for gv, gty in loader.new_registrations("globals"):
515
- # If external_defs_only, check the global type's module
+ # If external_defs_only, check the global value's module
516
if external_defs_only:
517
- if hasattr(gty, "__module__") and not is_external(gty):
+ if hasattr(gv, "__module__") and not is_external(gv):
518
519
existing = self._lookup_global(gv)
520
if existing is None:
0 commit comments