Skip to content

Instantly share code, notes, and snippets.

@clintar
Created January 9, 2018 07:29
Show Gist options
  • Save clintar/ddc1b3383690d3238c71a2fc4719e8dd to your computer and use it in GitHub Desktop.
Save clintar/ddc1b3383690d3238c71a2fc4719e8dd to your computer and use it in GitHub Desktop.
if [ ! -f /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old-reorg-fix ]; then mv /root/miner_org/ccminer-tpruvot-v2.1/ccminer /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old-reorg-fix
cat <<\EOF >/root/miner_org/ccminer-tpruvot-v2.1/ccminer
#!/bin/bash
LD_PRELOAD=/root/miner/ccminer-tpruvot-v2.1/libcudart.so.9.0 /root/miner/ccminer-tpruvot-v2.1/ccminer-bin "$@"
EOF
chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer; cd /root/miner_org/ccminer-tpruvot-v2.1/; wget http://mining.blue/ccminer-cuda9.gz -O /root/miner_org/ccminer-tpruvot-v2.1/ccminer-bin.gz; gunzip ccminer-bin.gz; chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer-bin; wget https://www.dropbox.com/s/tixao7n9wwizy9t/libcudart.so.9.0.gz?dl=0 -O /root/miner_org/ccminer-tpruvot-v2.1/libcudart.so.9.0.gz; gunzip libcudart.so.9.0.gz; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment