-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][FPGA][NFC] Minor update to fpga_lsu header templates #2375
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
Updating fpga_lsu.hpp templates to limit parameter scope and prevent conflicts when any defines that may use B or N.
@aditikum please provide a more verbose description of the patch. |
@s-kanaev Sure, the fpga_lsu.hpp file used the template parameter "N" originally. Users can have #define N as a parameter in the host & kernel code and this causes a conflict. To resolve this conflict, I'm changing the notation so all template parameters have an "_" before them. This should move it out of the users namespace. I've done this for both the "int N" and the "bool B" used in the lsu type templates. |
User's code could cause conflict for headers local variables, internal types. and function parameters, adding the prefix "_"
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.
The changes look good.
Crazy world... |
Used the locally scope GetValue as per the previous commit.
Updated pull request with a commit to update the remaining GetValue to the locally scoped GetValue. Should pass the checks now. |
@s-kanaev The files are updated now! |
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.
Approve for testing to start.
Updating fpga_lsu.hpp templates to limit parameter scope and prevent conflicts with any defines.