KEMBAR78
Fix an issue due to an ABI differences between ARM and x86 architectures by 1tnguyen · Pull Request #878 · NVIDIA/cuda-quantum · GitHub
Skip to content

Conversation

@1tnguyen
Copy link
Collaborator

@1tnguyen 1tnguyen commented Nov 8, 2023

Description

The root cause is ABI differences b/w ARM and x86 as explained here.

Hence, this PR adds the sret attribute to the first (hidden) argument if the entry point function is returning one and re-enables the auto_kernel.cpp test on ARM.

Resolved: #553

@1tnguyen 1tnguyen requested a review from schweitzpgi November 8, 2023 00:14
@1tnguyen 1tnguyen added this to the release 0.5.0 milestone Nov 8, 2023
Copy link
Collaborator

@bmhowe23 bmhowe23 left a comment

Choose a reason for hiding this comment

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

Nice.

Co-authored-by: Ben Howe <141149032+bmhowe23@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Nov 8, 2023

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

github-actions bot pushed a commit that referenced this pull request Nov 8, 2023
@github-actions
Copy link

github-actions bot commented Nov 8, 2023

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

github-actions bot pushed a commit that referenced this pull request Nov 8, 2023
@github-actions
Copy link

github-actions bot commented Nov 8, 2023

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

github-actions bot pushed a commit that referenced this pull request Nov 8, 2023
@1tnguyen 1tnguyen merged commit ae02f36 into NVIDIA:main Nov 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2023
Comment on lines +522 to +523
mlir::LLVM::LLVMDialect::getStructRetAttrName(),
mlir::TypeAttr::get(eleTy));
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Don't need the mlir::

@bettinaheim bettinaheim added the bug fix To be listed under Bug Fixes in the release notes label Nov 15, 2023
@bettinaheim bettinaheim changed the title Add sret attribute for entry point function if needed Fix an issue due to an ABI differences between ARM and x86 architectures Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug fix To be listed under Bug Fixes in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-kernel test is failing on ARM

4 participants