Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/ci/test_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ if [[ "$LIB" == "solvers" || "$LIB" == "all" ]]; then
for file in examples/solvers/python/*.py; do
run_python_test "$file"
done

# Test python examples with MPI option
for file in examples/solvers/python/*.py; do
if echo "$file" | grep -qi "mpi"; then
echo "Running MPI example: $file"
# Run MPI using CUDAQ MPI
python3 "$file" --mpi
# Repeat using MPI Python API
PMIX_MCA_gds=hash mpiexec -np 1 --allow-run-as-root python3 $file --mpi
fi
done

for file in examples/solvers/cpp/*.cpp; do
run_cpp_test "$file" "-lcudaq-solvers"
Expand Down