-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Grimes
committed
May 28, 2018
1 parent
1fca018
commit 3ba4d8e
Showing
8 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
#!/bin/bash -e | ||
|
||
cd $(dirname $0)/.. | ||
cd "$(dirname "$0")/.." | ||
|
||
if [[ -z "$libcuda_verify_ed25519_URL" ]]; then | ||
echo libcuda_verify_ed25519_URL undefined | ||
exit 1 | ||
fi | ||
: "${libcuda_verify_ed25519_URL:?environment variable undefined}" | ||
|
||
export LD_LIBRARY_PATH=/usr/local/cuda/lib64 | ||
export PATH=$PATH:/usr/local/cuda/bin | ||
curl -X GET -o libcuda_verify_ed25519.a "$libcuda_verify_ed25519_URL" | ||
|
||
source $HOME/.cargo/env | ||
# shellcheck disable=SC1090 # <-- shellcheck can't follow ~ | ||
source ~/.cargo/env | ||
cargo test --features=cuda | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash -e | ||
|
||
cd $(dirname $0)/.. | ||
cd "$(dirname "$0")/.." | ||
|
||
rustc --version | ||
cargo --version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash -e | ||
|
||
cd $(dirname $0)/.. | ||
cd "$(dirname "$0")/.." | ||
|
||
rustc --version | ||
cargo --version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash -e | ||
|
||
cd $(dirname $0)/.. | ||
cd "$(dirname "$0")/.." | ||
|
||
rustc --version | ||
cargo --version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
#!/bin/bash | ||
#!/bin/bash -e | ||
|
||
if [[ -z "$1" ]]; then | ||
echo "usage: $0 [leader machine]" | ||
exit 1 | ||
fi | ||
|
||
LEADER="$1" | ||
|
||
set -x | ||
export RUST_LOG=solana=info | ||
rsync -v -e ssh $1:~/solana/leader.json . | ||
rsync -v -e ssh $1:~/solana/mint-demo.json . | ||
cat mint-demo.json | cargo run --release --bin solana-client-demo -- -l leader.json -c 8100 -n 1 | ||
rsync -v -e ssh "$LEADER:~/solana/leader.json" . | ||
rsync -v -e ssh "$LEADER:~/solana/mint-demo.json" . | ||
|
||
cargo run --release --bin solana-client-demo -- \ | ||
-l leader.json -c 8100 -n 1 < mint-demo.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
#!/bin/bash | ||
rsync -v -e ssh $1:~/solana/mint-demo.json . | ||
rsync -v -e ssh $1:~/solana/leader.json . | ||
rsync -v -e ssh $1:~/solana/genesis.log . | ||
rsync -v -e ssh $1:~/solana/leader.log . | ||
rsync -v -e ssh $1:~/solana/libcuda_verify_ed25519.a . | ||
#!/bin/bash -e | ||
|
||
if [[ -z "$1" ]]; then | ||
echo "usage: $0 [leader machine]" | ||
exit 1 | ||
fi | ||
|
||
LEADER="$1" | ||
|
||
set -x | ||
|
||
rsync -v -e ssh "$LEADER:~/solana/mint-demo.json" . | ||
rsync -v -e ssh "$LEADER:~/solana/leader.json" . | ||
rsync -v -e ssh "$LEADER:~/solana/genesis.log" . | ||
rsync -v -e ssh "$LEADER:~/solana/leader.log" . | ||
rsync -v -e ssh "$LEADER:~/solana/libcuda_verify_ed25519.a" . | ||
|
||
export RUST_LOG=solana=info | ||
|
||
sudo sysctl -w net.core.rmem_max=26214400 | ||
cat genesis.log leader.log | cargo run --release --features cuda --bin solana-fullnode -- -l validator.json -s validator.json -v leader.json -b 9000 -d 2>&1 | tee validator-tee.log | ||
|
||
cat genesis.log leader.log | \ | ||
cargo run --release --features cuda --bin solana-fullnode -- \ | ||
-l validator.json -s validator.json -v leader.json -b 9000 -d 2>&1 | tee validator-tee.log |