Skip to content

Commit

Permalink
Merge branch 'main' into publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
bettinaheim authored Nov 7, 2024
2 parents 29704dc + 90754d9 commit 2946d54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/common/KernelWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@ std::invoke_result_t<QuantumKernel, Args...> invokeKernel(QuantumKernel &&fn,
// Just need to JIT code to get it registered.
static_cast<cudaq::details::kernel_builder_base &>(fn).jitCode();
auto serializedArgsBuffer = serializeArgs(std::forward<Args>(args)...);
cudaq::get_platform().launchKernel(fn.name(), nullptr,
(void *)serializedArgsBuffer.data(),
serializedArgsBuffer.size(), 0, {});
[[maybe_unused]] auto result = cudaq::get_platform().launchKernel(
fn.name(), nullptr, (void *)serializedArgsBuffer.data(),
serializedArgsBuffer.size(), 0, {});
} else {
// In library mode, to use the remote simulator platform, we need to pack
// the argument and delegate to the platform's launchKernel rather than
Expand Down

0 comments on commit 2946d54

Please sign in to comment.