Skip to content

Commit

Permalink
make cache-force, ignore nvhpc and cuda and @git.branch
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed Jun 28, 2024
1 parent 4a1a850 commit 9cf9c87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions stackinator/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def generate(self, recipe):
develop=self.spack_develop,
spack_version=spack_version,
spack_meta=spack_meta,
exclude_from_cache=["nvhpc", "cuda"],
verbose=False,
)
)
Expand Down
6 changes: 5 additions & 1 deletion stackinator/templates/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% set pipejoiner = joiner('|') %}
-include Make.user

.PHONY: compilers environments generate-config clean spack-setup
Expand Down Expand Up @@ -88,7 +89,10 @@ cache-force: mirror-setup
$(warning ================================================================================)
$(SANDBOX) $(MAKE) -C generate-config
$(SANDBOX) $(SPACK) -C $(STORE)/config buildcache create --rebuild-index {% if not develop and (spack_version<"0.21") %}--allow-root{% endif %} --only=package alpscache \
$$($(SANDBOX) $(SPACK_HELPER) -C $(STORE)/config find --format '{/hash}')
$$($(SANDBOX) $(SPACK_HELPER) -C $(STORE)/config find --format '{name};{/hash};version={version}' \
| grep -v -E '^({% for p in exclude_from_cache %}{{ pipejoiner() }}{{ p }}{% endfor %});'\
| grep -v -E 'version=git\.'\
| cut -d ';' -f2)
{% else %}
$(warning "pushing to the build cache is not enabled. See the documentation on how to add a key: https://eth-cscs.github.io/stackinator/build-caches/")
{% endif %}
Expand Down

0 comments on commit 9cf9c87

Please sign in to comment.