Setup CUDA env for local builds

This commit is contained in:
Michael Vines
2018-11-14 19:19:27 -08:00
committed by Grimes
parent 6b6c87e510
commit 83fc3c10cf
3 changed files with 14 additions and 0 deletions

View File

@ -131,6 +131,11 @@ build() {
set -x
rm -rf farf
if [[ -r target/perf-libs/env.sh ]]; then
# shellcheck source=/dev/null
source target/perf-libs/env.sh
fi
$MAYBE_DOCKER cargo install --features="$cargoFeatures" --root farf
./scripts/install-native-programs.sh farf/
)

View File

@ -39,6 +39,10 @@ local|tar)
export USE_INSTALL=1
export SOLANA_DEFAULT_METRICS_RATE=1
./fetch-perf-libs.sh
# shellcheck source=/dev/null
source ./target/perf-libs/env.sh
net/scripts/rsync-retry.sh -vPrc "$entrypointIp:~/.cargo/bin/solana*" ~/.cargo/bin/
solana_bench_tps=solana-bench-tps
solana_keygen=solana-keygen

View File

@ -69,6 +69,11 @@ snap)
local|tar)
PATH="$HOME"/.cargo/bin:"$PATH"
export USE_INSTALL=1
if [[ -r target/perf-libs/env.sh ]]; then
# shellcheck source=/dev/null
source target/perf-libs/env.sh
fi
entrypointRsyncUrl="$entrypointIp:~/solana"
solana_bench_tps=solana-bench-tps