Skip to content

Commit 84ebf2f

Browse files
authored
Add deprecation warning to cuml-cpu builds (#6466)
We're deprecating `cuml-cpu` in favor of `cuml.accel`. This adds a deprecation warning on import of `cuml-cpu` builds notifying users of this deprecation, and linking them to the relevant docs to learn more. Fixes #6458. Authors: - Jim Crist-Harif (https://github.com/jcrist) Approvers: - Simon Adorf (https://github.com/csadorf) URL: #6466
1 parent ed2dfef commit 84ebf2f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

python/cuml/cuml/internals/device_support.pyx

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022-2024, NVIDIA CORPORATION.
2+
# Copyright (c) 2022-2025, NVIDIA CORPORATION.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -39,3 +39,12 @@ IF GPUBUILD == 1:
3939

4040
ELSE:
4141
GPU_ENABLED = False
42+
43+
import warnings
44+
warnings.warn(
45+
"`cuml-cpu` is deprecated in favor of `cuml.accel`, cuML's new Zero Code "
46+
"Change Acceleration layer. The final release of `cuml-cpu` is version 25.04. "
47+
"To learn more about `cuml.accel` please see "
48+
"https://docs.rapids.ai/api/cuml/stable/zero-code-change/",
49+
FutureWarning
50+
)

0 commit comments

Comments
 (0)