Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dlee992 committed Jul 4, 2024
1 parent 912aab6 commit 825e0a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions numba_cuda/numba/cuda/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def jit(func_or_sig=None, device=False, inline=False, link=[], debug=None,
Useful for increasing occupancy.
:param opt: Whether to compile from LLVM IR to PTX with optimization
enabled. When ``True``, ``-opt=3`` is passed to NVVM. When
``False``, ``-opt=0`` is passed to NVVM. Defaults to ``True``.
``False``, ``-opt=0`` is passed to NVVM. Defaults to ``None``.
The default value will be reset by environment variable
``NUMBA_OPT``. If ``0``, ``opt`` is reset as ``False``;
otherwise, it is reset to ``True``.
:type opt: bool
:param lineinfo: If True, generate a line mapping between source code and
assembly code. This enables inspection of the source code in NVIDIA
Expand All @@ -71,9 +74,9 @@ def jit(func_or_sig=None, device=False, inline=False, link=[], debug=None,
raise DeprecationError(msg)

debug = config.CUDA_DEBUGINFO_DEFAULT if debug is None else debug
opt = (True if config.OPT != 0 else False) if opt is None else opt
fastmath = kws.get('fastmath', False)
extensions = kws.get('extensions', [])
opt = (True if config.OPT != 0 else False) if opt is None else opt

if debug and opt:
msg = ("debug=True with opt=True (the default) "
Expand Down

0 comments on commit 825e0a7

Please sign in to comment.