summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@users.noreply.github.com>2022-04-26 18:00:40 -0500
committerGitHub <noreply@github.com>2022-04-26 16:00:40 -0700
commita24070d5324cf12339218573eb088d9fa5042a25 (patch)
tree344e4018877bed7d960a9ee67700a64033d06bc9 /lib
parentf473fd8084889a8b1b3c4e515e50cedf0cab744b (diff)
downloadspack-a24070d5324cf12339218573eb088d9fa5042a25.tar.gz
spack-a24070d5324cf12339218573eb088d9fa5042a25.tar.bz2
spack-a24070d5324cf12339218573eb088d9fa5042a25.tar.xz
spack-a24070d5324cf12339218573eb088d9fa5042a25.zip
docs: Fix ROCmPackage example syntax (#30168)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/build_systems/rocmpackage.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/docs/build_systems/rocmpackage.rst b/lib/spack/docs/build_systems/rocmpackage.rst
index eb094a8962..7540251dbc 100644
--- a/lib/spack/docs/build_systems/rocmpackage.rst
+++ b/lib/spack/docs/build_systems/rocmpackage.rst
@@ -95,7 +95,7 @@ class of your package. For example, you can add it to your
# Set up the hip macros needed by the build
args.extend([
'-DENABLE_HIP=ON',
- '-DHIP_ROOT_DIR={0}'.format(spec['hip'].prefix])
+ '-DHIP_ROOT_DIR={0}'.format(spec['hip'].prefix)])
rocm_archs = spec.variants['amdgpu_target'].value
if 'none' not in rocm_archs:
args.append('-DHIP_HIPCC_FLAGS=--amdgpu-target={0}'