Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'numba/master' into grm-cuda-debug-impro…
…vements
  • Loading branch information
gmarkall committed May 25, 2021
commit 772ed7fc5e01904346941e466fcb92b323a7fe63
7 changes: 4 additions & 3 deletions numba/cuda/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,16 @@ def compile(self, args):

Returns the `CompileResult`.
"""
if args not in self._compileinfos:
if args not in self.overloads:
nvvm_options = {
'debug': self.debug,
'opt': 3 if self.opt else 0
}

cres = compile_cuda(self.py_func, None, args, debug=self.debug,
inline=self.inline, nvvm_options=nvvm_options)
first_definition = not self._compileinfos
self._compileinfos[args] = cres
first_definition = not self.overloads
self.overloads[args] = cres
libs = [cres.library]

if first_definition:
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.