Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Aug 16, 2024
1 parent 42a6732 commit baea64c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
image: nvidia/cuda:${{ matrix.cuda }}
env:
BELLMAN_CUDA_DIR: ${{ github.workspace }}/bellman-cuda
CUDAARCHS: 89
steps:
- name: Prepare environment
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:
run: |
echo "/usr/local/nvidia/bin:/usr/local/cuda/bin" >> $GITHUB_PATH
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3

- name: Check Nvidia driver version
run: |
nvidia-smi
Expand Down
13 changes: 8 additions & 5 deletions crates/shivini/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ mod zksync {

pub type ZksyncProof = Proof<F, DefaultTreeHasher, GoldilocksExt2>;

const TEST_DATA_ROOT_DIR: &str = "./test_data";
const TEST_DATA_ROOT_DIR: &str = "./crates/shivini/test_data";
const DEFAULT_CIRCUIT_INPUT: &str = "default.circuit";

use crate::synthesis_utils::{
Expand Down Expand Up @@ -928,7 +928,7 @@ mod zksync {
let _ctx = ProverContext::create().expect("gpu prover context");

for main_dir in ["base", "leaf", "node", "tip"] {
let data_dir = format!("./test_data/{}", main_dir);
let data_dir = format!("./crates/shivini/test_data/{}", main_dir);
dbg!(&data_dir);
let circuits = scan_directory_for_circuits(&data_dir);
let reference_proofs = scan_directory_for_proofs(&data_dir);
Expand Down Expand Up @@ -1019,7 +1019,7 @@ mod zksync {
let worker = &Worker::new();

for main_dir in ["base", "leaf", "node", "tip"] {
let data_dir = format!("./test_data/{}", main_dir);
let data_dir = format!("./crates/shivini/test_data/{}", main_dir);
dbg!(&data_dir);
let circuits = scan_directory_for_circuits(&data_dir);

Expand Down Expand Up @@ -1458,7 +1458,7 @@ mod zksync {
let _worker = Worker::new();

for main_dir in ["base", "leaf", "node", "tip"] {
let data_dir = format!("./test_data/{}", main_dir);
let data_dir = format!("./crates/shivini/test_data/{}", main_dir);
let circuits = scan_directory_for_circuits(&data_dir);

let worker = &Worker::new();
Expand Down Expand Up @@ -1557,7 +1557,10 @@ mod zksync {
})
.collect::<Vec<String>>()
.pop()
.unwrap_or(format!("./test_data/{}", DEFAULT_CIRCUIT_INPUT))
.unwrap_or(format!(
"./crates/shivini/test_data/{}",
DEFAULT_CIRCUIT_INPUT
))
};

let data = std::fs::read(circuit_file_path).expect("circuit file");
Expand Down

0 comments on commit baea64c

Please sign in to comment.