Skip to content

Commit d4370e0

Browse files
wip
1 parent eff1127 commit d4370e0

File tree

7 files changed

+43
-76
lines changed

7 files changed

+43
-76
lines changed

stackinator/builder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,11 @@ def generate(self, recipe):
490490
generate_config_path.mkdir(exist_ok=True)
491491

492492
# write generate-config/Makefile
493-
all_compilers = [x for x in recipe.compilers.keys()]
494-
release_compilers = [x for x in all_compilers if x != "bootstrap"]
493+
release_compilers = [x for x in recipe.compilers.keys()]
495494
with (generate_config_path / "Makefile").open("w") as f:
496495
f.write(
497496
make_config_template.render(
498497
build_path=self.path.as_posix(),
499-
all_compilers=all_compilers,
500498
release_compilers=release_compilers,
501499
verbose=False,
502500
)

stackinator/recipe.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -406,35 +406,35 @@ def generate_environment_specs(self, raw):
406406
def generate_compiler_specs(self, raw):
407407
compilers = {}
408408

409-
bootstrap = {}
410-
bootstrap["packages"] = {
411-
"external": [
412-
"perl",
413-
"m4",
414-
"autoconf",
415-
"automake",
416-
"libtool",
417-
"gawk",
418-
"python",
419-
"texinfo",
420-
"gawk",
421-
],
422-
"variants": {
423-
"gcc": "[build_type=Release ~bootstrap +strip]",
424-
"mpc": "[libs=static]",
425-
"gmp": "[libs=static]",
426-
"mpfr": "[libs=static]",
427-
"zstd": "[libs=static]",
428-
"zlib": "[~shared]",
429-
},
430-
}
431-
bootstrap_spec = raw["bootstrap"]["spec"]
432-
bootstrap["specs"] = [
433-
f"{bootstrap_spec} languages=c,c++",
434-
"squashfs default_compression=zstd",
435-
]
436-
bootstrap["exclude_from_cache"] = ["cuda", "nvhpc", "perl"]
437-
compilers["bootstrap"] = bootstrap
409+
# bootstrap = {}
410+
# bootstrap["packages"] = {
411+
# "external": [
412+
# "perl",
413+
# "m4",
414+
# "autoconf",
415+
# "automake",
416+
# "libtool",
417+
# "gawk",
418+
# "python",
419+
# "texinfo",
420+
# "gawk",
421+
# ],
422+
# "variants": {
423+
# "gcc": "[build_type=Release ~bootstrap +strip]",
424+
# "mpc": "[libs=static]",
425+
# "gmp": "[libs=static]",
426+
# "mpfr": "[libs=static]",
427+
# "zstd": "[libs=static]",
428+
# "zlib": "[~shared]",
429+
# },
430+
# }
431+
# bootstrap_spec = raw["bootstrap"]["spec"]
432+
# bootstrap["specs"] = [
433+
# f"{bootstrap_spec} languages=c,c++",
434+
# "squashfs default_compression=zstd",
435+
# ]
436+
# bootstrap["exclude_from_cache"] = ["cuda", "nvhpc", "perl"]
437+
# compilers["bootstrap"] = bootstrap
438438

439439
gcc = {}
440440
gcc["packages"] = {
@@ -459,7 +459,7 @@ def generate_compiler_specs(self, raw):
459459
},
460460
}
461461
gcc["specs"] = raw["gcc"]["specs"]
462-
gcc["requires"] = bootstrap_spec
462+
# gcc["requires"] = bootstrap_spec
463463
gcc["exclude_from_cache"] = ["cuda", "nvhpc", "perl"]
464464
compilers["gcc"] = gcc
465465
if raw["llvm"] is not None:

stackinator/templates/Makefile.compilers

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ all:{% for compiler in compilers %} {{ compiler }}/generated/build_cache{% endfo
4141

4242
{% endif %}
4343
{% endfor %}
44-
# Configure dependencies between compilers
45-
gcc/compilers.yaml: bootstrap/generated/env
46-
$(SPACK) compiler find --scope=user $(call compiler_bin_dirs, $$($(SPACK_HELPER) -e ./bootstrap find --format '{prefix}' {{ compilers.gcc.requires }}))
44+
# # Configure dependencies between compilers
45+
# # TODO: remove this and write compilers.yaml from cluster config
46+
# gcc/compilers.yaml: bootstrap/generated/env
47+
# $(SPACK) compiler find --scope=user $(call compiler_bin_dirs, $$($(SPACK_HELPER) -e ./bootstrap find --format '{prefix}' {{ compilers.gcc.requires }}))
4748

48-
{% if compilers.llvm %}
49-
llvm/compilers.yaml: gcc/generated/env
50-
$(SPACK) compiler find --scope=user $(call compiler_bin_dirs, $$($(SPACK_HELPER) -e ./gcc find --format '{prefix}' {{ compilers.llvm.requires }}))
51-
{% endif %}
49+
# {% if compilers.llvm %}
50+
# llvm/compilers.yaml: gcc/generated/env
51+
# $(SPACK) compiler find --scope=user $(call compiler_bin_dirs, $$($(SPACK_HELPER) -e ./gcc find --format '{prefix}' {{ compilers.llvm.requires }}))
52+
# {% endif %}
5253

5354

5455
include ../Make.inc
@@ -57,11 +58,11 @@ include ../Make.inc
5758
# specify the order here by conditionally including them, when the dependent exists.
5859
ifeq (,$(filter clean,$(MAKECMDGOALS)))
5960

60-
include bootstrap/Makefile
61+
# include bootstrap/Makefile
6162

62-
ifneq (,$(wildcard bootstrap/Makefile))
63-
include gcc/Makefile
64-
endif
63+
# ifneq (,$(wildcard bootstrap/Makefile))
64+
# include gcc/Makefile
65+
# endif
6566

6667
{% if compilers.llvm %}
6768
ifneq (,$(wildcard gcc/Makefile))

stackinator/templates/Makefile.generate-config

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ include ../Make.user
33
CONFIG_DIR = $(STORE)/config
44
MODULE_DIR = $(BUILD_ROOT)/modules
55

6-
# These will be the prefixes of the GCCs, LLVMs and NVHPCs in the respective environments.
7-
ALL_COMPILER_PREFIXES ={% for compiler in all_compilers %} $$($(SPACK_HELPER) -e ../compilers/{{ compiler }} find --format='{prefix}' gcc llvm nvhpc){% endfor %}
8-
9-
106
COMPILER_PREFIXES ={% for compiler in release_compilers %} $$($(SPACK_HELPER) -e ../compilers/{{ compiler }} find --format='{prefix}' gcc llvm nvhpc){% endfor %}
117

128

stackinator/templates/compilers.bootstrap.spack.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

stackinator/templates/compilers.gcc.spack.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ spack:
22
include:
33
- packages.yaml
44
- config.yaml
5-
- compilers.yaml
65
specs:
76
{% for spec in config.specs %}
87
- {{ spec }}

stackinator/templates/compilers.llvm.spack.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ spack:
22
include:
33
- packages.yaml
44
- config.yaml
5-
- compilers.yaml
65
specs:
76
{% for spec in config.specs %}
87
- {{ spec }}

0 commit comments

Comments
 (0)