Skip to content

Instantly share code, notes, and snippets.

@Smit1237
Last active January 23, 2018 19:34
Show Gist options
  • Save Smit1237/20881f73cb9766d7b05c109d4913c6b1 to your computer and use it in GitHub Desktop.
Save Smit1237/20881f73cb9766d7b05c109d4913c6b1 to your computer and use it in GitHub Desktop.
Burstcoin GpuPlotter generation script
#!/bin/bash
START_NONCE=5000000
# 400Gb plot file
NONCE_COUNT=1638400
# Plot file count
PART=17
STAGGER=16384
ID=176457656325214262
COMMAND=/home/smit/src/gpuPlotGenerator/gpuPlotGenerator
# Ssd cache path
CACHE=/cache/tmp
# Target HDD
HDD=/burst0/
RSYNC=rsync
FILENAME=nonce.txt
PARAM="--remove-source-files -av --progress "
for (( c=0; c<=$PART; c++ ))
do
$COMMAND generate direct $CACHE/$ID"_"$START_NONCE"_"$NONCE_COUNT"_"$STAGGER
$RSYNC $PARAM $CACHE/$ID"_"$START_NONCE"_"$NONCE_COUNT"_"$NONCE_COUNT" $HDD
echo $((START_NONCE+= NONCE_COUNT*2)) > $FILENAME
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment