Skip to content

Commit e3e04c7

Browse files
author
Diptorup Deb
committed
Add extra information on how to build dpdnp from source.
1 parent 614c829 commit e3e04c7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,35 @@ DPNP_QUEUE_GPU=1 python examples/example1.py
2020
```
2121

2222
## Build from source:
23+
Ensure you have the following prerequisite packages installed:
24+
25+
- `mkl-devel-dpcpp`
26+
- `dpcpp_linux-64` or `dpcpp_win-64` (depending on your OS)
27+
- `tbb-devel`
28+
- `dpctl`
29+
30+
In addition, you need oneDPL installed on your system. There are two ways to do
31+
so:
32+
33+
1. Install oneAPI and run the oneDPL activation script. E.g., on linux:
34+
35+
```bash
36+
source /opt/intel/oneapi/dpl/latest/env/vars.sh
37+
```
38+
39+
2. Clone dpl from https://github.com/oneapi-src/oneDPL and set the `DPL_ROOT`
40+
environment variable to point to the `include` directory in the repository.
41+
42+
E.g., on linux
43+
44+
```bash
45+
git clone https://github.com/oneapi-src/oneDPL
46+
export DPL_ROOT=$(pwd)/oneDPL/include
47+
```
48+
49+
After these steps, `dpnp` can be built in debug mode as follows:
50+
51+
2352
```bash
2453
git clone https://github.com/IntelPython/dpnp
2554
cd dpnp

0 commit comments

Comments
 (0)