-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
atomic_add return value #332
Comments
Hey, I'd like to contribute to this if possible. I got a prototype in this commit, and now am adding new tests/fixing broken tests... |
Nice! I think your implementation generally makes sense to me. I'm at the airport now and will take a close look after I settle down. Thank you! |
Sure no problem! I've listed some of my decisions and questions below for you to take a look. The code is not ready yet, so don't worry about that for now.. I'll send a PR later :)
to
Combined with the above point, this actually caused a problem:
gets demoted to
The program crashed at stmt I ended up replacing all
It will be great to know what's wrong, but i need a stop... |
Taichi used to support loop vectorization, however, after switching to LLVM the auto-vectorization functionality is broken. I would suggest that we implement the scalar case first, since
Yes, this needs to be set to the same type as
Nice catch. I believe this is a bug. My bad :-(
This is mostly the right approach! I would simply use the name |
Yeah this is slightly tricky.
I believe store inst in LLVM does not have a value, so assigning it to an AllocaInst is not a good idea :-( The only patch I would do here:
Great job! This makes perfect sense. I don't think the Python parser even allows you to parse Thank you so much for helping with this! |
Thank you for the detailed feedback! I'll try to finish the impl today or so. XD |
Thanks! Please have fun and no need to rush. Here are some useful pieces of info when debugging the Taichi compiler https://taichi.readthedocs.io/en/latest/contributor_guide.html#tips-on-taichi-compiler-development (although I think you have figured out most of these on your own :) |
No description provided.
The text was updated successfully, but these errors were encountered: