Skip to content

Commit

Permalink
Align cuda and cuda simulator kwarg names.
Browse files Browse the repository at this point in the history
As title.

Fixes numba#3574.
  • Loading branch information
stuartarchibald committed Dec 10, 2018
1 parent 102f177 commit b49c952
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions numba/cuda/simulator/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ def elapsed_time(self, event):
event = Event


def jit(fn_or_sig=None, device=False, debug=False, argtypes=None, inline=False, restype=None,
fastmath=False, link=None):
def jit(func_or_sig=None, device=False, debug=False, argtypes=None,
inline=False, restype=None, fastmath=False, link=None):
if link is not None:
raise NotImplementedError('Cannot link PTX in the simulator')
# Check for first argument specifying types - in that case the
# decorator is not being passed a function
if fn_or_sig is None or isinstance(fn_or_sig, (str, tuple, Signature)):
if func_or_sig is None or isinstance(func_or_sig, (str, tuple, Signature)):
def jitwrapper(fn):
return FakeCUDAKernel(fn,
device=device,
fastmath=fastmath)
return jitwrapper
return FakeCUDAKernel(fn_or_sig, device=device)
return FakeCUDAKernel(func_or_sig, device=device)

autojit = jit

Expand Down

0 comments on commit b49c952

Please sign in to comment.