Skip to content

Commit 37db084

Browse files
authored
Remove COMPILE_CUSTOM_KERNELS env (#4864)
With more and more custom ops merged, disable `COMPILE_CUSTOM_KERNELS ` for vllm ascend seems useless now. Let's enable csrc compile by default. - vLLM version: v0.12.0 - vLLM main: vllm-project/vllm@ad32e3e Signed-off-by: wangxiyuan <[email protected]>
1 parent 3362be7 commit 37db084

File tree

18 files changed

+5
-146
lines changed

18 files changed

+5
-146
lines changed

.github/Dockerfile.buildwheel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
ARG PY_VERSION=3.11
1818
FROM quay.io/ascend/manylinux:8.3.rc2-910b-manylinux_2_28-py${PY_VERSION}
1919

20-
ARG COMPILE_CUSTOM_KERNELS=1
2120
ARG SOC_VERSION="ascend910b1"
2221

2322
# Define environments
2423
ENV DEBIAN_FRONTEND=noninteractive
25-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2624
ENV SOC_VERSION=$SOC_VERSION
2725
RUN yum update -y && \
2826
yum install -y python3-pip git vim wget net-tools gcc gcc-c++ make cmake numactl-devel && \

.github/Dockerfile.nightly.a2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ARG AIS_BENCH_URL="https://gitee.com/aisbench/benchmark.git"
2323

2424
# Define environments
2525
ENV DEBIAN_FRONTEND=noninteractive
26-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2726

2827
WORKDIR /workspace
2928

.github/Dockerfile.nightly.a3

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ARG AIS_BENCH_URL="https://gitee.com/aisbench/benchmark.git"
2323

2424
# Define environments
2525
ENV DEBIAN_FRONTEND=noninteractive
26-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2726

2827
WORKDIR /workspace
2928

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@
1818
FROM quay.io/ascend/cann:8.3.rc2-910b-ubuntu22.04-py3.11
1919

2020
ARG PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
21-
ARG COMPILE_CUSTOM_KERNELS=1
2221
ARG MOONCAKE_TAG="v0.3.7.post2"
2322
ARG SOC_VERSION="ascend910b1"
2423

2524
# Define environments
2625
ENV DEBIAN_FRONTEND=noninteractive
27-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2826
ENV SOC_VERSION=$SOC_VERSION
2927

3028
WORKDIR /workspace

Dockerfile.310p

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
FROM quay.io/ascend/cann:8.3.rc2-310p-ubuntu22.04-py3.11
1919

2020
ARG PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
21-
ARG COMPILE_CUSTOM_KERNELS=1
2221
ARG SOC_VERSION="ascend310p1"
2322

2423
# Define environments
2524
ENV DEBIAN_FRONTEND=noninteractive
26-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2725
ENV SOC_VERSION=$SOC_VERSION
2826

2927
RUN apt-get update -y && \

Dockerfile.310p.openEuler

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
FROM quay.io/ascend/cann:8.3.rc2-310p-openeuler24.03-py3.11
1919

2020
ARG PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
21-
ARG COMPILE_CUSTOM_KERNELS=1
2221
ARG SOC_VERSION="ascend310p1"
2322

24-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2523
ENV SOC_VERSION=$SOC_VERSION
2624

2725
RUN yum update -y && \

Dockerfile.a3

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@
1818
FROM quay.io/ascend/cann:8.3.rc2-a3-ubuntu22.04-py3.11
1919

2020
ARG PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
21-
ARG COMPILE_CUSTOM_KERNELS=1
2221
ARG MOONCAKE_TAG=v0.3.7.post2
2322
ARG SOC_VERSION="ascend910_9391"
2423

2524
COPY . /vllm-workspace/vllm-ascend/
2625
# Define environments
2726
ENV DEBIAN_FRONTEND=noninteractive
28-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2927
ENV SOC_VERSION=$SOC_VERSION
3028

3129
RUN pip config set global.index-url ${PIP_INDEX_URL}

Dockerfile.a3.openEuler

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
FROM quay.io/ascend/cann:8.3.rc2-a3-openeuler24.03-py3.11
1919

2020
ARG PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
21-
ARG COMPILE_CUSTOM_KERNELS=1
2221
ARG MOONCAKE_TAG="v0.3.7.post2"
2322
ARG SOC_VERSION="ascend910_9391"
2423

25-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2624
ENV SOC_VERSION=$SOC_VERSION
2725

2826
RUN pip config set global.index-url ${PIP_INDEX_URL}

Dockerfile.openEuler

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
FROM quay.io/ascend/cann:8.3.rc2-910b-openeuler24.03-py3.11
1919

2020
ARG PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
21-
ARG COMPILE_CUSTOM_KERNELS=1
2221
ARG MOONCAKE_TAG="v0.3.7.post2"
2322
ARG SOC_VERSION="ascend910b1"
2423

25-
ENV COMPILE_CUSTOM_KERNELS=${COMPILE_CUSTOM_KERNELS}
2624
ENV SOC_VERSION=$SOC_VERSION
2725

2826
RUN pip config set global.index-url ${PIP_INDEX_URL}

docs/source/installation.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,10 @@ pip install -v -e .
162162
cd ..
163163
```
164164

165-
vllm-ascend will build custom operators by default. If you don't want to build it, set `COMPILE_CUSTOM_KERNELS=0` environment to disable it.
166165
If you are building custom operators for Atlas A3, you should run `git submodule update --init --recursive` manually, or ensure your environment has Internet access.
167166
:::
168167

169168
```{note}
170-
If you are building from v0.7.3-dev and intend to use sleep mode feature, you should set `COMPILE_CUSTOM_KERNELS=1` manually.
171169
To build custom operators, gcc/g++ higher than 8 and c++ 17 or higher is required. If you're using `pip install -e .` and encounter a torch-npu version conflict, please install with `pip install --no-build-isolation -e .` to build on system env.
172170
If you encounter other problems during compiling, it is probably because unexpected compiler is being used, you may export `CXX_COMPILER` and `C_COMPILER` in environment to specify your g++ and gcc locations before compiling.
173171
```

0 commit comments

Comments
 (0)