Skip to content

Commit

Permalink
Merge pull request codeplaysoftware#12 from AerialMantis/add-windows-…
Browse files Browse the repository at this point in the history
…instructions-for-dpcpp-script

Add instructions for where to find the DPC++ setup script on Windows
  • Loading branch information
rodburns authored Apr 27, 2020
2 parents e7fa452 + f4ac615 commit c09ee7a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,23 @@ If you are using DPC++ there is no CMake integration, but it is very simple to
use the DPC++ compiler directly.

First you have to ensure that your environment is configured to use DPC++ (note
if you are using the Intel DevCloud then you don't need to do this step). Simply
call the `setvars.sh` which when is available in `/opt/intel/inteloneapi` when
installed as root or sudo and `~/intel/inteloneapi/` otherwise.
if you are using the Intel DevCloud then you don't need to do this step).

On Linux simply call the `setvars.sh` which when is available in
`/opt/intel/inteloneapi` when installed as root or sudo and
`~/intel/inteloneapi/` otherwise.

`source /opt/intel/inteloneapi/setvars.sh`

or

`source ~/intel/inteloneapi/setvars.sh`

On Windows the script is located in `<dpc++_install_root>\setvars.bat`

Where `<dpc++_install_root>` is wherever the `inteloneapi` directory is
installed.

Once that's done you can invoke the DPC++ compiler as follows:

`dpcpp -I<syclacademy_root>/External/Catch2/single_include -o a.out source.cpp`
Expand Down

0 comments on commit c09ee7a

Please sign in to comment.