Add dataset attrset in garlic

Modify nbody to evenly distribute blocks per cpu
This commit is contained in:
2020-10-23 10:19:37 +02:00
parent 06c29b573f
commit 8ce88ef046
5 changed files with 66 additions and 48 deletions

View File

@@ -20,8 +20,7 @@ stdenv.mkDerivation {
conf=garlic_config.json
for run in $(ls -d [0-9]* | sort -n); do
time=$(awk '/^time /{print $2}' $run/stdout.log)
jq -cn "{ exp:\"$exp\", unit:\"$unit\", config:inputs, time:$time}" \
$conf >> $out
jq -cn "{ exp:\"$exp\", unit:\"$unit\", config:inputs, time:$time, run:$run }" $conf >> $out
done
done
done