Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Initial fallback implementation #8

Merged

Conversation

AlexanderKalistratov
Copy link

No description provided.

Copy link

@DrTodd13 DrTodd13 left a comment

Choose a reason for hiding this comment

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

@AlexanderKalistratov One general thing I'm curious about. Is it the case that nothing gets added to the builder for the parent function before the lowering of the outlined parfor body that may fail? If anything gets added at all then it may be a problem if you reset things and go through another path that maybe starts to add similar code for the CPU fallback. Maybe such code isn't an issue if it isn't used and is therefore eliminated but I'm curious about what you think about this issue.

@AlexanderKalistratov
Copy link
Author

@DrTodd13 At the moment parent function doesn't add any device specific instructions, so there is no such issue right now. In case it would add device specific instructions though it would become a problem and different solution would be required.

@AlexanderKalistratov
Copy link
Author

Current solution doesn't support case when parent function insert any device specific instructions/do device specific optimization.
To address such case different approach should be implemented.

@AlexanderKalistratov
Copy link
Author

AlexanderKalistratov commented Aug 26, 2020

@diptorupd I've added comment about how lowering happens and limitation of such approach.

https://github.com/IntelPython/numba/pull/8/files#diff-d8989c7f1e14dfa24fbb582a225d6442R973

@diptorupd
Copy link

Looks good. Thanks @AlexanderKalistratov.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants