Skip to content

Commit 9d7618d

Browse files
v4.2 (#692)
2 parents 4d44ec8 + b0c66d2 commit 9d7618d

File tree

116 files changed

+8912
-2271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+8912
-2271
lines changed

.github/workflows/compile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ jobs:
228228
-DENABLE_TESTING=ON
229229
-DFLOAT_PRECISION=${{ matrix.precision }}
230230
-DENABLE_DEPRECATED_API=${{ matrix.deprecated }}
231+
-DDISABLE_DEPRECATION_WARNINGS=${{ matrix.deprecated }}
231232
-DENABLE_MULTITHREADING=${{ matrix.omp }}
232233
-DENABLE_DISTRIBUTION=${{ matrix.mpi }}
233234
-DENABLE_CUDA=${{ matrix.cuda }}

.github/workflows/test_free.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ jobs:
5454
build_dir: "build"
5555
depr_dir: "build/tests/deprecated"
5656

57-
# run all slow, rigorous tests (because runner is free)
58-
num_qubit_perms: 0
59-
test_all_deploys: ON
60-
6157
# perform the job
6258
steps:
6359
- name: Get QuEST
@@ -70,15 +66,15 @@ jobs:
7066
-DENABLE_TESTING=ON
7167
-DENABLE_MULTITHREADING=OFF
7268
-DENABLE_DEPRECATED_API=${{ matrix.version == 3 && 'ON' || 'OFF' }}
69+
-DDISABLE_DEPRECATION_WARNINGS=${{ matrix.version == 3 && 'ON' || 'OFF' }}
7370
-DFLOAT_PRECISION=${{ matrix.precision }}
74-
-DTEST_ALL_DEPLOYMENTS=${{ env.test_all_deploys }}
75-
-DTEST_MAX_NUM_QUBIT_PERMUTATIONS=${{ env.num_qubit_perms }}
7671
7772
# force 'Release' build (needed by MSVC to enable optimisations)
7873
- name: Compile
7974
run: cmake --build ${{ env.build_dir }} --config Release --parallel
8075

81-
# run v4 unit tests in random order, excluding the integration tests
76+
# run v4 unit tests in random order, excluding the integration tests,
77+
# using the default environment variables (e.g. test all permutations)
8278
# TODO:
8379
# ctest currently doesn't know of our Catch2 tags, so we
8480
# are manually excluding each integration test by name

.github/workflows/test_paid.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090

9191
# tests will be non-comprehensive/faster to save $$$
9292
num_qubit_perms: 10
93-
test_all_deploys: OFF
93+
test_all_deploys: 0
9494

9595
# perform the job
9696
steps:
@@ -139,6 +139,12 @@ jobs:
139139
- name: Compile
140140
run: cmake --build ${{ env.build_dir }} --parallel
141141

142+
# specifying only env-vars with non-default values
143+
- name: Configure tests with environment variables
144+
run: |
145+
echo "TEST_MAX_NUM_QUBIT_PERMUTATIONS=${{ env.num_qubit_perms }}" >> $GITHUB_ENV
146+
echo "TEST_ALL_DEPLOYMENTS=${{ env.test_all_deploys }}" >> $GITHUB_ENV
147+
142148
# cannot use ctests when distributed, grr!
143149
- name: Run multithreaded + distributed v4 tests (16 nodes, 4 threads eeach)
144150
if: ${{ matrix.mpi == 'ON' }}
@@ -206,11 +212,11 @@ jobs:
206212
# which will be shared between 4 MPI processes
207213
# (no --oversubscribe flag necessary on MPICH)
208214
num_mpi_nodes: 4
209-
mpi_share_gpu: ON
215+
mpi_share_gpu: 1
210216

211217
# we will test all combinations of deployments
212218
# (e.g. CPU + MPI vs GPU), repeated 5 times each
213-
test_all_deploys: ON
219+
test_all_deploys: 1
214220
test_repetitions: 5
215221

216222
# perform the job
@@ -255,14 +261,18 @@ jobs:
255261
-DENABLE_CUDA=${{ matrix.cuda }}
256262
-DENABLE_CUQUANTUM=${{ matrix.cuquantum }}
257263
-DCMAKE_CUDA_ARCHITECTURES=${{ env.cuda_arch }}
258-
-DTEST_ALL_DEPLOYMENTS=${{ env.test_all_deploys }}
259-
-DTEST_NUM_MIXED_DEPLOYMENT_REPETITIONS=${{ env.test_repetitions }}
260-
-DPERMIT_NODES_TO_SHARE_GPU=${{ env.mpi_share_gpu }}
261264
-DCMAKE_CXX_FLAGS=${{ matrix.mpi == 'ON' && matrix.cuda == 'ON' && '-fno-lto' || '' }}
262265
263266
- name: Compile
264267
run: cmake --build ${{ env.build_dir }} --parallel
265268

269+
# specify only env-vars with non-default values
270+
- name: Configure tests with environment variables
271+
run: |
272+
echo "TEST_ALL_DEPLOYMENTS=${{ env.test_all_deploys }}" >> $GITHUB_ENV
273+
echo "TEST_NUM_MIXED_DEPLOYMENT_REPETITIONS=${{ env.test_repetitions }}" >> $GITHUB_ENV
274+
echo "PERMIT_NODES_TO_SHARE_GPU=${{ env.mpi_share_gpu }}" >> $GITHUB_ENV
275+
266276
# cannot use ctests when distributed, grr!
267277
- name: Run GPU + distributed v4 mixed tests (4 nodes sharing 1 GPU)
268278
run: |

AUTHORS.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ Dr Ian Bush [consultant]
4444
HPC
4545

4646
External contributors:
47+
Diogo Pratas Maia
48+
added non-unitary Pauli gadget (for unitaryHACK issue #594)
49+
Mai Đức Khang
50+
implemented RAM probe (for unitaryHACK issue #600)
4751
James Richings
4852
patched overflow in bitwise.hpp logic
4953
Luc Jaulmes

0 commit comments

Comments
 (0)