net.sh: Add support for selecting validator GPU mode (#6326)

automerge
This commit is contained in:
Trent Nelson
2019-10-14 10:33:32 -06:00
committed by Grimes
parent 79e32c92c1
commit 82fea9ce73
4 changed files with 58 additions and 2 deletions

View File

@ -8,6 +8,11 @@ here=$(dirname "$0")
# shellcheck source=multinode-demo/common.sh
source "$here"/common.sh
if [[ "$SOLANA_GPU_MISSING" -eq 1 ]]; then
echo "Testnet requires GPUs, but none were found! Aborting..."
exit 1
fi
if [[ -n $SOLANA_CUDA ]]; then
program=$solana_validator_cuda
else