Skip to content

Commit 09c3b46

Browse files
authored
[SYCL][HIP] Improve instructions for non standard installations (#6145)
This was discussed in: #6091
1 parent f8ec868 commit 09c3b46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sycl/doc/GetStartedGuide.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ for the HIP installation:
244244
* `SYCL_BUILD_PI_HIP_AMD_LIBRARY`: Path to HIP runtime library (default
245245
`/opt/rocm/hip/lib/libamdhip64.so`).
246246

247+
These variables can be passed to `configure.py` using `--cmake-opt`, for example
248+
with a ROCm installation in `/usr/local`:
249+
250+
```
251+
python $DPCPP_HOME/llvm/buildbot/configure.py --hip \
252+
--cmake-opt=-DSYCL_BUILD_PI_HIP_INCLUDE_DIR=/usr/local/rocm/hip/include \
253+
--cmake-opt=-DSYCL_BUILD_PI_HIP_HSA_INCLUDE_DIR=/usr/local/rocm/hsa/include \
254+
--cmake-opt=-DSYCL_BUILD_PI_HIP_AMD_LIBRARY=/usr/local/rocm/hip/lib/libamdhip64.so
255+
```
256+
247257
### Build DPC++ toolchain with support for HIP NVIDIA
248258

249259
There is experimental support for DPC++ for HIP on Nvidia devices. Note as this

0 commit comments

Comments
 (0)