Skip to content

Commit

Permalink
accept I_MPI_ROOT in place of MPIROOT (#2295)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes-intel authored Feb 3, 2025
1 parent 8fea545 commit 96692d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ The build-process (using setup.py) happens in 4 stages:
### Configure the Build with Environment Variables
* ``SKLEARNEX_VERSION``: sets the package version
* ``DALROOT``: sets the oneAPI Data Analytics Library path
* ``MPIROOT``: sets the path to the MPI library that will be used for distributed mode support. Not used when using `NO_DIST=1`
* ``MPIROOT``: sets the path to the MPI library that will be used for distributed mode support. If this variable is not set but `I_MPI_ROOT` is found, will use `I_MPI_ROOT` instead. Not used when using `NO_DIST=1`
* ``NO_DIST``: set to '1', 'yes' or alike to build without support for distributed mode
* ``NO_STREAM``: set to '1', 'yes' or alike to build without support for streaming mode
* ``NO_DPC``: set to '1', 'yes' or alike to build without support of oneDAL DPC++ interfaces
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@
no_stream = "NO_STREAM" in os.environ and os.environ["NO_STREAM"] in trues
use_gcov = "SKLEARNEX_GCOV" in os.environ and os.environ["SKLEARNEX_GCOV"] in trues
debug_build = os.getenv("DEBUG_BUILD") == "1"
mpi_root = None if no_dist else os.environ["MPIROOT"]
mpi_root = None if no_dist else os.environ.get("MPIROOT", os.environ.get("I_MPI_ROOT"))
if (not no_dist) and (mpi_root is None):
raise ValueError(
"'MPIROOT' is not set, cannot build with distributed mode."
" Use 'NO_DIST=1' to build without distributed mode."
)
dpcpp = (
shutil.which("icpx") is not None
and "onedal_dpc" in get_onedal_shared_libs(dal_root)
Expand Down

0 comments on commit 96692d1

Please sign in to comment.