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

[nvq++] Removes MLIR's scf dialect #2435

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

boschmitt
Copy link
Collaborator

@boschmitt boschmitt commented Nov 28, 2024

PR chain

Description

We don't use this dialect and its presence is a historical artifact. This change triggered the removal of two tests:

  • test/Quake/ghz.qke
  • test/Quake/iqft.qke

Both tests are a reminder of a past when we had to write quantum kernels directly in MLIR because of a lack of frontend. Both no longer test aything useful.

The commit modifies test/Quake/canonical-2.qke, which was only testing the canonicalization of cc.scope operations. The new form is removes the clutter, making the test more precise.

test/Translate/ghz.qke had to be modified because it uses MLIR's affined.for and its conversion to LLVMDialect requires scf.for.

Note: I'm unsure what test/Translate/ghz.qke is actually testing, I rewrote the test using cc.loop, but might have just deleted as well. (@schweitzpgi You eyes on this would be greatly appreciated, the diff here is mostly variable names)

We don't use this dialect and its presence is a historical artifact.
This change triggered the removal of two tests:

* `test/Quake/ghz.qke`
* `test/Quake/iqft.qke`

Both tests are a reminder of a past when we had to write quantum kernels
directly in MLIR because of a lack of frontend. Both no longer test
aything useful.

The commit modifies `test/Quake/canonical-2.qke`, which was only testing
the canonicalization of `cc.scope` operations. The new form is removes
the clutter, making the test more precise.

`test/Translate/ghz.qke` had to be modified because it uses MLIR's
`affined.for` and its conversion to LLVMDialect requires `scf.for`.

Signed-off-by: boschmitt <7152025+boschmitt@users.noreply.github.com>
Copy link
Collaborator

@schweitzpgi schweitzpgi left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Tests that are being removed are historical and look to mostly (only?) be testing canonicalization.

@schweitzpgi schweitzpgi enabled auto-merge (squash) December 9, 2024 17:51
@schweitzpgi schweitzpgi merged commit de0e7d6 into NVIDIA:main Dec 9, 2024
211 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 9, 2024
Copy link

github-actions bot commented Dec 9, 2024

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Dec 9, 2024
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.

2 participants