Skip to content

Commit 511d204

Browse files
authored
Include cmake/ in cudaq realtime sparse checkout; fix test (#669)
cuda-quantum ([#4870](NVIDIA/cuda-quantum#4870)) made realtime/unittests include cmake/modules/CUDAQGtestDiscovery.cmake from the repo root, which the realtime-only sparse checkout in CI does not fetch, breaking configure with "include could not find requested file". Fetch cmake/ alongside realtime/ in both places that clone the realtime sources. --------- Signed-off-by: Ben Howe <bhowe@nvidia.com>
1 parent b100547 commit 511d204

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/actions/build-lib/build_qec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -z "$CUDAQ_REALTIME_ROOT" ]; then
2020
git clone --filter=blob:none --no-checkout "https://github.com/${CUDAQ_REPO}.git" cudaq-realtime-src
2121
cd cudaq-realtime-src
2222
git sparse-checkout init --cone
23-
git sparse-checkout set realtime
23+
git sparse-checkout set realtime cmake
2424
git checkout "$CUDAQ_REF"
2525

2626
# Install build tools and DOCA/Holoscan SDK for HSB.

.github/workflows/all_libs_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
git clone --filter=blob:none --no-checkout "https://github.com/${CUDAQ_REPO}.git" cudaq-realtime-src
117117
cd cudaq-realtime-src
118118
git sparse-checkout init --cone
119-
git sparse-checkout set realtime
119+
git sparse-checkout set realtime cmake
120120
git checkout "$CUDAQ_REF"
121121
cd realtime && mkdir -p build && cd build
122122
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=$CUDAQ_REALTIME_ROOT ..

libs/qec/python/tests/test_decoding_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,9 @@ def test_configure_decoders_from_str_smoke():
577577
decoder_config.syndrome_size = 3
578578
decoder_config.H_sparse = [1, 2, 3, -1, 6, 7, 8, -1, -1]
579579
decoder_config.set_decoder_custom_args(nv)
580-
yaml_str = decoder_config.to_yaml_str()
580+
multi_decoder_config = qec.multi_decoder_config()
581+
multi_decoder_config.decoders = [decoder_config]
582+
yaml_str = multi_decoder_config.to_yaml_str()
581583
# Do not instantiate the decoder if it is not available.
582584
if not is_nv_qldpc_decoder_available():
583585
return

0 commit comments

Comments
 (0)