-
Notifications
You must be signed in to change notification settings - Fork 21
[SYCL][XOCC] Add multi-file and split compilation support. #102
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
0dd70ab to
9765891
Compare
keryell
left a comment
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 for fixing this!
Just a few nitpicks...
| if (P.second->getTriple().isXilinxFPGA()) | ||
| return false; | ||
|
|
||
| // Right off the bat, assume the presense of -foffload-static-lib means |
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.
| // Right off the bat, assume the presense of -foffload-static-lib means | |
| // Right off the bat, assume the presence of -foffload-static-lib means |
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.
This code is from intel so i don't think modifying it even a typo is good idea because it increases likelihood of conflicts.
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.
OK. I made intel/llvm#3079 for this
| cl::sycl::range<1> NumOfWorkItems{Buffer.get_count()}; | ||
| Queue.submit([&](cl::sycl::handler &cgh) { | ||
| sycl::accessor Accessor(Buffer, cgh, sycl::write_only); | ||
| cgh.single_task<class Test1>([=]() { Accessor[0] = 0; }); |
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.
| cgh.single_task<class Test1>([=]() { Accessor[0] = 0; }); | |
| cgh.single_task<class Test1>([=] { Accessor[0] = 0; }); |
| Queue.submit([&](cl::sycl::handler &cgh) { | ||
| sycl::accessor Accessor(Buffer, cgh, sycl::write_only); | ||
| cgh.single_task<class Test2>( | ||
| [=]() { Accessor[0] = 0; }); |
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.
| [=]() { Accessor[0] = 0; }); | |
| [=] { Accessor[0] = 0; }); |
| static_cast<const toolchains::XOCCToolChain &>(getToolChain()); | ||
| InputInfoList SyclXoccArg = Inputs; | ||
|
|
||
| if (Inputs.size() > 1) { |
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.
Add a comment explaining the high-level behaviour
9765891 to
e6be9a0
Compare
|
@Ralender what is the status of this PR? |
|
I think it should be good to merge. unless you have any objections |
No description provided.