diff --git a/docs/source/get-started/build-and-run-examples.rst b/docs/source/get-started/build-and-run-examples.rst index 4e4b9723723..aef14141ea9 100644 --- a/docs/source/get-started/build-and-run-examples.rst +++ b/docs/source/get-started/build-and-run-examples.rst @@ -39,15 +39,9 @@ basic usage scenarios of |short_name| with DPCPP. Go to On Linux, there are two possible ways to set up the required environment: via ``vars.sh`` script or via ``modulefiles``. - * Setting up |short_name| environment via ``vars.sh`` script - - Run the following command: - - .. code-block:: bash - - source ./env/vars.sh - - * Setting up |short_name| environment via ``modulefiles`` + * To set up |short_name| environment via ``vars.sh`` script, run ``source ./env/vars.sh``. + * To set up |short_name| environment via ``setvars.sh`` script, run ``source ./setvars.sh``. + * To set up |short_name| environment via ``modulefiles``: #. Initialize ``modules``: @@ -71,11 +65,7 @@ basic usage scenarios of |short_name| with DPCPP. Go to .. group-tab:: Windows - Run the following command: - - .. code-block:: bash - - /env/vars.bat + To set up |short_name| environment, run ``source /env/vars.bat`` or ``source setvars.bat``. #. Copy ``./examples/oneapi/dpc`` to a writable directory if necessary (since it creates temporary files): diff --git a/docs/source/onedal/build_app/build-application.rst b/docs/source/onedal/build_app/build-application.rst index c5e8f06994b..7574d8b9cbf 100644 --- a/docs/source/onedal/build_app/build-application.rst +++ b/docs/source/onedal/build_app/build-application.rst @@ -68,7 +68,7 @@ Applications on Linux* OS .. code-block:: text - /dal/latest/libintel64/libonedal_sycl.a + /dal/latest/lib/libonedal_sycl.a .. _app_on_win: @@ -165,18 +165,18 @@ Applications on Windows* OS Examples ******** -Dynamic linking short_name| with the GPU target: +Dynamic linking |short_name| with the GPU target: - * Linux* OS: +* Linux* OS: - .. code-block:: text + .. code-block:: text icpx -fsycl my_first_dal_program.cpp -Wl, --start-group -L/dal/latest/lib -lonedal_core -lonedal_dpc -lonedal_parameters_dpc -lonedal_thread -lpthread -ldl -lOpenCL -L/tbb/latest/lib/ -ltbb -ltbbmalloc /dal/latest/lib/libonedal_sycl.a -Wl,--end-group - * Windows* OS: +* Windows* OS: - .. code-block:: text + .. code-block:: text icx-cl -fsycl my_first_dal_program.cpp -Wl, --start-group -L/dal/latest/lib/ -lonedal_core -lonedal_dpc -lonedal_thread -lpthread -ldl -lOpenCL -L/tbb/latest/lib/ -ltbb -ltbbmalloc /dal/latest/lib/libonedal_sycl.a -Wl,--end-group