Skip to content

[Driver] Fix FPGAEmulationMode naming confusion #9537

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
merged 6 commits into from
May 31, 2023

Conversation

srividya-sundaram
Copy link
Contributor

@srividya-sundaram srividya-sundaram commented May 19, 2023

Fixes #4061

@srividya-sundaram srividya-sundaram marked this pull request as ready for review May 19, 2023 17:57
@srividya-sundaram srividya-sundaram requested a review from a team as a code owner May 19, 2023 17:57
@srividya-sundaram srividya-sundaram temporarily deployed to aws May 19, 2023 18:40 — with GitHub Actions Inactive
@srividya-sundaram
Copy link
Contributor Author

Failures seem related to sycl::multi_ptr and is un-related to changes in this PR.
Other PRs are also failing with the same errors related to sycl::multi_ptr.

@srividya-sundaram srividya-sundaram temporarily deployed to aws May 19, 2023 19:49 — with GitHub Actions Inactive
@srividya-sundaram srividya-sundaram temporarily deployed to aws May 25, 2023 22:31 — with GitHub Actions Inactive
@srividya-sundaram srividya-sundaram temporarily deployed to aws May 25, 2023 23:02 — with GitHub Actions Inactive
Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

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

This looks like a good opportunity to update around

SmallVector<std::pair<types::ID, bool>, 4> FPGAAOCTypes = {
to use the enum - what do you think?

@srividya-sundaram
Copy link
Contributor Author

This looks like a good opportunity to update around

SmallVector<std::pair<types::ID, bool>, 4> FPGAAOCTypes = {

to use the enum - what do you think?

Could you please elaborate?
IsFPGAEmulation is already invoking IsFPGAEmulationMode to get the enum value. Did you mean something else?

@mdtoguchi
Copy link
Contributor

This looks like a good opportunity to update around

SmallVector<std::pair<types::ID, bool>, 4> FPGAAOCTypes = {

to use the enum - what do you think?

Could you please elaborate? IsFPGAEmulation is already invoking IsFPGAEmulationMode to get the enum value. Did you mean something else?

In the array of pairs, you can see that the IsFPGAEmulation bool is just checking against the second value of the pair to see if the type is an emulation type or not. Instead of doing that, just do an IsFPGAHardware or IsFPGAEmulation kind of check. Just a suggestion though, wanted to see what your thoughts were.

@srividya-sundaram srividya-sundaram temporarily deployed to aws May 26, 2023 17:30 — with GitHub Actions Inactive
@srividya-sundaram srividya-sundaram temporarily deployed to aws May 26, 2023 18:07 — with GitHub Actions Inactive
Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

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

LGTM - thanks

@srividya-sundaram srividya-sundaram temporarily deployed to aws May 26, 2023 19:01 — with GitHub Actions Inactive
@srividya-sundaram srividya-sundaram temporarily deployed to aws May 26, 2023 19:33 — with GitHub Actions Inactive
@srividya-sundaram
Copy link
Contributor Author

@intel/llvm-gatekeepers Hi, this is ready for merge. Failures reported are un-related to changes in this PR.

@steffenlarsen
Copy link
Contributor

@intel/llvm-gatekeepers Hi, this is ready for merge. Failures reported are un-related to changes in this PR.

@srividya-sundaram - Please resolve the merge conflict.

@srividya-sundaram srividya-sundaram temporarily deployed to aws May 30, 2023 19:09 — with GitHub Actions Inactive
@srividya-sundaram srividya-sundaram temporarily deployed to aws May 31, 2023 00:49 — with GitHub Actions Inactive
@srividya-sundaram srividya-sundaram temporarily deployed to aws May 31, 2023 02:52 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen merged commit 399442d into intel:sycl May 31, 2023
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.

[Driver] FPGAEmulationMode name and use-cases are confusing
4 participants