/ challenges-old / cymbal2-solutions
Sign in
challenges-old / cymbal2-solutions
cymbal2-solutions / solvers / hermite-fem / run_chain.sh
18 lines · 899 BBlameHistoryRaw
1#!/bin/bash
2# Produce the hermite-fem solutions of both cymbal2 challenges, crash then flat, 8 mm then 5 mm (a quarter of an hour per 8 mm run on the office GPU,
3# under an hour at 5 mm). Run locally on the GPU workstation, never on the vault runner:
4# nohup bash run_chain.sh <cymbal2-repo> > chain.log 2>&1 < /dev/null & disown
5# Progress: solutions/<challenge>/hermite-fem/<tag>.progress.json and <tag>.partial.wav, rewritten every minute.
6set -e
7here="$(cd "$(dirname "$0")" && pwd)"
8spec="$1"
9py="${PYTHON:-/home/magland/src/vault1/challenges/cymbal-env/bin/python}"
10run() { # challenge spacing_m
11 out="$here/../../solutions/$1/hermite-fem"
12 mkdir -p "$out"
13 "$py" "$here/fem_shell.py" "$spec/challenges/$1/challenge.json" "$out" --spacing "$2" --device cuda --fields --report 60
15run cymbal2-crash-v1 0.008
16run cymbal2-crash-v1 0.005
17run cymbal2-flat-v1 0.008
18run cymbal2-flat-v1 0.005
↑↓ move↵openescclose