-
Notifications
You must be signed in to change notification settings - Fork 229
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
compiler: Revamp code generation for asynchronous operations #2376
Merged
+2,094
−1,587
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
716a377
compile: Reuse BlockDimensions when it makes sense
FabioLuporini 953590a
api: Accept frozendict for opt-options
FabioLuporini ce8673c
compiler: Tweak profiling of subsections
FabioLuporini e257a09
compiler: Trim down Operator apply profiling
FabioLuporini 05a409f
compiler: Add Operator._sanitize_exprs
FabioLuporini 1688c5a
compiler: Add VirtualDimension
FabioLuporini 5ab35e3
compiler: Add IterationSpace.{split,insert}
FabioLuporini 1744f04
compiler: Simplify gpu callbacks
FabioLuporini 2995c69
compiler: Simplify tasking
FabioLuporini 756f204
compiler: Simplify streaming
FabioLuporini 3027b00
compiler: Add IterationSpace.innermost
FabioLuporini 0ac23f1
compiler: Revamp buffering
FabioLuporini a8297dd
compiler: Revamp ascyn_memcpy
FabioLuporini 99fb63e
compiler: Drop spurious generated comment
FabioLuporini e745e41
compiler: Simplify and generalize tasking
FabioLuporini 1e7671e
compiler: Tweak and polish lifting
FabioLuporini e93e3d7
compiler: Fix stree construction
FabioLuporini 2d5a025
compiler: Normalize syncs at Cluster construction
FabioLuporini f43bfdc
compiler: Attach mode to IMask
FabioLuporini 156d75e
compiler: Add ArrayMapped.size
FabioLuporini b3856d8
compiler: Revamp MultiSubDomain lowering
FabioLuporini e022890
compiler: Clean up MultiSubDomain lowering
FabioLuporini 8390078
compiler: Fix tasking reconstruction
FabioLuporini b397493
compiler: Fix Guards.xandg
FabioLuporini 83dbf4c
compiler: Tweak Guards and Properties
FabioLuporini 7983692
compiler: Fix memcpy_prefetch pass
FabioLuporini 55c293c
compiler: Tweak lifting
FabioLuporini 036c1c2
compiler: Fix memcpy_prefetch
FabioLuporini 8571c06
compiler: Move _rcompile_wrapper logic into Cpu64OperatorMixin
FabioLuporini b2a0405
compiler: Do not ompize asynchronous ops
FabioLuporini 1c52ee2
compiler: Tweak clear_cache
FabioLuporini 7474208
compiler: Enhance retrieve_functions
FabioLuporini ef839a4
misc: pep8 happiness
FabioLuporini e5534d4
compiler: Refactor wraps_memcpy
FabioLuporini 0c018b5
compiler: Tweak double buffering
FabioLuporini 9541d84
compiler: Revamp generation of sub-iterators
FabioLuporini f91cbf7
compiler: Introduce InitArray and SyncArray ops
FabioLuporini bb6f54b
compiler: Fix SyncArray codegen
FabioLuporini 85714be
compiler: Switch tasking back to being a Queue
FabioLuporini e0d1343
compiler: Improve Section placement
FabioLuporini 5359c8d
compiler: Misc cleanup
FabioLuporini 7659338
compiler: Patch stree construction
FabioLuporini 83deb16
compiler: Fix deterministic code gen
FabioLuporini 951dda4
compiler: Revamp async codegen
FabioLuporini 3773164
misc: pep8 happiness
FabioLuporini bffe9d3
compiler: Patch Uxreplace for ParallelTree
FabioLuporini 1b465d6
compiler: Revamp linearization
FabioLuporini c08f3d0
tools: Reinstate erroneously dropped filter_ordered implementation
FabioLuporini 809bcb8
compiler: Fixup orchestration
FabioLuporini e01d67d
compiler: Fix Uxreplace.PragmaTransfer
FabioLuporini 7a7bf29
compiler: Patch KernelLaunch.expr_symbols
FabioLuporini 77cd2ed
example: Update expected output
FabioLuporini 84faf27
tests: Drop --no-summary from custom markers
FabioLuporini ad4b477
compiler: Fixup rcompile post-rebasing
FabioLuporini 17e8512
compiler: Polishing
FabioLuporini 60a2ee7
compiler: Add stream_dimensions()
FabioLuporini 1905fb6
compiler: Refactor _generate_macros
FabioLuporini 0decbb2
misc: Improve performance summary
FabioLuporini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1293,7 +1293,26 @@ def visit_Pragma(self, o): | |
def visit_PragmaTransfer(self, o): | ||
function = uxreplace(o.function, self.mapper) | ||
arguments = [uxreplace(i, self.mapper) for i in o.arguments] | ||
return o._rebuild(function=function, arguments=arguments) | ||
if o.imask is None: | ||
return o._rebuild(function=function, arguments=arguments) | ||
|
||
# An `imask` may be None, a list of symbols/numbers, or a list of | ||
FabioLuporini marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# 2-tuples representing ranges | ||
imask = [] | ||
for v in o.imask: | ||
try: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The single dispatch of uxrteplace doesn't handle these two cases? |
||
i, j = v | ||
imask.append((uxreplace(i, self.mapper), | ||
uxreplace(j, self.mapper))) | ||
except TypeError: | ||
imask.append(uxreplace(v, self.mapper)) | ||
return o._rebuild(function=function, imask=imask, arguments=arguments) | ||
|
||
def visit_ParallelTree(self, o): | ||
prefix = self._visit(o.prefix) | ||
body = self._visit(o.body) | ||
nthreads = self.mapper.get(o.nthreads, o.nthreads) | ||
return o._rebuild(prefix=prefix, body=body, nthreads=nthreads) | ||
|
||
def visit_HaloSpot(self, o): | ||
hs = o.halo_scheme | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.get ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no square brackets is fine because by construction
openmp
must be there