CUDA is now configurable

This commit is contained in:
Michael Vines 2018-07-16 16:19:49 -07:00
parent af40ab0c04
commit fdf94a77b4
1 changed files with 4 additions and 1 deletions

View File

@ -61,7 +61,10 @@ for info in "${vmlist[@]}"; do
SECONDS=0
echo "--- $vmName in zone $vmZone"
if $leader; then
nodeConfig="mode=leader+drone enable-cuda=1 metrics-config=$SOLANA_METRICS_CONFIG"
nodeConfig="mode=leader+drone metrics-config=$SOLANA_METRICS_CONFIG"
if [[ -n $SOLANA_CUDA ]]; then
nodeConfig="$nodeConfig enable-cuda=1"
fi
else
nodeConfig="mode=validator metrics-config=$SOLANA_METRICS_CONFIG leader-address=$publicIp"
fi