Skip to content

Commit

Permalink
update documentation for CMake variables (Apress#65)
Browse files Browse the repository at this point in the history
* update documentation for CMake variables

switches default for NOL0 option to TRUE
moves the book image to a separate images directory

* one more small fix
  • Loading branch information
bashbaug authored May 3, 2023
1 parent c7dc17a commit ef79a65
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
project(DPCPPSamples)
option(NODPL "Disable samples that require the oneAPI DPC++ Library (oneDPL).")
option(NODPCT "Disable samples that require the DPC++ Compatibility Tool (dpct).")
option(NOL0 "Disable samples that require the oneAPI Level Zero Headers and Loader." ON)
option(WITHCUDA "Enable CUDA device support for the samples.")

enable_testing()
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository accompanies [*Data Parallel C++: Mastering DPC++ for Programming of Heterogeneous Systems using C++ and SYCL*](https://www.apress.com/9781484255735) by James Reinders, Ben Ashbaugh, James Brodman, Michael Kinsner, John Pennycook, Xinmin Tian (Apress, 2020).

[comment]: #cover
![Cover image](9781484255735.jpg)
![Cover image](images/9781484255735.jpg)

## Purpose of this branch (main)

Expand Down Expand Up @@ -51,17 +51,17 @@ https://github.com/oneapi-src/oneDPL

Setup environment variables if using a oneAPI / DPC++ implementation:

On Windows:
On Windows:

```sh
\path\to\inteloneapi\setvars.bat
```
```sh
\path\to\inteloneapi\setvars.bat
```

On Linux:
On Linux:

```sh
source /path/to/inteloneapi/setvars.sh
```
```sh
source /path/to/inteloneapi/setvars.sh
```

### Building the Samples:

Expand Down Expand Up @@ -97,4 +97,5 @@ See your CMake documentation for more details.
|:---------|:-----|:------------|
| NODPL | BOOL | Disable samples that require the oneAPI DPC++ Library (oneDPL). Default: `FALSE`
| NODPCT | BOOL | Disable samples that require the DPC++ Compatibility Tool (dpct). Default: `FALSE`
| NOL0 | BOOL | Disable samples that require the oneAPI Level Zero Headers and Loader. Default: `TRUE`
| WITHCUDA | BOOL | Enable CUDA device support for the samples. Default: `FALSE`
File renamed without changes

0 comments on commit ef79a65

Please sign in to comment.