Skip to content

Commit

Permalink
Add required command line argument to tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Schweitz <[email protected]>
  • Loading branch information
schweitzpgi committed Nov 7, 2024
1 parent 69597b2 commit 6d5fdbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ add_nvqpp_test(MultiControlOps examples/cpp/basics/multi_controlled_operations.c
add_nvqpp_test(ExpVals examples/cpp/basics/expectation_values.cpp)
add_nvqpp_test(MidCircuitMeasurements examples/cpp/basics/mid_circuit_measurement.cpp)
add_nvqpp_test(PhaseEstimation applications/cpp/phase_estimation.cpp)
add_nvqpp_test(Grover applications/cpp/grover.cpp)
add_nvqpp_test(Grover applications/cpp/grover.cpp NVQPP_EXTRA_ARGS "--library-mode")
add_nvqpp_test(QAOA applications/cpp/qaoa_maxcut.cpp)
add_nvqpp_test(VQEH2 applications/cpp/vqe_h2.cpp)
add_nvqpp_test(AmplitudeEstimation applications/cpp/amplitude_estimation.cpp)
Expand Down Expand Up @@ -103,7 +103,7 @@ if (CUSTATEVEC_ROOT AND CUDA_FOUND)
endif()
endif()

add_nvqpp_test(photonics_sim targets/cpp/photonics.cpp TARGET orca-photonics)
add_nvqpp_test(photonics_sim targets/cpp/photonics.cpp TARGET orca-photonics NVQPP_EXTRA_ARGS "--library-mode")
add_nvqpp_test(SampleAsyncRemote using/cudaq/platform/sample_async_remote.cpp TARGET remote-mqpu SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sphinx/snippets/cpp)
set_tests_properties(
nvqpp_SampleAsyncRemote
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/applications/cpp/grover.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Compile and run with:
// ```
// nvq++ grover.cpp -o grover.x && ./grover.x
// nvq++ --library-mode grover.cpp -o grover.x && ./grover.x
// ```

#include <cmath>
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/targets/cpp/photonics.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Compile and run with:
// ```
// nvq++ --target orca-photonics photonics.cpp
// nvq++ --library-mode --target orca-photonics photonics.cpp
// ./a.out
// ```

Expand All @@ -24,4 +24,4 @@ int main() {

auto state = cudaq::get_state(photonicsKernel{});
state.dump();
}
}

0 comments on commit 6d5fdbc

Please sign in to comment.