Use RuntimeError instead of ValueError
@@ -152,7 +152,7 @@ cdef class NcclCommunicator:
cpdef abort(self):
if NCCL_VERSION_CODE < 2400:
- raise ValueError("ncclCommAbort is not available"
+ raise RuntimeError("ncclCommAbort is not available"
" in this version")
if self._comm:
ncclCommAbort(self._comm)
@@ -215,7 +215,7 @@ cdef class NcclCommunicator:
def check_async_error(self):
if NCCL_VERSION_CODE < 2400:
- raise ValueError("ncclCommGetAsyncError is not available"
+ raise RuntimeError("ncclCommGetAsyncError is not available"
" in this version")
cdef ncclResult_t asyncError = ncclSuccess
with nogil:
