Skip to content

Commit

Permalink
Run black on package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Nov 27, 2024
1 parent 2a1d46a commit 3b7c774
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions var/spack/repos/builtin/packages/py-numpy/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,7 @@ def blas_lapack_pkg_config(self) -> Tuple[str, str]:
return blas, lapack

def config_settings(self, spec, prefix):
settings = {
"builddir": "build",
"compile-args": f"-j{make_jobs}",
}
settings = {"builddir": "build", "compile-args": f"-j{make_jobs}"}

if self.spec.satisfies("@1.26:"):
settings.update(self.blas_config_settings())
Expand All @@ -301,8 +298,10 @@ def config_settings(self, spec, prefix):
intel_settings = {
"setup-args": {
"-Dcpu-dispatch": (
settings.get("setup-args", {}).get("-Dcpu-dispatch", "") + " " +
"MAX -AVX512F -AVX512CD -AVX512_KNL -AVX512_KNM -AVX512_SKX -AVX512_CLX -AVX512_CNL -AVX512_ICL -AVX512_SPR"
settings.get("setup-args", {}).get("-Dcpu-dispatch", "")
+ " "
+ "MAX -AVX512F -AVX512CD -AVX512_KNL -AVX512_KNM -AVX512_SKX "
+ "-AVX512_CLX -AVX512_CNL -AVX512_ICL -AVX512_SPR"
)
}
}
Expand All @@ -321,7 +320,7 @@ def blas_config_settings(self):
# TODO: get this working in CI
# "-Dcpu-baseline": "native",
# "-Dcpu-dispatch": "none ",
},
}
}

def blas_lapack_site_cfg(self) -> None:
Expand Down

0 comments on commit 3b7c774

Please sign in to comment.