Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing issue with sample_async failing on machines with multiple GPUs #1379

Merged
merged 3 commits into from
Mar 12, 2024
Merged
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
2 changes: 1 addition & 1 deletion runtime/cudaq/algorithms/sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runSampling(KernelFunctor &&wrappedKernel, quantum_platform &platform,
auto &platform = get_platform();
platform.set_exec_ctx(&context, qpu_id);
wrappedKernel();
platform.reset_exec_ctx();
platform.reset_exec_ctx(qpu_id);
// In trace mode, if we have a measure result
// that is passed to an if statement, then
// we'll have collected registernames
Expand Down
Loading