diff --git a/README.md b/README.md index fd54be2f92..b93bb5c9a7 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,16 @@ Build and Install Conda Package conda create -n build-env conda-build conda activate build-env ``` -2. Build conda package +2. Set environment variable `ONEAPI_ROOT` and build conda package ```bash -conda build conda-recipe +export ONEAPI_ROOT=/opt/intel/oneapi +conda build conda-recipe -c ${ONEAPI_ROOT}/conda_channel ``` -On Windows to cope with [long file names](https://github.com/IntelPython/dpctl/issues/15): +On Windows to cope with [long file names](https://github.com/IntelPython/dpctl/issues/15) +use `croot` with short folder path: ```cmd -conda build --croot=C:/tmp conda-recipe +set "ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI\" +conda build --croot=C:/tmp conda-recipe -c "%ONEAPI_ROOT%\conda_channel" ``` :warning: **You could face issues with conda-build=3.20**: Use conda-build=3.18! @@ -38,7 +41,7 @@ conda install dpctl Using dpCtl =========== -dpCtl relies on DPC++ runtime. With Intel oneAPI installed you should activate it. +dpCtl relies on DPC++ runtime. With Intel oneAPI installed you could activate it. On Windows: ```cmd @@ -49,6 +52,12 @@ On Linux: source ${ONEAPI_ROOT}/compiler/latest/env/vars.sh ``` +When dpCtl is installed via conda package +then it uses DPC++ runtime from `dpcpp_cpp_rt` package +and it is not necessary to activate oneAPI DPC++ compiler environment. + +`dpcpp_cpp_rt` package is provided by oneAPI `conda_channel`. + Examples ======== See examples in folder `examples`. diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index acf485898a..1dca3e5339 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -26,6 +26,7 @@ requirements: run: - python - numpy >=1.17 + - dpcpp_cpp_rt about: home: https://github.com/IntelPython/dpCtl.git