We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
spfft: inherit from ROCmPackage
Following https://github.com/spack/spack/pull/31207#issuecomment-1161932478 this PR adapts `spfft` the same way by inheriting from `ROCmPackage`.

Also for this one, I would ask one of the reviewer if they can test it works correctly.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `var/spack/repos/builtin/packages/spfft/package.py`
Content:
```
1 # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
2 # Spack Project Developers. See the top-level COPYRIGHT file for details.
3 #
4 # SPDX-License-Identifier: (Apache-2.0 OR MIT)
5 
6 
7 from spack.package import *
8 
9 
10 class Spfft(CMakePackage, CudaPackage):
11     """Sparse 3D FFT library with MPI, OpenMP, CUDA and ROCm support."""
12 
13     homepage = "https://github.com/eth-cscs/SpFFT"
14     url = "https://github.com/eth-cscs/SpFFT/archive/v0.9.8.zip"
15     git = "https://github.com/eth-cscs/SpFFT.git"
16 
17     maintainers = ["AdhocMan", "haampie"]
18 
19     version("develop", branch="develop")
20     version("master", branch="master")
21 
22     version("1.0.6", sha256="e1b927c61f8abbb4a9937653f917169e6253e8c40b850df491594310943ca14b")
23     version("1.0.5", sha256="2a59d856286ea8559f00a32fc38f9f7546209cfa90112232a5288a69689a6e05")
24     version("1.0.4", sha256="41e63880d95343da0d8c3dbe5bfb3d46a1d612199cc9cc13a936f1628a7fdb8e")
25     version("1.0.3", sha256="4f87734e3582ef96ddc0402d0db78cfc173bed9cab3e0d9c6a6bf8b660d69559")
26     version("1.0.2", sha256="9b1296bda0b9ec3d37c74fd64354a01ebc6e2da7cb026c1f821882160b03c692")
27     version("1.0.1", sha256="f8ab706309776cfbd2bfd8e29a6a9ffb5c8f3cd62399bf82db1e416ae5c490c8")
28     version("1.0.0", sha256="bd98897aa6734563ec63cd84168e731ef2e2bbc01a574c6dc59b74475742b6ee")
29     version("0.9.13", sha256="5ccc93c9362bec14cfb6e31dd0e7ae7e48db0453ab49ebc9722041b69db759ef")
30     version("0.9.12", sha256="1f7bf5164dcceb0e3bbce7d6ff9faef3145ad17cf3430149d40a98c43c010acc")
31     version("0.9.11", sha256="36542a60378e8672654188dee006975ef9e10f502791459ff7ebf4b38451cb9b")
32     version("0.9.10", sha256="9cbbb7ba5e53e17eeb45e809841d8272e5333f739c2442a99c3e255c1ddec3e9")
33     version("0.9.9", sha256="a8fd7a2d767716bb73185ca03bf4c106c6981b79130f3e456e5d2e744a2b3ba0")
34     version("0.9.8", sha256="f49fa51316bbfa68309e951d2375e1f6904120c93868cbe13bc2974c0b801a3f")
35 
36     variant("openmp", default=True, description="Build with OpenMP support")
37     variant("mpi", default=True, description="enable MPI")
38     variant("single_precision", default=False, description="Sinlge precision")
39     variant("gpu_direct", default=False, description="GPU aware MPI")
40     variant("static", default=False, description="build static library")
41     variant("fortran", default=False, description="enable fortran")
42     variant(
43         "build_type",
44         default="Release",
45         description="CMake build type",
46         values=("Debug", "Release", "RelWithDebInfo"),
47     )
48     depends_on("fftw-api@3")
49     depends_on("mpi", when="+mpi")
50     depends_on("cmake@3.11:", type="build")
51 
52     # ROCM variants + dependencies
53     variant("rocm", default=False, description="Use ROCm backend")
54 
55     depends_on("cuda@:10", when="@:0.9.11 +cuda")
56 
57     with when("+rocm"):
58         # FindHIP cmake script only works for < 4.1
59         depends_on("hip@:4.0", when="@:1.0.1")
60         # Workaround for compiler bug in ROCm 4.5 added in SpFFT 1.0.6
61         depends_on("hip@:4.3.1", when="@:1.0.5")
62         depends_on("hip")
63         depends_on("rocfft")
64         # rocFFT and hipFFT have split with latest versions
65         depends_on("hipfft", when="^rocfft@4.1.0:")
66 
67         amdgpu_targets = (
68             "gfx701",
69             "gfx801",
70             "gfx802",
71             "gfx803",
72             "gfx900",
73             "gfx906",
74             "gfx908",
75             "gfx1010",
76             "gfx1011",
77             "gfx1012",
78         )
79         variant("amdgpu_target", default="gfx803,gfx900,gfx906", multi=True, values=amdgpu_targets)
80 
81     # Fix compilation error in some cases due to missing include statement
82     # before version 1.0.3
83     patch("0001-fix-missing-limits-include.patch", when="@:1.0.2")
84 
85     def cmake_args(self):
86         spec = self.spec
87         args = [
88             self.define_from_variant("SPFFT_OMP", "openmp"),
89             self.define_from_variant("SPFFT_MPI", "mpi"),
90             self.define_from_variant("SPFFT_SINGLE_PRECISION", "single_precision"),
91             self.define_from_variant("SPFFT_GPU_DIRECT", "gpu_direct"),
92             self.define_from_variant("SPFFT_FORTRAN", "fortran"),
93             self.define_from_variant("SPFFT_STATIC", "static"),
94         ]
95 
96         if spec.satisfies("+cuda"):
97             args += ["-DSPFFT_GPU_BACKEND=CUDA"]
98 
99             cuda_arch = self.spec.variants["cuda_arch"].value
100             if cuda_arch[0] != "none":
101                 args += [self.define("CMAKE_CUDA_ARCHITECTURES", cuda_arch)]
102 
103         if spec.satisfies("+rocm"):
104             archs = ",".join(self.spec.variants["amdgpu_target"].value)
105             args += [
106                 "-DSPFFT_GPU_BACKEND=ROCM",
107                 "-DHIP_ROOT_DIR={0}".format(spec["hip"].prefix),
108                 "-DHIP_HCC_FLAGS=--amdgpu-target={0}".format(archs),
109                 "-DHIP_CXX_COMPILER={0}".format(self.spec["hip"].hipcc),
110             ]
111 
112         if "fftw" in spec:
113             args += ["-DSPFFT_FFTW_LIB=FFTW"]
114         elif "intel-mkl" in spec:
115             args += ["-DSPFFT_FFTW_LIB=MKL"]
116 
117         return args
118
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/var/spack/repos/builtin/packages/spfft/package.py b/var/spack/repos/builtin/packages/spfft/package.py
--- a/var/spack/repos/builtin/packages/spfft/package.py
+++ b/var/spack/repos/builtin/packages/spfft/package.py
@@ -7,7 +7,7 @@
 from spack.package import *
 
 
-class Spfft(CMakePackage, CudaPackage):
+class Spfft(CMakePackage, CudaPackage, ROCmPackage):
     """Sparse 3D FFT library with MPI, OpenMP, CUDA and ROCm support."""
 
     homepage = "https://github.com/eth-cscs/SpFFT"
@@ -49,9 +49,6 @@
     depends_on("mpi", when="+mpi")
     depends_on("cmake@3.11:", type="build")
 
-    # ROCM variants + dependencies
-    variant("rocm", default=False, description="Use ROCm backend")
-
     depends_on("cuda@:10", when="@:0.9.11 +cuda")
 
     with when("+rocm"):
@@ -59,25 +56,10 @@
         depends_on("hip@:4.0", when="@:1.0.1")
         # Workaround for compiler bug in ROCm 4.5 added in SpFFT 1.0.6
         depends_on("hip@:4.3.1", when="@:1.0.5")
-        depends_on("hip")
         depends_on("rocfft")
         # rocFFT and hipFFT have split with latest versions
         depends_on("hipfft", when="^rocfft@4.1.0:")
 
-        amdgpu_targets = (
-            "gfx701",
-            "gfx801",
-            "gfx802",
-            "gfx803",
-            "gfx900",
-            "gfx906",
-            "gfx908",
-            "gfx1010",
-            "gfx1011",
-            "gfx1012",
-        )
-        variant("amdgpu_target", default="gfx803,gfx900,gfx906", multi=True, values=amdgpu_targets)
-
     # Fix compilation error in some cases due to missing include statement
     # before version 1.0.3
     patch("0001-fix-missing-limits-include.patch", when="@:1.0.2")

{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/spfft/package.py b/var/spack/repos/builtin/packages/spfft/package.py\n--- a/var/spack/repos/builtin/packages/spfft/package.py\n+++ b/var/spack/repos/builtin/packages/spfft/package.py\n@@ -7,7 +7,7 @@\n from spack.package import *\n \n \n-class Spfft(CMakePackage, CudaPackage):\n+class Spfft(CMakePackage, CudaPackage, ROCmPackage):\n     \"\"\"Sparse 3D FFT library with MPI, OpenMP, CUDA and ROCm support.\"\"\"\n \n     homepage = \"https://github.com/eth-cscs/SpFFT\"\n@@ -49,9 +49,6 @@\n     depends_on(\"mpi\", when=\"+mpi\")\n     depends_on(\"cmake@3.11:\", type=\"build\")\n \n-    # ROCM variants + dependencies\n-    variant(\"rocm\", default=False, description=\"Use ROCm backend\")\n-\n     depends_on(\"cuda@:10\", when=\"@:0.9.11 +cuda\")\n \n     with when(\"+rocm\"):\n@@ -59,25 +56,10 @@\n         depends_on(\"hip@:4.0\", when=\"@:1.0.1\")\n         # Workaround for compiler bug in ROCm 4.5 added in SpFFT 1.0.6\n         depends_on(\"hip@:4.3.1\", when=\"@:1.0.5\")\n-        depends_on(\"hip\")\n         depends_on(\"rocfft\")\n         # rocFFT and hipFFT have split with latest versions\n         depends_on(\"hipfft\", when=\"^rocfft@4.1.0:\")\n \n-        amdgpu_targets = (\n-            \"gfx701\",\n-            \"gfx801\",\n-            \"gfx802\",\n-            \"gfx803\",\n-            \"gfx900\",\n-            \"gfx906\",\n-            \"gfx908\",\n-            \"gfx1010\",\n-            \"gfx1011\",\n-            \"gfx1012\",\n-        )\n-        variant(\"amdgpu_target\", default=\"gfx803,gfx900,gfx906\", multi=True, values=amdgpu_targets)\n-\n     # Fix compilation error in some cases due to missing include statement\n     # before version 1.0.3\n     patch(\"0001-fix-missing-limits-include.patch\", when=\"@:1.0.2\")\n", "issue": "spfft: inherit from ROCmPackage\nFollowing https://github.com/spack/spack/pull/31207#issuecomment-1161932478 this PR adapts `spfft` the same way by inheriting from `ROCmPackage`.\r\n\r\nAlso for this one, I would ask one of the reviewer if they can test it works correctly.\n", "before_files": [{"content": "# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\nfrom spack.package import *\n\n\nclass Spfft(CMakePackage, CudaPackage):\n    \"\"\"Sparse 3D FFT library with MPI, OpenMP, CUDA and ROCm support.\"\"\"\n\n    homepage = \"https://github.com/eth-cscs/SpFFT\"\n    url = \"https://github.com/eth-cscs/SpFFT/archive/v0.9.8.zip\"\n    git = \"https://github.com/eth-cscs/SpFFT.git\"\n\n    maintainers = [\"AdhocMan\", \"haampie\"]\n\n    version(\"develop\", branch=\"develop\")\n    version(\"master\", branch=\"master\")\n\n    version(\"1.0.6\", sha256=\"e1b927c61f8abbb4a9937653f917169e6253e8c40b850df491594310943ca14b\")\n    version(\"1.0.5\", sha256=\"2a59d856286ea8559f00a32fc38f9f7546209cfa90112232a5288a69689a6e05\")\n    version(\"1.0.4\", sha256=\"41e63880d95343da0d8c3dbe5bfb3d46a1d612199cc9cc13a936f1628a7fdb8e\")\n    version(\"1.0.3\", sha256=\"4f87734e3582ef96ddc0402d0db78cfc173bed9cab3e0d9c6a6bf8b660d69559\")\n    version(\"1.0.2\", sha256=\"9b1296bda0b9ec3d37c74fd64354a01ebc6e2da7cb026c1f821882160b03c692\")\n    version(\"1.0.1\", sha256=\"f8ab706309776cfbd2bfd8e29a6a9ffb5c8f3cd62399bf82db1e416ae5c490c8\")\n    version(\"1.0.0\", sha256=\"bd98897aa6734563ec63cd84168e731ef2e2bbc01a574c6dc59b74475742b6ee\")\n    version(\"0.9.13\", sha256=\"5ccc93c9362bec14cfb6e31dd0e7ae7e48db0453ab49ebc9722041b69db759ef\")\n    version(\"0.9.12\", sha256=\"1f7bf5164dcceb0e3bbce7d6ff9faef3145ad17cf3430149d40a98c43c010acc\")\n    version(\"0.9.11\", sha256=\"36542a60378e8672654188dee006975ef9e10f502791459ff7ebf4b38451cb9b\")\n    version(\"0.9.10\", sha256=\"9cbbb7ba5e53e17eeb45e809841d8272e5333f739c2442a99c3e255c1ddec3e9\")\n    version(\"0.9.9\", sha256=\"a8fd7a2d767716bb73185ca03bf4c106c6981b79130f3e456e5d2e744a2b3ba0\")\n    version(\"0.9.8\", sha256=\"f49fa51316bbfa68309e951d2375e1f6904120c93868cbe13bc2974c0b801a3f\")\n\n    variant(\"openmp\", default=True, description=\"Build with OpenMP support\")\n    variant(\"mpi\", default=True, description=\"enable MPI\")\n    variant(\"single_precision\", default=False, description=\"Sinlge precision\")\n    variant(\"gpu_direct\", default=False, description=\"GPU aware MPI\")\n    variant(\"static\", default=False, description=\"build static library\")\n    variant(\"fortran\", default=False, description=\"enable fortran\")\n    variant(\n        \"build_type\",\n        default=\"Release\",\n        description=\"CMake build type\",\n        values=(\"Debug\", \"Release\", \"RelWithDebInfo\"),\n    )\n    depends_on(\"fftw-api@3\")\n    depends_on(\"mpi\", when=\"+mpi\")\n    depends_on(\"cmake@3.11:\", type=\"build\")\n\n    # ROCM variants + dependencies\n    variant(\"rocm\", default=False, description=\"Use ROCm backend\")\n\n    depends_on(\"cuda@:10\", when=\"@:0.9.11 +cuda\")\n\n    with when(\"+rocm\"):\n        # FindHIP cmake script only works for < 4.1\n        depends_on(\"hip@:4.0\", when=\"@:1.0.1\")\n        # Workaround for compiler bug in ROCm 4.5 added in SpFFT 1.0.6\n        depends_on(\"hip@:4.3.1\", when=\"@:1.0.5\")\n        depends_on(\"hip\")\n        depends_on(\"rocfft\")\n        # rocFFT and hipFFT have split with latest versions\n        depends_on(\"hipfft\", when=\"^rocfft@4.1.0:\")\n\n        amdgpu_targets = (\n            \"gfx701\",\n            \"gfx801\",\n            \"gfx802\",\n            \"gfx803\",\n            \"gfx900\",\n            \"gfx906\",\n            \"gfx908\",\n            \"gfx1010\",\n            \"gfx1011\",\n            \"gfx1012\",\n        )\n        variant(\"amdgpu_target\", default=\"gfx803,gfx900,gfx906\", multi=True, values=amdgpu_targets)\n\n    # Fix compilation error in some cases due to missing include statement\n    # before version 1.0.3\n    patch(\"0001-fix-missing-limits-include.patch\", when=\"@:1.0.2\")\n\n    def cmake_args(self):\n        spec = self.spec\n        args = [\n            self.define_from_variant(\"SPFFT_OMP\", \"openmp\"),\n            self.define_from_variant(\"SPFFT_MPI\", \"mpi\"),\n            self.define_from_variant(\"SPFFT_SINGLE_PRECISION\", \"single_precision\"),\n            self.define_from_variant(\"SPFFT_GPU_DIRECT\", \"gpu_direct\"),\n            self.define_from_variant(\"SPFFT_FORTRAN\", \"fortran\"),\n            self.define_from_variant(\"SPFFT_STATIC\", \"static\"),\n        ]\n\n        if spec.satisfies(\"+cuda\"):\n            args += [\"-DSPFFT_GPU_BACKEND=CUDA\"]\n\n            cuda_arch = self.spec.variants[\"cuda_arch\"].value\n            if cuda_arch[0] != \"none\":\n                args += [self.define(\"CMAKE_CUDA_ARCHITECTURES\", cuda_arch)]\n\n        if spec.satisfies(\"+rocm\"):\n            archs = \",\".join(self.spec.variants[\"amdgpu_target\"].value)\n            args += [\n                \"-DSPFFT_GPU_BACKEND=ROCM\",\n                \"-DHIP_ROOT_DIR={0}\".format(spec[\"hip\"].prefix),\n                \"-DHIP_HCC_FLAGS=--amdgpu-target={0}\".format(archs),\n                \"-DHIP_CXX_COMPILER={0}\".format(self.spec[\"hip\"].hipcc),\n            ]\n\n        if \"fftw\" in spec:\n            args += [\"-DSPFFT_FFTW_LIB=FFTW\"]\n        elif \"intel-mkl\" in spec:\n            args += [\"-DSPFFT_FFTW_LIB=MKL\"]\n\n        return args\n", "path": "var/spack/repos/builtin/packages/spfft/package.py"}], "after_files": [{"content": "# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\n\nfrom spack.package import *\n\n\nclass Spfft(CMakePackage, CudaPackage, ROCmPackage):\n    \"\"\"Sparse 3D FFT library with MPI, OpenMP, CUDA and ROCm support.\"\"\"\n\n    homepage = \"https://github.com/eth-cscs/SpFFT\"\n    url = \"https://github.com/eth-cscs/SpFFT/archive/v0.9.8.zip\"\n    git = \"https://github.com/eth-cscs/SpFFT.git\"\n\n    maintainers = [\"AdhocMan\", \"haampie\"]\n\n    version(\"develop\", branch=\"develop\")\n    version(\"master\", branch=\"master\")\n\n    version(\"1.0.6\", sha256=\"e1b927c61f8abbb4a9937653f917169e6253e8c40b850df491594310943ca14b\")\n    version(\"1.0.5\", sha256=\"2a59d856286ea8559f00a32fc38f9f7546209cfa90112232a5288a69689a6e05\")\n    version(\"1.0.4\", sha256=\"41e63880d95343da0d8c3dbe5bfb3d46a1d612199cc9cc13a936f1628a7fdb8e\")\n    version(\"1.0.3\", sha256=\"4f87734e3582ef96ddc0402d0db78cfc173bed9cab3e0d9c6a6bf8b660d69559\")\n    version(\"1.0.2\", sha256=\"9b1296bda0b9ec3d37c74fd64354a01ebc6e2da7cb026c1f821882160b03c692\")\n    version(\"1.0.1\", sha256=\"f8ab706309776cfbd2bfd8e29a6a9ffb5c8f3cd62399bf82db1e416ae5c490c8\")\n    version(\"1.0.0\", sha256=\"bd98897aa6734563ec63cd84168e731ef2e2bbc01a574c6dc59b74475742b6ee\")\n    version(\"0.9.13\", sha256=\"5ccc93c9362bec14cfb6e31dd0e7ae7e48db0453ab49ebc9722041b69db759ef\")\n    version(\"0.9.12\", sha256=\"1f7bf5164dcceb0e3bbce7d6ff9faef3145ad17cf3430149d40a98c43c010acc\")\n    version(\"0.9.11\", sha256=\"36542a60378e8672654188dee006975ef9e10f502791459ff7ebf4b38451cb9b\")\n    version(\"0.9.10\", sha256=\"9cbbb7ba5e53e17eeb45e809841d8272e5333f739c2442a99c3e255c1ddec3e9\")\n    version(\"0.9.9\", sha256=\"a8fd7a2d767716bb73185ca03bf4c106c6981b79130f3e456e5d2e744a2b3ba0\")\n    version(\"0.9.8\", sha256=\"f49fa51316bbfa68309e951d2375e1f6904120c93868cbe13bc2974c0b801a3f\")\n\n    variant(\"openmp\", default=True, description=\"Build with OpenMP support\")\n    variant(\"mpi\", default=True, description=\"enable MPI\")\n    variant(\"single_precision\", default=False, description=\"Sinlge precision\")\n    variant(\"gpu_direct\", default=False, description=\"GPU aware MPI\")\n    variant(\"static\", default=False, description=\"build static library\")\n    variant(\"fortran\", default=False, description=\"enable fortran\")\n    variant(\n        \"build_type\",\n        default=\"Release\",\n        description=\"CMake build type\",\n        values=(\"Debug\", \"Release\", \"RelWithDebInfo\"),\n    )\n    depends_on(\"fftw-api@3\")\n    depends_on(\"mpi\", when=\"+mpi\")\n    depends_on(\"cmake@3.11:\", type=\"build\")\n\n    depends_on(\"cuda@:10\", when=\"@:0.9.11 +cuda\")\n\n    with when(\"+rocm\"):\n        # FindHIP cmake script only works for < 4.1\n        depends_on(\"hip@:4.0\", when=\"@:1.0.1\")\n        # Workaround for compiler bug in ROCm 4.5 added in SpFFT 1.0.6\n        depends_on(\"hip@:4.3.1\", when=\"@:1.0.5\")\n        depends_on(\"rocfft\")\n        # rocFFT and hipFFT have split with latest versions\n        depends_on(\"hipfft\", when=\"^rocfft@4.1.0:\")\n\n    # Fix compilation error in some cases due to missing include statement\n    # before version 1.0.3\n    patch(\"0001-fix-missing-limits-include.patch\", when=\"@:1.0.2\")\n\n    def cmake_args(self):\n        spec = self.spec\n        args = [\n            self.define_from_variant(\"SPFFT_OMP\", \"openmp\"),\n            self.define_from_variant(\"SPFFT_MPI\", \"mpi\"),\n            self.define_from_variant(\"SPFFT_SINGLE_PRECISION\", \"single_precision\"),\n            self.define_from_variant(\"SPFFT_GPU_DIRECT\", \"gpu_direct\"),\n            self.define_from_variant(\"SPFFT_FORTRAN\", \"fortran\"),\n            self.define_from_variant(\"SPFFT_STATIC\", \"static\"),\n        ]\n\n        if spec.satisfies(\"+cuda\"):\n            args += [\"-DSPFFT_GPU_BACKEND=CUDA\"]\n\n            cuda_arch = self.spec.variants[\"cuda_arch\"].value\n            if cuda_arch[0] != \"none\":\n                args += [self.define(\"CMAKE_CUDA_ARCHITECTURES\", cuda_arch)]\n\n        if spec.satisfies(\"+rocm\"):\n            archs = \",\".join(self.spec.variants[\"amdgpu_target\"].value)\n            args += [\n                \"-DSPFFT_GPU_BACKEND=ROCM\",\n                \"-DHIP_ROOT_DIR={0}\".format(spec[\"hip\"].prefix),\n                \"-DHIP_HCC_FLAGS=--amdgpu-target={0}\".format(archs),\n                \"-DHIP_CXX_COMPILER={0}\".format(self.spec[\"hip\"].hipcc),\n            ]\n\n        if \"fftw\" in spec:\n            args += [\"-DSPFFT_FFTW_LIB=FFTW\"]\n        elif \"intel-mkl\" in spec:\n            args += [\"-DSPFFT_FFTW_LIB=MKL\"]\n\n        return args\n", "path": "var/spack/repos/builtin/packages/spfft/package.py"}]}