-
Notifications
You must be signed in to change notification settings - Fork 70
Support streaming kernel arguments and streaming kernel control #103
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
Merged
Conversation
This file contains hidden or 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
pcolberg
commented
Apr 14, 2022
pcolberg
commented
Apr 14, 2022
This was referenced Apr 21, 2022
63ec1b6
to
c9f7cfd
Compare
pcolberg
commented
May 4, 2022
pcolberg
commented
May 4, 2022
pcolberg
commented
May 5, 2022
51c1c30
to
f751c19
Compare
pcolberg
commented
May 6, 2022
cea4603
to
7d19aeb
Compare
pcolberg
added a commit
that referenced
this pull request
May 9, 2022
Each context maintains a pool of manually allocated invocation_wrapper objects, which so far contained only POD types. To support the use of non-POD types, e.g., std::vector, explicitly invoke the constructor using placement new after malloc, and the destructor before free. https://en.cppreference.com/w/cpp/language/new#Placement_new #103 (comment) Signed-off-by: Peter Colberg <peter.colberg@intel.com>
@anandhv Please see the slightly revised HAL MMD streaming kernel API. |
This PR still requires a slight modification to revert the auto-discovery string format back to the initial design, after which it will be ready for integration testing. |
Use valid value 0 for number of fields in streaming kernel info. Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Use valid value 0 for is_sycl_compile field in kernel section. Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Use valid value 0 for number of fields in streaming kernel argument info. Signed-off-by: Peter Colberg <peter.colberg@intel.com>
This parses new fields from the kernel section for streaming kernel control and from the kernel argument section for streaming kernels arguments, both for simulation of IP authoring components. The kernel section is augmented with a boolean field that specifies whether the kernel uses streaming control, i.e., whether the kernel is started using the streaming control start signal and queried for completion using the streaming control done signal via the simulator. The kernel argument section is augmented with a boolean field that specifies whether the kernel argument is a streaming argument, i.e., whether the argument is excluded from the kernel invocation image and directly streamed to the component via the simulator. If the kernel argument is streaming, a string field is added containing the full kernel argument name for the simulator. Signed-off-by: Peter Colberg <peter.colberg@intel.com>
This introduces a backwards-incompatible change in the HAL MMD API between runtime and simulator. Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
zibaiwan
approved these changes
Jun 23, 2022
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.
LGTM!
pcolberg
added a commit
that referenced
this pull request
Jul 6, 2022
For the case of streaming control kernels in IP authoring, when passing the start and done signals to the simulator MMD, instead of the kernel interface name, pass the full signal names from the auto-discovery string. Before this change, the runtime would pass the kernel name, e.g., `_ZTSZ4mainE4MyIP` without the prefix including the kernel index in case of multiple kernels. After this change, the runtime passes the full signal names, e.g., `k0_ZTSZ4mainE4MyIP_streaming_start` including the kernel index prefix and the streaming control signal suffix. This amends #103 Signed-off-by: Peter Colberg <peter.colberg@intel.com>
ericxu233
pushed a commit
to ericxu233/fpga-runtime-for-opencl
that referenced
this pull request
Jul 14, 2022
For the case of streaming control kernels in IP authoring, when passing the start and done signals to the simulator MMD, instead of the kernel interface name, pass the full signal names from the auto-discovery string. Before this change, the runtime would pass the kernel name, e.g., `_ZTSZ4mainE4MyIP` without the prefix including the kernel index in case of multiple kernels. After this change, the runtime passes the full signal names, e.g., `k0_ZTSZ4mainE4MyIP_streaming_start` including the kernel index prefix and the streaming control signal suffix. This amends intel#103 Signed-off-by: Peter Colberg <peter.colberg@intel.com>
pcolberg
added a commit
that referenced
this pull request
Aug 16, 2022
This resolves a failure to pass local-memory sizes and global-memory buffers as streaming arguments to a streaming kernel in simulation. This amends #103 Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This introduces a backwards-incompatible change in the HAL MMD API between runtime and simulator. The first commit defines the streaming kernel argument interface, while subsequent commits will contain the implementation.
@anandhv @bsyrowik @zibaiwan @sherry-yuan @intel-jisheng1