Skip to content

Commit

Permalink
* Follow-up to PR#2528: Make the newly added target test for quera run
Browse files Browse the repository at this point in the history
  conditionally, i.e. only if the `quera` target is available.

Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>
  • Loading branch information
khalatepradnya committed Jan 23, 2025
1 parent 7da8635 commit dc3e678
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions targettests/quera/unsupported_arbitrary_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
* the terms of the Apache License 2.0 which accompanies this distribution. *
******************************************************************************/

// RUN: nvq++ %cpp_std --target quera %s -o %t.x
// RUN: not %t.x 2>&1 | FileCheck %s
// RUN: nvq++ %cpp_std --target quera --emulate %s -o %t.x
// RUN: not %t.x 2>&1 | FileCheck %s
/// NOTE: The `quera` target is available only if AWS SDK is installed, i.e. if
/// `braket` target is also available.
// clang-format off
// RUN: if %braket_avail; then nvq++ %cpp_std --target quera %s -o %t.x; fi
// RUN: if %braket_avail; then not %t.x 2>&1 | FileCheck %s; fi
// RUN: if %braket_avail; then nvq++ %cpp_std --target quera --emulate %s -o %t.x; fi
// RUN: if %braket_avail; then not %t.x 2>&1 | FileCheck %s; fi
// clang-format on

#include <cudaq.h>

Expand Down

0 comments on commit dc3e678

Please sign in to comment.