def METHOD_NAME(self):
    args = []
    if "@3.7.0:" in self.spec:
        args.append(self.define("NUMACTL_DIR", self.spec["numactl"].prefix))
    if "auto" not in self.spec.variants["amdgpu_target"]:
        args.append(self.define_from_variant("AMDGPU_TARGETS", "amdgpu_target"))
    if self.spec.satisfies("^cmake@3.21.0:3.21.2"):
        args.append(self.define("__skip_rocmclang", "ON"))
    if self.spec.satisfies("@4.5.0:"):
        args.append(self.define("ROCM_SMI_DIR", self.spec["rocm-smi-lib"].prefix))
    if self.spec.satisfies("@5.3.0:"):
        args.append(self.define("BUILD_TESTS", "ON"))
    return args