Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Explicitly specific inline
  • Loading branch information
mdboom committed Aug 22, 2025
commit 4c6a057aedbfa0d232c59b1de63aca90d66f531d
4 changes: 2 additions & 2 deletions cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in
Original file line number Diff line number Diff line change
Expand Up @@ -8882,8 +8882,8 @@ cdef int _cuPythonInit() except -1 nogil:
return 0

# Create a very small function to check whether we are init'ed, so the C
# compiler is more likely to inline it.
cdef int cuPythonInit() except -1 nogil:
# compiler can inline it.
cdef inline int cuPythonInit() except -1 nogil:
if __cuPythonInit:
return 0

Expand Down
4 changes: 2 additions & 2 deletions cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ cdef int _cuPythonInit() except -1 nogil:
return 0

# Create a very small function to check whether we are init'ed, so the C
# compiler is more likely to inline it.
cdef int cuPythonInit() except -1 nogil:
# compiler can inline it.
cdef inline int cuPythonInit() except -1 nogil:
if __cuPythonInit:
return 0

Expand Down
4 changes: 2 additions & 2 deletions cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ cdef int _cudaPythonInit() except -1 nogil:
return __usePTDS

# Create a very small function to check whether we are init'ed, so the C
# compiler is more likely to inline it.
cdef int cudaPythonInit() except -1 nogil:
# compiler can inline it.
cdef inline int cudaPythonInit() except -1 nogil:
if __cudaPythonInit:
return __usePTDS

Expand Down