Skip to content

Commit

Permalink
Update README to refer to THEROCK_AMDGPU_(FAMILIES|TARGETS).
Browse files Browse the repository at this point in the history
Needs better docs per #39.
  • Loading branch information
stellaraccident committed Jan 31, 2025
1 parent 96ebf46 commit 8f1fa61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@ ln -s </path/to/rocm> sources

# Build

Note that you must specify GPU targets or families to build for with either
`-DTHEROCK_AMDGPU_FAMILIES=` or `-DTHEROCK_AMDGPU_TARGETS=` and will get an
error if there is an issue. Supported families and targets are in the
[therock_amdgpu_targets.cmake](cmake/therock_amdgpu_targets.cmake) file. Not
all combinations are presently supported.

```
cmake -B build -GNinja .
cmake -B build -GNinja . -DTHEROCK_AMDGPU_FAMILIES=gfx110X-dgpu
# Or if iterating and wishing to cache:
# cmake -Bbuild -GNinja -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache .
cmake --build build
Expand Down

0 comments on commit 8f1fa61

Please sign in to comment.