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

Try integrating with QIREE #1155

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

tzunghanjuang
Copy link
Collaborator

@tzunghanjuang tzunghanjuang commented Sep 24, 2024

Context:
Just for fun 🙂 .

Build XACC
Cmake command for Conda:

cmake .. -DXACC_BUILD_TESTS=TRUE -DXACC_BUILD_EXAMPLES=TRUE -DPython_EXECUTABLE:FILEPATH=/home/tzung-han.juang/.conda/envs/qiree/bin/python3.12 -DPython_EXECUTABLE=/home/tzung-han.juang/.conda/envs/qiree/bin/python3.12 -DPython_INCLUDE_DIR=/home/tzung-han.juang/.conda/envs/qiree/include/python3.12/ -DPython_LIBRARY=/home/tzung-han.juang/.conda/envs/qiree/lib/libpython3.12.so

Build QIREE:

cmake .. -DLLVM_DIR=/home/tzung-han.juang/Workspace/catalyst-qiree/mlir/llvm-project/build/lib/cmake/llvm
  • QIREE requires MCJIT. We need to add MCJIT manully to LLVM (in llvm-project/mlir/lib/ExecutionEngine/CMakeLists.txt).
  • Build LLVM with -DCMAKE_CXX_VISIBILITY_PRESET=Hidden

Issues:

Supported IR list:
https://github.com/ORNL-QCI/qiree/blob/aef64061406c904911178a3b621cc9318cb271bc/TODO.md

@erick-xanadu
Copy link
Contributor

You may be interested in this branch: https://github.com/PennyLaneAI/catalyst/tree/eochoa/2024-03-25/backends very old and I went with a different approach for outlining kernels.

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