HIP Instructions for Spack
This commit is contained in:
parent
7715c0843b
commit
406cc0010e
@ -4,8 +4,7 @@
|
|||||||
* [OpenMP](#omp)
|
* [OpenMP](#omp)
|
||||||
* [OpenCL](#ocl)
|
* [OpenCL](#ocl)
|
||||||
* [STD](#std)
|
* [STD](#std)
|
||||||
* [STD20](#std20)
|
* [Hip(ROCM)](#hip)
|
||||||
* [Hip](#hip)
|
|
||||||
* [Cuda](#cuda)
|
* [Cuda](#cuda)
|
||||||
* [Kokkos](#kokkos)
|
* [Kokkos](#kokkos)
|
||||||
* [Sycl](#sycl)
|
* [Sycl](#sycl)
|
||||||
@ -78,4 +77,30 @@
|
|||||||
# Example 3: indices
|
# Example 3: indices
|
||||||
$ spack install babelstream +stdindices
|
$ spack install babelstream +stdindices
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## HIP(ROCM)
|
||||||
|
|
||||||
|
* `amdgpu_target` and `flags` are optional here.
|
||||||
|
|
||||||
|
|
||||||
|
| Flag | Definition |
|
||||||
|
|-----------| ----------------------------------|
|
||||||
|
|amdgpu_target| List of supported architectures are provided [here](https://github.com/spack/spack/blob/0f271883831bec6da3fc64c92eb1805c39a9f09a/lib/spack/spack/build_systems/rocm.py#LL93C1-L125C19) |
|
||||||
|
|flags | Extra flags to pass |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Example 1: ROCM default
|
||||||
|
$ spack install babelstream +rocm
|
||||||
|
|
||||||
|
# Example 2: ROCM with GPU target
|
||||||
|
$ spack install babelstream +rocm amdgpu_target=<gfx701>
|
||||||
|
|
||||||
|
# Example 3: ROCM with extra flags option
|
||||||
|
$ spack install babelstream +rocm flags=<xxx>
|
||||||
|
|
||||||
|
# Example 4: ROCM with GPU target and extra flags
|
||||||
|
$ spack install babelstream +rocm amdgpu_target=<gfx701> flags=<xxx>
|
||||||
```
|
```
|
||||||
Loading…
Reference in New Issue
Block a user