-
Notifications
You must be signed in to change notification settings - Fork 32
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
Access memory allocated in segment in the herd #666
Comments
In the first case, it looks to me that it was the In the second case, yeah this is expected because air herd/segment/launch ops have trait |
The example is here: https://github.com/Xilinx/mlir-air/blob/alloc-check-example/programming_examples/segment_alloc/segment_alloc.py I'm not sure how to get a handle to/represent the ssa memref value in Python, but I can try to look into it. Let me know if you have any ideas! |
I'm not expert in mlir python binding, but just wondering if we could do something here to check for operand's returned value's type if operand is an Operation instead of Value? mlir-air/python/air/dialects/_air_ops_ext.py Line 105 in 70eb71e
|
I'll give it a try! |
It worked! Solution merged here: #668 |
I'm trying to make an example where I allocate it in the segment (in L2 memory) and then use it as a target for the
dma_memcpy_nd
in the herd within the segment. I have written an example for that in a branch calledalloc-check-example
.In the current form of the code, where I try to send the allocated memory to the herd through an operand/argument, I get the following error:
If I don't try to send it from the segment to the herd as a herd operand, I get this error instead:
I believe one of these two things should work, but I'm not sure which one (or both).
The text was updated successfully, but these errors were encountered: