-
Notifications
You must be signed in to change notification settings - Fork 730
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
[FPGA][SYCL] Add support for memory attributes on device_global variables #12785
Conversation
…bles Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Thanks @premanandrao for reviews and feedbacks! |
Okay, I am fine if that is the case. We just need to make sure that only the exact restrictions are called for each attribute.
Sounds good. I will review again after the restriction difference is fixed. |
@premanandrao, I have updated patch to fix restriction difference (a314482). Does this address your concerns? The new commit makes sure that only the exact restrictions are called for each attribute with addition of non-const device global. |
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 @smanna12
Thank you @premanandrao for the reviews! |
latest commit was just format fixes (4a4a016). @intel/llvm-gatekeepers, This PR is ready. Could you please merge this PR? This feature is very important for FPGA team. |
…evice compilation (#12930) #12785 added support for non-const device_global variables on all FPGA memory attributes. FPGA memory attributes should only work for device codes. They should have no effect on host code. This patch fixes bug where we emitted error when attributes are applied to device_globals variables for host compilation. --------- Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Currently we allow FPGA memory attributes on const variables. This patch relaxes the restriction that permits the attributes when applied on non-const device_global variables and updates the error message to properly convey which types of variables are allowed to have attributes. Also this patch relaxes the restriction that permits the private_copies attribute when applied on const variables. Previously we had restriction that the private_copies attribute would work with local non-const variables only.