-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta: Add meta-ops for workgraph emulation.
Details of implementation strategy is explained in docs/workgraphs.md. Signed-off-by: Hans-Kristian Arntzen <[email protected]>
- Loading branch information
1 parent
486b6c4
commit fe76abb
Showing
8 changed files
with
809 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef CS_WORKGRAPH_DATA_STRUCTURES_H_ | ||
#define CS_WORKGRAPH_DATA_STRUCTURES_H_ | ||
|
||
struct NodeCounts | ||
{ | ||
uint fused; | ||
uint total; | ||
}; | ||
|
||
// 64 bytes per node, nicely aligns to a cache line. | ||
struct IndirectCommands | ||
{ | ||
uvec3 primary_execute; | ||
uint primary_linear_offset; // Read by node as input metadata. | ||
uvec3 secondary_execute; | ||
uint secondary_linear_offset; // Read by node as input metadata. | ||
uvec3 expander_execute; | ||
uint end_elements; // Read by node as input metadata in coalesce / thread mode. | ||
uint linear_offset_atomic; // Used by expander to write unrolled data. | ||
uint total_fused_elements; | ||
uint expander_workgroup_counter; // Used by payload exander. | ||
uint expander_total_groups; // Used by payload expander. | ||
}; | ||
|
||
#endif | ||
|
Oops, something went wrong.