Skip to content

Commit

Permalink
Better find_machine option for cee (sandialabs#543)
Browse files Browse the repository at this point in the history
* Better find_machine option for cee

Hopefully this fixes the break in our CI container creation process. The container is building the snapshot for me locally in docker now.

* Update create-exawind-snapshot.sh

forgot flag to use machine name for the snapshot
  • Loading branch information
psakievich committed Jun 15, 2023
1 parent 815d02e commit 72b91ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions scripts/create-exawind-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ if [[ "${SPACK_MANAGER_MACHINE}" == 'eagle' ]]; then
cmd "nice -n19 spack manager snapshot -m -s exawind%gcc+hypre+openfast~cuda exawind%intel+hypre+openfast exawind%clang+hypre+openfast exawind%gcc+hypre+openfast+cuda+amr_wind_gpu+nalu_wind_gpu"
elif [[ "${SPACK_MANAGER_MACHINE}" == "e4s" ]]; then
NUM_CORES=8
cmd "nice -n19 spack manager snapshot -s exawind+hypre+openfast amr-wind+hypre+openfast+masa"
cmd "nice -n19 spack manager snapshot -m -s exawind+hypre+openfast amr-wind+hypre+openfast+masa"
elif [[ "${SPACK_MANAGER_MACHINE}" == "rhodes" ]]; then
NUM_CORES=16
cmd "nice -n19 spack manager snapshot -s exawind%gcc+hypre+openfast exawind%intel+hypre+openfast exawind%clang+hypre+openfast"
cmd "nice -n19 spack manager snapshot -m -s exawind%gcc+hypre+openfast exawind%intel+hypre+openfast exawind%clang+hypre+openfast"
elif [[ "${SPACK_MANAGER_MACHINE}" == "summit" ]]; then
NUM_CORES=8
cmd "nice -n19 spack manager snapshot -s exawind%gcc+hypre+cuda+amr_wind_gpu+nalu_wind_gpu exawind%gcc+hypre~cuda"
cmd "nice -n19 spack manager snapshot -m -s exawind%gcc+hypre+cuda+amr_wind_gpu+nalu_wind_gpu exawind%gcc+hypre~cuda"
elif [[ "${SPACK_MANAGER_MACHINE}" == "snl-hpc" ]]; then
# TODO we should probably launch the install through slurm and exit on this one
cmd "nice -n19 spack manager snapshot -s exawind+hypre+openfast amr-wind+hypre+openfast"
Expand Down
6 changes: 2 additions & 4 deletions spack-scripting/scripting/cmd/manager_cmds/find_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ def __init__(self, test, full_machine_name):


def is_cee(hostname):
known_hosts = ("cee", "ews", "ecw", "ecs", "hpws", "ascic")
for k in known_hosts:
if k in hostname:
return True
if "SNLSITE" in os.environ:
return os.environ["SNLSITE"] == "cee"
return False


Expand Down

0 comments on commit 72b91ac

Please sign in to comment.