Skip to content

Commit

Permalink
[doc] Update setvars (#2551)
Browse files Browse the repository at this point in the history
* Update directory layout

* Update build-and-run-examples.rst

* fix typo

* fix typo
  • Loading branch information
aepanchi committed Oct 19, 2023
1 parent b854cda commit c96317d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
18 changes: 4 additions & 14 deletions docs/source/get-started/build-and-run-examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``:

Expand All @@ -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):

Expand Down
12 changes: 6 additions & 6 deletions docs/source/onedal/build_app/build-application.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Applications on Linux* OS

.. code-block:: text
<install dir>/dal/latest/libintel64/libonedal_sycl.a
<install dir>/dal/latest/lib/libonedal_sycl.a
.. _app_on_win:

Expand Down Expand Up @@ -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<install dir>/dal/latest/lib -lonedal_core -lonedal_dpc -lonedal_parameters_dpc -lonedal_thread -lpthread -ldl -lOpenCL -L<install dir>/tbb/latest/lib/ -ltbb -ltbbmalloc <install dir>/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<install dir>/dal/latest/lib/ -lonedal_core -lonedal_dpc -lonedal_thread -lpthread -ldl -lOpenCL -L<install dir>/tbb/latest/lib/ -ltbb -ltbbmalloc <install dir>/dal/latest/lib/libonedal_sycl.a -Wl,--end-group

0 comments on commit c96317d

Please sign in to comment.