diff --git a/CMakeLists.txt b/CMakeLists.txt index e7aea026fe72..054d1895c65c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,7 @@ if(_use_onemkl_interfaces) GIT_TAG f2d2dcb4213a435bb60fbb88320c5f24892423ce ) FetchContent_MakeAvailable(onemkl_interfaces_library) + set(CMAKE_INSTALL_RPATH "${CMAKE_BINARY_DIR}/lib") endif() if(WIN32) diff --git a/doc/quick_start_guide.rst b/doc/quick_start_guide.rst index c08fa614187e..e76556c07442 100644 --- a/doc/quick_start_guide.rst +++ b/doc/quick_start_guide.rst @@ -116,6 +116,27 @@ Alternatively, to develop on Linux OS, you can use the driver script: python scripts/build_locally.py +Building for custom SYCL targets +-------------------------------- +Project ``dpnp`` is written using generic SYCL and supports building for multiple SYCL targets, +subject to limitations of `CodePlay `_ plugins implementing SYCL +programming model for classes of devices. + +Building ``dpnp`` for these targets requires that these CodePlay plugins be installed into DPC++ +installation layout of compatible version. The following plugins from CodePlay are supported: + + - `oneAPI for NVIDIA(R) GPUs `_ + +.. _codeplay_nv_plugin: https://developer.codeplay.com/products/oneapi/nvidia/ + +Building ``dpnp`` also requires `building Data Parallel Control Library for custom SYCL targets. +`_ + +Build ``dpnp`` as follows: + +.. code-block:: bash + + python scripts/build_locally.py --target=cuda Testing =======