Revert "Migrate Intel CPU cases to the test/registered." (#25044)

This commit is contained in:
Ma Mingfei
2026-05-12 13:32:47 +08:00
committed by GitHub
parent 1f985c50db
commit 71285335f7
28 changed files with 60 additions and 4979 deletions
-30
View File
@@ -1,30 +0,0 @@
import re
import unittest
import torch
kernel = torch.ops.sgl_kernel
from sglang.test.ci.ci_register import register_cpu_ci
from sglang.test.test_utils import CustomTestCase
register_cpu_ci(est_time=10, suite="stage-b-test-cpu")
class TestBinding(CustomTestCase):
def test_binding(self):
start_id = 1
n_cpu = 6
expected_cores = list(map(str, range(start_id, start_id + n_cpu)))
cpu_ids = ",".join(expected_cores)
output = kernel.init_cpu_threads_env(cpu_ids)
bindings = re.findall(r"OMP tid: \d+, core (\d+)", output)
self.assertEqual(len(bindings), n_cpu)
self.assertEqual(bindings, expected_cores)
if __name__ == "__main__":
unittest.main()