Skip to content
Prev Previous commit
Next Next commit
Fix pre-commit: strip trailing whitespace and ensure final newline
Regenerated from latest cybind which now cleans up trailing whitespace
and ensures files end with exactly one newline.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
  • Loading branch information
leofang and claude committed Apr 14, 2026
commit 3317324b2a6d5f9dad4a57f27a73709737de38ab
1 change: 0 additions & 1 deletion cuda_bindings/cuda/bindings/_internal/nvrtc.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void*
cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil

cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil

1 change: 0 additions & 1 deletion cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -597,4 +597,3 @@ cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_
with gil:
raise FunctionNotFoundError("function nvrtcGetTileIR is not found")
return (<nvrtcResult (*)(nvrtcProgram, char*) noexcept nogil>__nvrtcGetTileIR)(prog, TileIR)

1 change: 0 additions & 1 deletion cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,3 @@ cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_
with gil:
raise FunctionNotFoundError("function nvrtcGetTileIR is not found")
return (<nvrtcResult (*)(nvrtcProgram, char*) noexcept nogil>__nvrtcGetTileIR)(prog, TileIR)

1 change: 0 additions & 1 deletion cuda_bindings/cuda/bindings/cynvrtc.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* p
cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil

cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil

1 change: 0 additions & 1 deletion cuda_bindings/cuda/bindings/cynvrtc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) ex

cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil:
return _nvrtc._nvrtcGetTileIR(prog, TileIR)

1 change: 0 additions & 1 deletion cuda_bindings/cuda/bindings/nvrtc.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ cdef class nvrtcProgram:
"""
cdef cynvrtc.nvrtcProgram _pvt_val
cdef cynvrtc.nvrtcProgram* _pvt_ptr

42 changes: 21 additions & 21 deletions cuda_bindings/cuda/bindings/nvrtc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -48,41 +48,41 @@ class nvrtcResult(_FastEnum):
The enumerated type nvrtcResult defines API call result codes.
NVRTC API functions return nvrtcResult to indicate the call result.
"""

NVRTC_SUCCESS = cynvrtc.nvrtcResult.NVRTC_SUCCESS

NVRTC_ERROR_OUT_OF_MEMORY = cynvrtc.nvrtcResult.NVRTC_ERROR_OUT_OF_MEMORY

NVRTC_ERROR_PROGRAM_CREATION_FAILURE = cynvrtc.nvrtcResult.NVRTC_ERROR_PROGRAM_CREATION_FAILURE

NVRTC_ERROR_INVALID_INPUT = cynvrtc.nvrtcResult.NVRTC_ERROR_INVALID_INPUT

NVRTC_ERROR_INVALID_PROGRAM = cynvrtc.nvrtcResult.NVRTC_ERROR_INVALID_PROGRAM

NVRTC_ERROR_INVALID_OPTION = cynvrtc.nvrtcResult.NVRTC_ERROR_INVALID_OPTION

NVRTC_ERROR_COMPILATION = cynvrtc.nvrtcResult.NVRTC_ERROR_COMPILATION

NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = cynvrtc.nvrtcResult.NVRTC_ERROR_BUILTIN_OPERATION_FAILURE

NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = cynvrtc.nvrtcResult.NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION

NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = cynvrtc.nvrtcResult.NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION

NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = cynvrtc.nvrtcResult.NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID

NVRTC_ERROR_INTERNAL_ERROR = cynvrtc.nvrtcResult.NVRTC_ERROR_INTERNAL_ERROR

NVRTC_ERROR_TIME_FILE_WRITE_FAILED = cynvrtc.nvrtcResult.NVRTC_ERROR_TIME_FILE_WRITE_FAILED

NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED = cynvrtc.nvrtcResult.NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED

NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED = cynvrtc.nvrtcResult.NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED

NVRTC_ERROR_PCH_CREATE = cynvrtc.nvrtcResult.NVRTC_ERROR_PCH_CREATE

NVRTC_ERROR_CANCELLED = cynvrtc.nvrtcResult.NVRTC_ERROR_CANCELLED

NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED = cynvrtc.nvrtcResult.NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED

cdef object _nvrtcResult = nvrtcResult
Expand Down Expand Up @@ -966,7 +966,7 @@ def nvrtcSetFlowCallback(prog, callback, payload):

@cython.embedsignature(True)
def nvrtcGetTileIRSize(prog):
"""
"""

Parameters
----------
Expand Down Expand Up @@ -997,7 +997,7 @@ def nvrtcGetTileIRSize(prog):

@cython.embedsignature(True)
def nvrtcGetTileIR(prog, char* TileIR):
"""
"""

Parameters
----------
Expand Down Expand Up @@ -1037,7 +1037,7 @@ def sizeof(objType):
lowered_name : int
The size of `objType` in bytes
"""

if objType == nvrtcProgram:
return sizeof(cynvrtc.nvrtcProgram)
raise TypeError("Unknown type: " + str(objType))
Loading