|
104 | 104 | " Use 'NO_DIST=1' to build without distributed mode." |
105 | 105 | ) |
106 | 106 | dpcpp = ( |
107 | | - shutil.which("icpx") is not None |
108 | | - and "onedal_dpc" in get_onedal_shared_libs(dal_root) |
| 107 | + shutil.which("icpx" if not IS_WIN else "icx") is not None |
| 108 | + and "onedal_dpc" in get_onedal_shared_libs(dal_root, IS_WIN) |
109 | 109 | and not no_dpc |
110 | 110 | and not (IS_WIN and debug_build) |
111 | 111 | ) |
112 | 112 |
|
113 | 113 | use_parameters_lib = (not IS_WIN) and (ONEDAL_VERSION >= 20240000) |
114 | 114 |
|
115 | | -build_distribute = dpcpp and not no_dist and IS_LIN |
| 115 | +build_distributed = dpcpp and not no_dist and IS_LIN |
116 | 116 |
|
117 | 117 | daal_lib_dir = lib_dir if (IS_MAC or os.path.isdir(lib_dir)) else os.path.dirname(lib_dir) |
118 | 118 | ONEDAL_LIBDIRS = [daal_lib_dir] |
@@ -418,12 +418,12 @@ def gen_pyx(odir): |
418 | 418 | def get_onedal_py_libs(): |
419 | 419 | ext_suffix = get_config_vars("EXT_SUFFIX")[0] |
420 | 420 | libs = [f"_onedal_py_host{ext_suffix}", f"_onedal_py_dpc{ext_suffix}"] |
421 | | - if build_distribute: |
| 421 | + if build_distributed: |
422 | 422 | libs += [f"_onedal_py_spmd_dpc{ext_suffix}"] |
423 | 423 | if IS_WIN: |
424 | 424 | ext_suffix_lib = ext_suffix.replace(".dll", ".lib") |
425 | 425 | libs += [f"_onedal_py_host{ext_suffix_lib}", f"_onedal_py_dpc{ext_suffix_lib}"] |
426 | | - if build_distribute: |
| 426 | + if build_distributed: |
427 | 427 | libs += [f"_onedal_py_spmd_dpc{ext_suffix_lib}"] |
428 | 428 | return libs |
429 | 429 |
|
@@ -476,7 +476,7 @@ def onedal_run(self): |
476 | 476 | build_onedal("host") |
477 | 477 | if dpcpp: |
478 | 478 | build_onedal("dpc") |
479 | | - if build_distribute: |
| 479 | + if build_distributed: |
480 | 480 | build_onedal("spmd_dpc") |
481 | 481 |
|
482 | 482 | def onedal_post_build(self): |
@@ -569,7 +569,7 @@ class build(onedal_build, orig_build.build): |
569 | 569 | if ONEDAL_VERSION >= 20230200: |
570 | 570 | packages_with_tests += ["onedal.cluster"] |
571 | 571 |
|
572 | | -if build_distribute: |
| 572 | +if build_distributed: |
573 | 573 | packages_with_tests += [ |
574 | 574 | "onedal.spmd", |
575 | 575 | "onedal.spmd.covariance", |
|
0 commit comments