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

trying to implement mean for large data array #2016

Open
antonio-fc opened this issue Jan 13, 2025 · 4 comments
Open

trying to implement mean for large data array #2016

antonio-fc opened this issue Jan 13, 2025 · 4 comments

Comments

@antonio-fc
Copy link

antonio-fc commented Jan 13, 2025

Hello team,

I am currently trying to implement the mean operation for a stream of 9216 floats. This would mean going from the 9216 floats to a single float as the stream output. I am able to transform this with 9 x 1024 float objects and reduce it to 9 float objects that represent the partial means. Unfortunately, I am unable to obtain the final result since these objects cannot be acquired simultaneously. My goal is to obtain the mean of these 9 floats and have a single float as the output of the application. Is there a way I can achieve this?

The application can be found at https://github.com/antonio-fc/my_mlir-aie/tree/testing/apps/app4. The last core description in the aie2.py file is currently just a passthrough for the 9 float objects. However, I want to make it so that this compute tile performs the last step to obtain the single float object. The application uses 'make run_py' to be executed and just prints the 9 partial means.

Thanks in advance, and if more information is needed please let me know.

Best,
Antonio

@jgmelber
Copy link
Collaborator

Hi Antonio, I think the link is missing from your code. I would like to review your implementation before making any uninformed suggestions! Thanks!

@antonio-fc
Copy link
Author

done, its in the description now.

@jgmelber
Copy link
Collaborator

I made a quick attempt. This might work for you antonio-fc/my_mlir-aie@testing...jgmelber:mlir-aie:patch-1

@antonio-fc
Copy link
Author

Hi, i tried this and i got this error message
image

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

No branches or pull requests

2 participants