loopy
loopy copied to clipboard
A code generator for array-based code on CPUs and GPUs
Visible in https://gist.github.com/matthiasdiener/b50910994b638097c37c9162f2005982, as flagged in https://github.com/illinois-ceesd/mirgecom/issues/1101. Interspersed between enqueues. Seems like this is mostly about offset parameters. Also: - [ ] Incorrect error messages in those. Example: ```py if...
Visible in https://gist.github.com/matthiasdiener/b50910994b638097c37c9162f2005982, from https://github.com/illinois-ceesd/mirgecom/issues/1101. As an extension, we could allow for reuse of allocations by multiple kernels. Note that this is roughly equivalent to what @kaushikcfd's [`_alias_global_temporaries`](https://github.com/illinois-ceesd/meshmode/blob/761b235e281dbf050159969b1d5d891966f6d996/meshmode/array_context.py#L456).
It's only useful for out-of-order queues anyway. Visible in https://gist.github.com/matthiasdiener/b50910994b638097c37c9162f2005982, from https://github.com/illinois-ceesd/mirgecom/issues/1101. cc @matthiasdiener
x-ref: https://github.com/inducer/pytools/issues/287 [This](https://github.com/inducer/loopy/blob/2b9ff39b86aba8b5a2cdd1f703fddf8398a8a6eb/loopy/symbolic.py#L1560) might be a good place, though the mapper obviously would need to be renamed. cc @matthiasdiener
This is (very) crude, not sure if a viable direction. Fixes #912. TODO: - [ ] check `Map`
Fixes #870.
cc @alexfikl
This is a start towards fixing #870.