diff --git a/python/cuml/cuml/internals/array.py b/python/cuml/cuml/internals/array.py index e61d84ab83..991c00f73c 100644 --- a/python/cuml/cuml/internals/array.py +++ b/python/cuml/cuml/internals/array.py @@ -19,7 +19,7 @@ import pickle from cuml.internals.global_settings import GlobalSettings -from cuml.internals.logger import debug +from cuml.internals.logger import debug, info from cuml.internals.mem_type import MemoryType, MemoryTypeError from cuml.internals.memory_utils import class_with_cupy_rmm, with_cupy_rmm from cuml.internals.safe_imports import ( @@ -1184,10 +1184,20 @@ def from_input( not fail_on_order and order != arr.order and order != "K" ) or make_copy: if make_copy: + info( + "Got an uncontiguous array." + " Converting data; this will result in additional memory" + " utilization." + ) data = arr.mem_type.xpy.array( arr.to_output("array"), order=order ) else: + info( + f"Expected {order} major order but got {arr.order}." + " Converting data; this will result in additional memory" + " utilization." + ) data = arr.mem_type.xpy.asarray( arr.to_output("array"), order=order )