Skip to content

Commit ab69be4

Browse files
committed
update setup
1 parent 76b5898 commit ab69be4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

setup.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pathlib import Path
99
from shutil import which
1010

11-
import torch
1211
from packaging.version import Version
1312
from setuptools import Extension, setup
1413
from setuptools.command.build_ext import build_ext
@@ -255,16 +254,8 @@ def run(self):
255254
self.copy_file(file, dst_file)
256255

257256

258-
def _is_xpu() -> bool:
259-
has_xpu = torch.version.xpu is not None
260-
return (VLLM_TARGET_DEVICE == "xpu" and has_xpu)
261-
262-
263257
ext_modules = []
264258

265-
if _is_xpu():
266-
ext_modules.append(CMakeExtension(name="vllm_xpu_kernels._moe_C"))
267-
268259
if _build_custom_ops():
269260
ext_modules.append(CMakeExtension(name="vllm_xpu_kernels._C"))
270261
ext_modules.append(CMakeExtension(name="vllm_xpu_kernels._moe_C"))

0 commit comments

Comments
 (0)