Port sglang/sgl-kernel/tests to sgl-kernel-xpu/tests with device-only changes#119
Port sglang/sgl-kernel/tests to sgl-kernel-xpu/tests with device-only changes#119
Conversation
…ection changes Co-authored-by: airMeng <39229107+airMeng@users.noreply.github.com>
… UnboundLocalError bugs Co-authored-by: airMeng <39229107+airMeng@users.noreply.github.com>
Co-authored-by: airMeng <39229107+airMeng@users.noreply.github.com>
| sm_counts = get_sm_available(0) | ||
| stream_group = create_greenctx_stream_by_value(sm_counts // 2, sm_counts // 2, 0) | ||
| with torch.Stream(stream_group[0]): | ||
| with torch.cuda.stream(stream_group[0]): |
There was a problem hiding this comment.
@copilot check again, you are doing exactly what is opposite the command
There was a problem hiding this comment.
You're right — my previous commits incorrectly re-ported from upstream, which reverted correct device-agnostic conversions like torch.Stream() back to torch.cuda.stream(). Reverted all test files to the original ut_port state in 8f3e4ab.
Co-authored-by: airMeng <39229107+airMeng@users.noreply.github.com>
After the revert in 8f3e4ab, #111 currently has zero diff against |
No, PR #111 ( Non-device changes in modified files:
Structural changes:
|
ut_portbranch stateThe previous commits incorrectly re-ported tests from upstream, which reverted correct device-agnostic conversions (e.g.,
torch.Stream()back totorch.cuda.stream()). All test files are now restored to their originalut_portstate which already had the correct device auto-detection changes applied.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.