-
Notifications
You must be signed in to change notification settings - Fork 736
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
[SYCL] Do not internalize kernels when supporting dynamic linking #15307
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.
How do you select which tests to modify?
I privately enabled -fsycl-allow-device-dependencies by default and made a list of all new failures. These were the new failures fixed by this change. |
Are we planning to flip the default in future? If so, we need a comment near these new RUN lines that they should be dropped once that happens. And if not, I'm not sure this is a good strategy for the tests for a feature... |
Removed new RUN lines. Added new testcase in DeviceDependencies directory to exercise this fix. |
3ea898d
to
41879e1
Compare
}); | ||
Queue.wait(); | ||
bool PassA = checkUSM(usmPtr, Range, Result); | ||
std::cout << "Test 1a: " << (PassA ? "PASS" : "FAIL") << std::endl; |
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.
I don't think that our E2E tests should print anything in a positive scenario when they pass. The motivation for that is to reduce amount of I/O performed by tests and less data that has to be processed by lit
framework. Logs for passed tests are hidden anyways, so they are of no use in our CI.
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 TODO 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.
I would rather immediately drop (almost) all std::cout
lines, but I will leave that up to SYCL RT reviewers, who are code owners of the file
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. Thanks
0d4a00d
to
a1d3543
Compare
a1d3543
to
0a98fa1
Compare
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.
ModuleSplitter.cpp
and design doc changes LGTM
Signed-off-by: Lu, John <[email protected]>
Signed-off-by: Lu, John <[email protected]>
…a new testcase Signed-off-by: Lu, John <[email protected]>
Signed-off-by: Lu, John <[email protected]>
Signed-off-by: Lu, John <[email protected]>
Signed-off-by: Lu, John <[email protected]>
0a98fa1
to
4993992
Compare
Do not internalize kernels when supporting dynamic linking. Kernels must be visible so that host code can find them.