File tree Expand file tree Collapse file tree 1 file changed +41
-6
lines changed Expand file tree Collapse file tree 1 file changed +41
-6
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,50 @@ Where `<numpy_version>` should be the latest version from https://software.repos
36
36
37
37
## Building
38
38
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
42
61
``` sh
43
62
export MKLROOT=$CONDA_PREFIX
44
- CC=icx pip install --no-build-isolation --no-deps .
45
63
```
46
64
47
- To develop,
65
+ On Windows
48
66
``` 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 .
50
85
```
You can’t perform that action at this time.
0 commit comments