Skip to content
Snippets Groups Projects
Commit f1f8ebb8 authored by Philipp Spilger's avatar Philipp Spilger Committed by Eric Müller
Browse files

feat: Allow host-incompatible concretizations

* required e.g. for building on zen3 cluster nodes while requiring
  sandybridge

Change-Id: I8f04fe38444eebd1b8b25929a77fe0111f5bac12
parent f955b8ad
No related branches found
No related tags found
No related merge requests found
......@@ -245,6 +245,20 @@ with temporary_directory_spack_config.joinpath("config.yaml").open("wt") \
as spack_config_file:
spack_config_file.write(yaml.dump(spack_config))
# set spack concretizer
spack_concretizer = {
"concretizer": {
"targets": {
# allow building host-incompatible concretizations, e.g. for
# building on zen3 while requiring sandybridge
"host_compatible": False
}
}
}
with temporary_directory_spack_config.joinpath("concretizer.yaml").open("wt") \
as spack_concretizer_file:
spack_concretizer_file.write(yaml.dump(spack_concretizer))
spack_packages = pathlib.Path("share", "yashchiki", "styles", args.style, "packages.yaml")
if spack_packages.exists():
shutil.copy(
......@@ -279,3 +293,4 @@ if args.update_build_cache:
if args.tmpdir is None:
shutil.rmtree(tmpdir)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment