From a24070d5324cf12339218573eb088d9fa5042a25 Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Tue, 26 Apr 2022 18:00:40 -0500 Subject: docs: Fix ROCmPackage example syntax (#30168) --- lib/spack/docs/build_systems/rocmpackage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}' -- cgit v1.2.3-70-g09d2