-
Notifications
You must be signed in to change notification settings - Fork 71
Only pass buffer location property if in simulation environment #149
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
Conversation
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.
@ericxu233, you probably want to modify the code in acl_usm.cpp
instead, and only pass on the buffer location property when in simulation.
Yeah, this needs to be changed again. |
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.
Thanks @ericxu233, this looks better! I would suggest that you limit the check specifically to the buffer_location
property, corresponding to the title of the pull request. You can move the entire initialization of use_offline_only
into the if (mem_id) {
block on line 152-155, and only append the buffer location property when in simulation. That way the environment variable is only queried if the buffer location property was passed to clHostMemAllocINTEL()
etc.
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.
Thanks @ericxu233, this is good to go with the minor modifications detailed below 🙂
Perfect 🙂 For the FPGA runtime, we merge pull requests commit by commit, where each commit should be one self-contained change. Could you squash your commits into a single commit and include the above pull-request description in the commit message? You can use an interactive rebase to create the single commit:
In the editor, set the subsequent commits to
Save and exit the editor, then polish the commit message in the next editor that opens. Finally, force-push your branch with the new, single commit:
|
Thanks @ericxu233 for squashing. I have pushed a cosmetic revision fixing a typo in |
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.
Looks good, thanks Eric!
A board's MMD may not support passing property lists containing only a null terminator to aocl_mmd_host_alloc() or aocl_mmd_shared_alloc(). This resolves a regression introducted in intel#141 Signed-off-by: Peter Colberg <[email protected]>
cbc2d03
to
71fe1c4
Compare
This addresses #147.
We only pass in the buffer location property if the design is in simulation environment. Also, we have to query the offline mode since that information is not cached anywhere.