Skip to content

Commit ec0a76d

Browse files
committed
chore: try to debug multicore SDR run
1 parent 6c3972f commit ec0a76d

File tree

1 file changed

+52
-60
lines changed

1 file changed

+52
-60
lines changed

.github/workflows/ci.yml

+52-60
Original file line numberDiff line numberDiff line change
@@ -55,47 +55,15 @@ jobs:
5555
# - name: Run cargo fmt
5656
# run: cargo fmt --all -- --check
5757

58-
test_release:
59-
runs-on: ubuntu-latest
60-
name: Test in release mode
61-
strategy:
62-
matrix:
63-
cargo-args: ['', '--features fixed-rows-to-discard']
64-
env:
65-
# Run all tests with multicore-SDR enabled.
66-
FIL_PROOFS_USE_MULTICORE_SDR: true
67-
steps:
68-
- uses: actions/checkout@v4
69-
- name: Install required packages
70-
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
71-
72-
- name: Download the proof params
73-
uses: ./.github/actions/proof-params-download
74-
with:
75-
github-token: ${{ secrets.GITHUB_TOKEN }}
76-
77-
- name: Test in release profile
78-
run: |
79-
cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
80-
# Run sequentially due to core assignment tests that otherwise might
81-
# interfere with each other
82-
cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
83-
# Some `storage-proofs-update` tests need to run sequentially due to
84-
# their high memory usage.
85-
cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
86-
87-
#test_ignored_release:
58+
#test_release:
8859
# runs-on: ubuntu-latest
89-
# name: Test ignored in release mode
60+
# name: Test in release mode
9061
# strategy:
9162
# matrix:
92-
# crate: [
93-
# 'filecoin-proofs',
94-
# 'storage-proofs-core',
95-
# 'storage-proofs-porep',
96-
# 'storage-proofs-post',
97-
# 'storage-proofs-update'
98-
# ]
63+
# cargo-args: ['', '--features fixed-rows-to-discard']
64+
# env:
65+
# # Run all tests with multicore-SDR enabled.
66+
# FIL_PROOFS_USE_MULTICORE_SDR: true
9967
# steps:
10068
# - uses: actions/checkout@v4
10169
# - name: Install required packages
@@ -106,8 +74,15 @@ jobs:
10674
# with:
10775
# github-token: ${{ secrets.GITHUB_TOKEN }}
10876
#
109-
# - name: Test ignored in release profile
110-
# run: cargo test --package ${{ matrix.crate }} --release -- ignored --nocapture
77+
# - name: Test in release profile
78+
# run: |
79+
# cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }}
80+
# # Run sequentially due to core assignment tests that otherwise might
81+
# # interfere with each other
82+
# cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
83+
# # Some `storage-proofs-update` tests need to run sequentially due to
84+
# # their high memory usage.
85+
# cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --test-threads=1
11186

11287
#test_ignored_release:
11388
# runs-on: ubuntu-latest
@@ -125,29 +100,46 @@ jobs:
125100
# - name: Test ignored in release profile
126101
# run: cargo test --release --workspace -- ignored --nocapture
127102

128-
test_no_default_features:
129-
runs-on: ubuntu-latest
130-
name: Test without default features
131-
steps:
132-
- uses: actions/checkout@v4
133-
- name: Install required packages
134-
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
135-
136-
- name: Download the proof params
137-
uses: ./.github/actions/proof-params-download
138-
with:
139-
github-token: ${{ secrets.GITHUB_TOKEN }}
140-
141-
- name: Test ignored in release profile
142-
run: cargo test --release --workspace --no-default-features
103+
#test_no_default_features:
104+
# runs-on: ubuntu-latest
105+
# name: Test without default features
106+
# steps:
107+
# - uses: actions/checkout@v4
108+
# - name: Install required packages
109+
# run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
110+
#
111+
# - name: Download the proof params
112+
# uses: ./.github/actions/proof-params-download
113+
# with:
114+
# github-token: ${{ secrets.GITHUB_TOKEN }}
115+
#
116+
# - name: Test ignored in release profile
117+
# run: cargo test --release --workspace --no-default-features
118+
#
119+
#build_gpu:
120+
# runs-on: ubuntu-latest
121+
# name: Build with CUDA and OpenCL support enabled
122+
# steps:
123+
# - uses: actions/checkout@v4
124+
# - name: Install required packages
125+
# run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
126+
#
127+
# - name: Test ignored in release profile
128+
# run: cargo build --workspace --features cuda,opencl
143129

144-
build_gpu:
130+
multicore_sdr:
145131
runs-on: ubuntu-latest
146-
name: Build with CUDA and OpenCL support enabled
132+
name: Run specific multicore SDR tests
133+
env:
134+
RUST_TEST_THREADS: 1
147135
steps:
148136
- uses: actions/checkout@v4
149137
- name: Install required packages
150-
run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
138+
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
151139

152-
- name: Test ignored in release profile
153-
run: cargo build --workspace --features cuda,opencl
140+
- name: Without multicore SDR
141+
run: cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores
142+
- name: With multicore SDR
143+
run: cargo test -p storage-proofs-porep --features isolated-testing --release --lib stacked::vanilla::cores
144+
env:
145+
FIL_PROOFS_USE_MULTICORE_SDR: true

0 commit comments

Comments
 (0)