forked from bonsol-collective/bonsol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
20 lines (18 loc) · 692 Bytes
/
install.sh
File metadata and controls
20 lines (18 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e
cargo install cargo-binstall@1.0.1
cargo binstall cargo-risczero
cargo risczero install
#check os linux or mac
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
//check is nvidia-smi exists
if ! command -v nvidia-smi &> /dev/null
then
echo "installing without cuda support, proving will be slower"
cargo install bonsol-cli --git https://github.com/anagrambuild/bonsol
else
echo "installing with cuda support"
cargo install bonsol-cli --git https://github.com/anagrambuild/bonsol --features linux
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
cargo install bonsol-cli --git https://github.com/anagrambuild/bonsol --features mac