From e3e04c75d485be777663d388a169b39fd0ed402b Mon Sep 17 00:00:00 2001 From: Diptorup Deb Date: Wed, 21 Sep 2022 16:32:40 -0500 Subject: [PATCH] Add extra information on how to build dpdnp from source. --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index bf9dfd5ff27e..a26125fa35fe 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,35 @@ DPNP_QUEUE_GPU=1 python examples/example1.py ``` ## Build from source: + Ensure you have the following prerequisite packages installed: + +- `mkl-devel-dpcpp` +- `dpcpp_linux-64` or `dpcpp_win-64` (depending on your OS) +- `tbb-devel` +- `dpctl` + +In addition, you need oneDPL installed on your system. There are two ways to do +so: + +1. Install oneAPI and run the oneDPL activation script. E.g., on linux: + + ```bash + source /opt/intel/oneapi/dpl/latest/env/vars.sh + ``` + +2. Clone dpl from https://github.com/oneapi-src/oneDPL and set the `DPL_ROOT` + environment variable to point to the `include` directory in the repository. + + E.g., on linux + + ```bash + git clone https://github.com/oneapi-src/oneDPL + export DPL_ROOT=$(pwd)/oneDPL/include + ``` + +After these steps, `dpnp` can be built in debug mode as follows: + + ```bash git clone https://github.com/IntelPython/dpnp cd dpnp