Skip to content

Commit cd8ac18

Browse files
committed
Update build instructions per review
1 parent 2958200 commit cd8ac18

File tree

1 file changed

+41
-6
lines changed

1 file changed

+41
-6
lines changed

README.md

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,50 @@ Where `<numpy_version>` should be the latest version from https://software.repos
3636

3737
## Building
3838

39-
Intel(R) C compiler and Intel(R) Math Kernel Library are required to build `mkl_umath` from source
40-
41-
If MKL is installed via Conda, `MKLROOT` environment variable must be set
39+
Intel(R) C compiler and Intel(R) OneAPI Math Kernel Library (OneMKL) are required to build `mkl_umath` from source.
40+
41+
If these are installed as part of a `oneAPI` installation, the following packages must also be installed into the environment
42+
- `cmake`
43+
- `ninja`
44+
- `cython`
45+
- `scikit-build`
46+
- `numpy`
47+
48+
If build dependencies are to be installed with Conda, the following packages must be installed from the Intel(R) channel
49+
- `mkl-devel`
50+
- `dpcpp_linux-64` (or `dpcpp_win-64` for Windows)
51+
- `numpy-base`
52+
53+
then the remaining dependencies
54+
- `cmake`
55+
- `ninja`
56+
- `cython`
57+
- `scikit-build`
58+
59+
and for `mkl-devel` and `dpcpp_linux-64` in a Conda environment, `MKLROOT` environment variable must be set
60+
On Linux
4261
```sh
4362
export MKLROOT=$CONDA_PREFIX
44-
CC=icx pip install --no-build-isolation --no-deps .
4563
```
4664

47-
To develop,
65+
On Windows
4866
```sh
49-
python setup.py develop --no-deps -G Ninja -DCMAKE_C_COMPILER:PATH=icx
67+
set MKLROOT=%CONDA_PREFIX%
68+
```
69+
70+
If using `oneAPI`, it must be activated in the environment
71+
72+
On Linux
73+
```
74+
source ${ONEAPI_ROOT}/setvars.sh
75+
```
76+
77+
On Windows
78+
```
79+
call "%ONEAPI_ROOT%\setvars.bat"
80+
```
81+
82+
finally, execute
83+
```
84+
CC=icx pip install --no-build-isolation --no-deps .
5085
```

0 commit comments

Comments
 (0)