def METHOD_NAME(self):
    spec = self.spec
    backend_config = "-Duse_cuda=%s" % ("+cuda" in spec)
    if self.version >= Version("2021.05.01"):
        backend = "none"
        if "+cuda" in spec:
            backend = "cuda"
        if "+rocm" in spec:
            backend = "hip"
        backend_config = "-Dgpu_backend=%s" % backend
    config = [
        "-Dbuild_tests=%s" % self.run_tests,
        "-Duse_openmp=%s" % ("+openmp" in spec),
        "-DBUILD_SHARED_LIBS=%s" % ("+shared" in spec),
        backend_config,
        "-Duse_mpi=%s" % ("+mpi" in spec),
    ]
    if "+cuda" in spec:
        archs = ";".join(spec.variants["cuda_arch"].value)
        config.append("-DCMAKE_CUDA_ARCHITECTURES=%s" % archs)
    if "+rocm" in spec:
        archs = ";".join(spec.variants["amdgpu_target"].value)
        config.append("-DCMAKE_HIP_ARCHITECTURES=%s" % archs)
    if self.run_tests:
        config.append("-DSCALAPACK_LIBRARIES=%s" % spec["scalapack"].libs.joined(";"))
    return config