Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion cupy/_core/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ cdef class _ndarray_base:
# TODO(leofang): use flags
if (not is_ump_supported(self.data.device_id)
or not self.is_host_accessible()):
raise RuntimeError(
raise TypeError(
'Accessing a CuPy ndarry on CPU is not allowed except when '
'using system memory (on HMM or ATS enabled systems, need to '
'set CUPY_ENABLE_UMP=1) or managed memory')
Expand Down
2 changes: 1 addition & 1 deletion cupy/_core/dlpack.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cdef DLDevice get_dlpack_device(_ndarray_base array):
# The name of this function is following the framework integration guide of
# TensorComprehensions.
cpdef object toDlpack(
_ndarray_base array, bint use_versioned=True, bint to_cpu=False,
_ndarray_base array, bint use_versioned=False, bint to_cpu=False,
bint ensure_copy=False, stream=None
) except +:
"""Create a dlpack capsule for an array.
Expand Down