Refactor ere-dockerized (#160)

This commit is contained in:
Han
2025-10-09 21:47:10 +08:00
committed by GitHub
parent fb3443a169
commit a62e25c62d
61 changed files with 1208 additions and 954 deletions

View File

@@ -82,8 +82,8 @@ echo "The rzup installer might have updated your shell configuration files (e.g.
echo "To ensure rzup and Risc0 tools are available in your current shell session if this was a new installation,"
echo "you may need to source your shell profile (e.g., 'source ~/.bashrc') or open a new terminal."
# Build r0vm from source with CUDA features enabled (skip if in CI)
if [ -z $CI ]; then
# Build r0vm from source with `cuda` feature enabled
if [ -n "$CUDA" ]; then
CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
RISC0_BIN_DIR="$HOME/.risc0/extensions/v$RISC0_VERSION-cargo-risczero-x86_64-unknown-linux-gnu"

View File

@@ -59,21 +59,21 @@ else
exit 1
fi
# Step 3: Build cargo-zisk-gpu from source with GPU features enabled (skip if in CI)
if [ -z $CI ]; then
# Step 3: Build cargo-zisk-cuda from source with `gpu` feature enabled
if [ -n "$CUDA" ]; then
TEMP_DIR=$(mktemp -d)
git clone https://github.com/0xPolygonHermez/zisk.git --depth 1 --branch "v$ZISK_VERSION" "$TEMP_DIR/zisk"
cd "$TEMP_DIR/zisk"
cargo build --release --features gpu
cp ./target/release/cargo-zisk "${HOME}/.zisk/bin/cargo-zisk-gpu"
cp ./target/release/libzisk_witness.so "${HOME}/.zisk/bin/libzisk_witness_gpu.so"
cp ./target/release/cargo-zisk "${HOME}/.zisk/bin/cargo-zisk-cuda"
cp ./target/release/libzisk_witness.so "${HOME}/.zisk/bin/libzisk_witness_cuda.so"
rm -rf "$TEMP_DIR"
echo "Checking for cargo-zisk-gpu CLI tool..."
if cargo-zisk-gpu --version; then
echo "cargo-zisk-gpu CLI tool verified successfully."
echo "Checking for cargo-zisk-cuda CLI tool..."
if cargo-zisk-cuda --version; then
echo "cargo-zisk-cuda CLI tool verified successfully."
else
echo "Error: 'cargo-zisk-gpu --version' failed." >&2
echo "Error: 'cargo-zisk-cuda --version' failed." >&2
exit 1
fi
fi