Skip to content

Commit 7cab82b

Browse files
authored
[comgr] Document how to build with SPIRV translator support in README (llvm#1344)
2 parents a37f69e + c292257 commit 7cab82b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

amd/comgr/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ may be enabled during development via `-DADDRESS_SANITIZER=On` during the Comgr
8080
Comgr can be built as a static library by passing
8181
`-DCOMGR_BUILD_SHARED_LIBS=OFF` during the Comgr `cmake` step.
8282

83+
To enable SPIRV support, checkout
84+
[SPIRV-LLVM-Translator](https://github.com/ROCm/SPIRV-LLVM-Translator) in
85+
`llvm/projects` or `llvm/tools` and build using the above instructions, with the
86+
exception that the `-DCMAKE_PREFIX_PATH` for llvm-project must be an install
87+
path (specified with `-DCMAKE_INSTALL_PREFIX=/path/to/install/dir` and populated
88+
with `make install`) rather than the build path.
89+
8390
Comgr SPIRV-related APIs can be disabled by passing
8491
`-DCOMGR_DISABLE_SPIRV=1` during the Comgr `cmake` step. This removes any
8592
dependency on LLVM SPIRV libraries or the llvm-spirv tool.

0 commit comments

Comments
 (0)