Skip to content
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

Clean up runtime code for simulation preprogram autodiscovery string load #308

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

sophimao
Copy link
Contributor

Unlike in hardware, in simulation the runtime is not able to obtain autodiscovery string
from the device ROM memory before reprogramming, therefore, global memory
configuration information is only available after device reprogram, during which the
autodiscovery string stored in the binary will be extracted. Currently the runtime does
some special handling for the simulation flow to amend for this behavioural difference.

With the newest change to our simulator, the autodiscovery string will be available for read
preprogram and the runtime can now obtain this information just as in the hardware flow
(except for some minor difference). Therefore, this change cleans up the runtime by removing
code for special handling of the simulation flow.

@sophimao sophimao force-pushed the sim-preload-string branch from f7af8f9 to b1bb911 Compare August 11, 2023 19:53
@sophimao sophimao changed the title Implement simulation pre-program autodiscovery string load Clean up runtime code for simulation preprogram autodiscovery string load Aug 11, 2023
@sophimao sophimao force-pushed the sim-preload-string branch from b1bb911 to 88d2dc8 Compare August 11, 2023 20:42
@sophimao sophimao requested a review from zibaiwan August 11, 2023 20:43
@sophimao sophimao marked this pull request as ready for review August 11, 2023 20:50
@sophimao sophimao force-pushed the sim-preload-string branch from 88d2dc8 to fb094d5 Compare August 14, 2023 13:16
@zibaiwan
Copy link
Contributor

Hi Sophie,

Thanks for the change. It looks good to me! I think you only ran SYCL tests for the change. Do you mind running a few opencl simulation tests to make sure your change doesn't break OpenCL flow?

@sophimao sophimao force-pushed the sim-preload-string branch from e7c9a66 to 2c974e7 Compare August 14, 2023 21:04
@sophimao sophimao requested a review from zibaiwan August 16, 2023 21:25
@zibaiwan zibaiwan self-requested a review August 16, 2023 21:42
zibaiwan
zibaiwan previously approved these changes Aug 16, 2023
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Sophie. Looks good to me!

…load

Newest simulation runtime allows the autodiscovery string to be read from
the same address as in hardware, therefore, this change removes special
handling for the simulation flow in the kernel interface initialization.
@sophimao
Copy link
Contributor Author

Resolved review comment and squashed commits, @zibaiwan would you mind reviewing again? Thanks!

@zibaiwan zibaiwan self-requested a review August 17, 2023 13:43
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Sophie! Looks good to me !

@sophimao sophimao merged commit d57cedc into intel:main Aug 17, 2023
@sophimao sophimao deleted the sim-preload-string branch August 17, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants