Skip to content

Commit 0120702

Browse files
committed
Fix error message
1 parent 8a51cf0 commit 0120702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_core/cuda/core/system/_device.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ cdef class Device:
896896
For devices with NVLink support.
897897
"""
898898
if link < 0 or link >= self.get_nvlink_count():
899-
raise ValueError(f"Link index {link} is out of range [0, {self.get_num_nvlinks()})")
899+
raise ValueError(f"Link index {link} is out of range [0, {self.get_nvlink_count()})")
900900
return NvlinkInfo(self, link)
901901
902902
@versionadded(version="1.1.0")

0 commit comments

Comments
 (0)