-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core, runtime] Modify the launchers to support returning results. (#…
…2277) * Modify the launchers to support returning results. The launchers ceased really supporting dynamic kernel results at some point. This PR adds that functionality back into the mix. This support is added pervasively across the runtime library calls. Some notes: - Return values of static size continue to be supported as they were before. Specifically, these values are stored into the data buffer by the thunk adaptor so they can be returned, ultimately, to the original caller. - Return values of dynamic size follow exactly 1 of 2 possible calling conventions. The convention must be selected by the runtime layers. 1. Everything is running within a single process; i.e., this is a simulation. In this case, the kernel will create a span of data and that span will be returned to the original caller which will use it to construct the std::vector result object. 2. There are multiple processes and/or memory spaces involved. The result span will be appended to the original data packet and the new data packet will be returned as a new span by the runtime. The calling code will follow a similar process, but the data will be passed in the runtime in a pointer-free encoding. Make the cast more robust to sneak it past -Werror. Update another launchKernel override. Add some doxygen goop to try an evade CI issues. Fix the python builder errors. Signed-off-by: Eric Schweitz <[email protected]> * Sachin's fix. Signed-off-by: Eric Schweitz <[email protected]> * Fix build. Signed-off-by: Eric Schweitz <[email protected]> --------- Signed-off-by: Eric Schweitz <[email protected]>
- Loading branch information
1 parent
1a05616
commit 4fe3c4b
Showing
25 changed files
with
627 additions
and
349 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
Oops, something went wrong.