Skip to content

Commit e9deb95

Browse files
ENH: removed dpctl for spmd backend (#1764)
* ENH: removed dpctl for spmd backend * update for sklearnex build
1 parent f1ab18f commit e9deb95

File tree

2 files changed

+2
-33
lines changed

2 files changed

+2
-33
lines changed

setup.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,7 @@
8989

9090
use_parameters_lib = (not IS_WIN) and (ONEDAL_VERSION >= 20240000)
9191

92-
try:
93-
import dpctl
94-
95-
dpctl_available = dpctl.__version__ >= "0.14"
96-
except ImportError:
97-
import importlib.util
98-
99-
try:
100-
dpctl_include = os.path.join(
101-
importlib.util.find_spec("dpctl").submodule_search_locations[0], "include"
102-
)
103-
dpctl_available = dpctl_include is not None
104-
except AttributeError:
105-
dpctl_available = False
106-
107-
build_distribute = dpcpp and dpctl_available and not no_dist and IS_LIN
108-
92+
build_distribute = dpcpp and not no_dist and IS_LIN
10993

11094
daal_lib_dir = lib_dir if (IS_MAC or os.path.isdir(lib_dir)) else os.path.dirname(lib_dir)
11195
ONEDAL_LIBDIRS = [daal_lib_dir]

setup_sklearnex.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,7 @@
5454
no_dist = True if "NO_DIST" in os.environ and os.environ["NO_DIST"] in trues else False
5555
dpcpp = shutil.which("icpx") is not None
5656

57-
try:
58-
import dpctl
59-
60-
dpctl_available = dpctl.__version__ >= "0.14"
61-
except ImportError:
62-
import importlib.util
63-
64-
try:
65-
dpctl_include = os.path.join(
66-
importlib.util.find_spec("dpctl").submodule_search_locations[0], "include"
67-
)
68-
dpctl_available = dpctl_include is not None
69-
except AttributeError:
70-
dpctl_available = False
71-
72-
build_distribute = dpcpp and dpctl_available and not no_dist and IS_LIN
57+
build_distribute = dpcpp and not no_dist and IS_LIN
7358

7459
ONEDAL_VERSION = get_onedal_version(dal_root)
7560

0 commit comments

Comments
 (0)