Skip to content

Commit e8c920b

Browse files
chore(cuda): update cuda-backend with Virtual Memory Manager and NTT refactor (#2127)
Updates `openvm-cuda-backend` with: - Performance update for better GPU memory usage: openvm-org/stark-backend#114 - Refactor to avoid some sporadic issues with NTT params initialization: openvm-org/stark-backend#123 --------- Co-authored-by: Jonathan Wang <[email protected]>
1 parent 6c11e67 commit e8c920b

File tree

9 files changed

+128
-91
lines changed

9 files changed

+128
-91
lines changed

.github/workflows/benchmark-call.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ jobs:
223223
MAX_SEGMENT_LENGTH="--max_segment_length ${{ inputs.max_segment_length }}"
224224
OUTPUT_PATH="--output_path $(pwd)/$METRIC_PATH"
225225
echo "INPUT_ARGS=${FEATURES} ${APP_ARG} ${AGG_ARG} ${MAX_SEGMENT_LENGTH} ${OUTPUT_PATH} ${INPUT_ARGS}" >> $GITHUB_ENV
226+
echo "VPMM_PAGES=2048" >> $GITHUB_ENV # 4GB
226227
227228
##########################################################################
228229
# Find working directory based on benchmark_name and run the benchmark #

.github/workflows/extension-tests.cuda.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
nvcc --version
100100
echo "NEXTEST_ENV=CUDA_OPT_LEVEL=3" >> $GITHUB_ENV
101101
echo "FEATURE_ARGS=--features=cuda" >> $GITHUB_ENV
102+
echo "VPMM_PAGES=1" >> $GITHUB_ENV
102103
103104
- name: Run extension tests
104105
env:

.github/workflows/guest-lib-tests.cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- { names: "ruint k256 p256" }
3535
- { names: "ff_derive pairing" }
3636
runs-on:
37-
- runs-on=${{ github.run_id }}-guest-lib-cuda-${{ github.run_attempt }}-${{ strategy.job-index }}/runner=test-gpu-nvidia/cpu=8+32
37+
- runs-on=${{ github.run_id }}-guest-lib-cuda-${{ github.run_attempt }}-${{ strategy.job-index }}/runner=test-gpu-nvidia/cpu=8+32/family=g6+g5+g6e
3838

3939
steps:
4040
- uses: runs-on/action@v2

.github/workflows/riscv.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
nvcc --version
5757
echo "FEATURE_ARGS=--features=cuda,touchemall" >> $GITHUB_ENV
58+
echo "VPMM_PAGES=1" >> $GITHUB_ENV
5859
5960
- name: Download and install risc64-elf-gcc
6061
if: contains(matrix.platform.image, 'x64')

0 commit comments

Comments
 (0)