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

feat: force-order qfree early and qalloc late. #762

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

doug-q
Copy link
Contributor

@doug-q doug-q commented Feb 5, 2025

Closes #761

@doug-q doug-q requested a review from a team as a code owner February 5, 2025 08:01
@doug-q doug-q requested a review from cqc-alec February 5, 2025 08:01
let is_read = optype.cast() == Some(FutureOpDef::Read);

// HACK: for now qallocs and qfrees are not adequately ordered,
// see TODO. To mitigate this we push qfrees as early as possible
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What issue should we point to here?

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 95.83333% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.09%. Comparing base (fd1450c) to head (d72905d).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
tket2-hseries/src/lib.rs 95.83% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #762      +/-   ##
==========================================
- Coverage   82.31%   82.09%   -0.23%     
==========================================
  Files          63       63              
  Lines        7742     7763      +21     
  Branches     7486     7507      +21     
==========================================
  Hits         6373     6373              
- Misses        979     1000      +21     
  Partials      390      390              
Flag Coverage Δ
rust 82.08% <95.83%> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hugrbot
Copy link
Collaborator

hugrbot commented Feb 5, 2025

This PR contains breaking changes to the public Rust API.
Please deprecate the old API instead (if possible), or mark the PR with a ! to indicate a breaking change.

cargo-semver-checks summary

Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth making an issue on this repo to remove the hack once the guppy issue is fixed?

@doug-q
Copy link
Contributor Author

doug-q commented Feb 5, 2025

Is it worth making an issue on this repo to remove the hack once the guppy issue is fixed?

Done #765

@doug-q doug-q added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit 68ef624 Feb 5, 2025
16 of 17 checks passed
@doug-q doug-q deleted the doug/force-order-qalloc-qfree branch February 5, 2025 15:25
@hugrbot hugrbot mentioned this pull request Feb 5, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 12, 2025
## 🤖 New release

* `tket2`: 0.7.1 -> 0.7.2 (✓ API compatible changes)
* `tket2-hseries`: 0.8.0 -> 0.9.0 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

## `tket2`

<blockquote>

##
[0.7.1](tket2-v0.7.0...tket2-v0.7.1)
- 2025-01-10

### Bug Fixes

- remove unicode pi symbols in rotation extension (#743)
</blockquote>

## `tket2-hseries`

<blockquote>

##
[0.9.0](tket2-hseries-v0.8.0...tket2-hseries-v0.9.0)
- 2025-02-12

### Bug Fixes

- Use `RemoveDeadFuncsPass` instead of deprecated `remove_polyfuncs()`
(#759)
- nondeterminism in lazify-measure (#766)

### New Features

- *(tket2-hseries)* Add `tket2.wasm` extension (#737)
- force-order qfree early and qalloc late. (#762)
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
@hugrbot hugrbot mentioned this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tket2-hseries: force_order qalloc late and qfree early
3 participants