def METHOD_NAME(self):
    config_args = []
    for b in ["opencl", "hwloc", "ze", "hip", "cuda"]:
        config_args.extend(self.with_or_without(b))
    if self.spec.satisfies("%oneapi"):
        config_args += ["--with-openmp-flags=-fiopenmp -fopenmp-targets=spir64"]
    if self.spec.variants["hip-platform"].value == "amd":
        config_args += ["--with-hip-platform=amd"]
    if self.spec.variants["hip-platform"].value == "nvidia":
        config_args += ["--with-hip-platform=nvidia"]
    return config_args