Skip to content

Commit

Permalink
Merge pull request #7955 from kmaehashi/fix-nvrtc-error
Browse files Browse the repository at this point in the history
Fix `NVRTCError` not calling `initialize()`
  • Loading branch information
takagi committed Oct 23, 2023
2 parents 22845e9 + 97ec7f8 commit 6bd7021
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cupy_backends/cuda/libs/nvrtc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ELSE:
class NVRTCError(RuntimeError):

def __init__(self, status):
initialize()
self.status = status
cdef bytes msg = nvrtcGetErrorString(<nvrtcResult>status)
super(NVRTCError, self).__init__(
Expand Down

0 comments on commit 6bd7021

Please sign in to comment.