-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMD][Atomic] Introduceruntime LDS reduction algorithm for atomicRmwOp
Algorithm description: 1. Sort {ptr, operand} among the threads within the warp via bitonic sort based on DPP and Permute operations; 2. Distribute threads between groups defined by pointers, define a group for each thread by analizing neighbours with DPP instructions; 3. Select master thread for each group using exec mask; 4. Collect partial sum in LDS for each group via DS_ADD-like instructions 5. Utilize global atomic operation for each group by master thread As far as described algoritm requires additional memory, size calculating should be done ion the target dependent code. For this purpose `SetSpecificAllocationSize` pass was introduced, it sets `allocation.size` attribute for required operation. This attribute has highest priority during LDS size calculation. Signed-off-by: Ilya Veselov <iveselov.nn@gmail.com>
- Loading branch information
Showing
10 changed files
with
414 additions
and
23 deletions.
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
Oops, something went wrong.