-
Notifications
You must be signed in to change notification settings - Fork 30
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: Alternative solution to avoid runtime error of launching kernel on xpu:1 when que… #769
Conversation
…rying SYCL kernel bundle ahead Signed-off-by: Feng Yuan <[email protected]>
@fengyuan14 , by the way, please give some detailed information here. |
auto kbundle = ::sycl::get_kernel_bundle<::sycl::bundle_state::executable>( | ||
ctx, {dev}, {kid}); |
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.
@fengyuan14 , could you help submit a GitHub issue to github.com/intel/llvm and then add some comments here to link the issue to be submitted?
Overall, LGTM.
- name: Run XPU OP Examples | ||
if: contains(inputs.ut, 'op_example') || github.event_name == 'schedule' | ||
- name: Run XPU OP Regressions test | ||
if: contains(inputs.ut, 'op_regression') || github.event_name == 'schedule' |
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.
Where are those test case come from? From previously example?
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.
Yes, Just renaming them.
|
||
class TestOperationOnDevice1(TestCase): | ||
def test_sum_on_device1(self, dtype=torch.float): | ||
if torch.xpu.device_count() >= 2: |
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.
For single card node, this test will be skipped by default, right?
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.
Yes.
Signed-off-by: Feng Yuan <[email protected]>
Co-authored-by: Wang, Chuanqi <[email protected]>
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. CC: @RUIJIEZHONG66166 @mengfei25 to aware this UT structure change
Done |
…rying SYCL kernel bundle ahead
The kernel won't be built for devices except for the first device. Launching kernel on devices except for the first device will raise runtime error. Here is an alternative as a temporary solution to provide an extra hint to SYCL runtime. intel/llvm#15127