Open
ATK搬运工 #2
Simple_Bright&ManAdd on  Feb 11
Simple_Bright&Man
Simple_Bright&ManCollaborators
Feb 11 Create

cd /home/t00953803/projects/DeepEP

export SHMEM_ROOT="PWD/third−party/shmem/install/shmem"exportLDLIBRARYPATH="PWD/third-party/shmem/install/shmem" export LD_LIBRARY_PATH="SHMEM_ROOT/lib:{CONDA_PREFIX:+CONDA_PREFIX/lib:}${LD_LIBRARY_PATH:-}"
export ASCEND_RT_VISIBLE_DEVICES=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
export DEEPEP_SHMEM_ENDPOINT=tcp://127.0.0.1:26733

python tests/elastic/test_ep_low_latency.py
--num-processes 16 --num-nodes 1
--master-addr 127.0.0.1 --master-port 29654
--shmem-ip-port "$DEEPEP_SHMEM_ENDPOINT"
--num-tokens 96
--hidden 7168 --num-topk 6 --num-experts 256
--dtype bf16 --do-cpu-sync 0
--num-bytes 8589934592
--dispatch-only
--warmup 5 --num-iters 20 --perf-tail 0
--output-dir /tmp/deepep-ll-dispatch

===========
cd /home/t00953803/projects/DeepEP

export ASCEND_RT_VISIBLE_DEVICES=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
export DEEPEP_SHMEM_ENDPOINT=tcp://127.0.0.1:26734

python -u tests/elastic/test_ep_low_latency.py
--num-processes 16 --num-nodes 1
--master-addr 127.0.0.1 --master-port 29655
--shmem-ip-port "$DEEPEP_SHMEM_ENDPOINT"
--num-tokens 96
--hidden 7168 --num-topk 6 --num-experts 256
--dtype bf16 --do-cpu-sync 0
--num-bytes 8589934592
--group-backend gloo
--dispatch-only --skip-perf-test
--trace-ops --num-cpu-timeout-secs 60
--output-dir /tmp/deepep-ll-diag

likedislike
Simple_Bright&Man
Simple_Bright&ManCollaborators
Feb 11 Comments:

export PYTHON="(python−c′importsys;print(sys.executable)′)"exportSHMEMROOT="(python -c 'import sys; print(sys.executable)')" export SHMEM_ROOT="(realpath "{SHMEM_ROOT:-PWD/third-party/shmem/install/shmem}")"
export LD_LIBRARY_PATH="{CONDA_PREFIX:+CONDA_PREFIX/lib:}SHMEMROOT/lib:SHMEM_ROOT/lib:{LD_LIBRARY_PATH:-}"

DEEPEP_BUILD_MEGAMOE=ON DEEPEP_MEGAMOE_TIMER=OFF
bash experiments/megamoe/scripts/build.sh

export ASCEND_RT_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
export DEEPEP_SHMEM_ENDPOINT=tcp://127.0.0.1:26733

run_dir="PWD/benchmark-runs/situ_ubfix_(date +%Y%m%d_%H%M%S)_$$"
mkdir -p "rundir"cd"run_dir" cd "run_dir"

"$PYTHON" -m deep_ep_experimental.megamoe.golden
--config smoke_situglu --bs-values 96,255,256,257,4096
--ep-size 8 --ranks 0-7 --input bf16 --routing random

"$PYTHON" -m torch.distributed.run --standalone --nproc-per-node 8
-m deep_ep_experimental.megamoe.benchmark
--config smoke_situglu --bs-values 96,255,256,257,4096
--mode accuracy --accuracy-mode triangle
--input bf16 --routing random --output-dir accuracy

likedislike
Simple_Bright&ManSimple_Bright&ManCollaborators
Feb 24 Modify description of issue
Simple_Bright&ManSimple_Bright&ManCollaborators
Jul 15 Modify description of issue
Simple_Bright&ManSimple_Bright&ManCollaborators
Jul 15 Modify description of issue
Simple_Bright&ManSimple_Bright&ManCollaborators
Jul 15 Modify description of issue
Simple_Bright&ManSimple_Bright&ManCollaborators
Oct 8 Modify description of issue
Simple_Bright&Man
Simple_Bright&ManCollaborators
Oct 8 Comments:

Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Processing ./.
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: deep_ep
Building wheel for deep_ep (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for deep_ep (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [187 lines of output]
Build summary:
> Sources: ['csrc/python_api.cpp']
> Includes: ['/home/t00953803/megamoe/DeepEP-Ascend/csrc', '/home/t00953803/megamoe/DeepEP-Ascend/deep_ep/include', '/home/t00953803/megamoe/DeepEP-Ascend/third-party/deep_jit/include', '/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/include', '/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/asc', '/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/asc/include', '/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu/include', '/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu/include/third_party/acl/inc', '/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/include', '/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/include/torch/csrc/api/include']
> Library dirs: ['/home/t00953803/canns/S930/cann-9.3.0/lib64', '/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu/lib', '/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/lib']
> Libraries: ['ascendcl', 'hccl', 'hcomm', 'torch_npu']
> CXX flags: ['-O3', '-g1', '-fPIC', '-std=c++20', '-Wno-deprecated-declarations', '-Wno-unused-variable', '-Wno-sign-compare', '-Wno-reorder', '-Wno-attributes']
> ASCEND_HOME_PATH: /home/t00953803/canns/S930/cann-9.3.0
> TORCH_NPU_DIR: /root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu

  running bdist_wheel
  running build
  running build_py
  copying deep_ep/__init__.py -> build/lib.linux-aarch64-cpython-312/deep_ep
  copying deep_ep/comm/barrier.py -> build/lib.linux-aarch64-cpython-312/deep_ep/comm
  copying deep_ep/comm/__init__.py -> build/lib.linux-aarch64-cpython-312/deep_ep/comm
  copying deep_ep/comm/stream.py -> build/lib.linux-aarch64-cpython-312/deep_ep/comm
  copying deep_ep/comm/handle.py -> build/lib.linux-aarch64-cpython-312/deep_ep/comm
  copying deep_ep/buffers/pp.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/buffers/ep.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/buffers/allocator.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/buffers/__init__.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/buffers/low_latency.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/buffers/bucket.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/buffers/base.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/buffers/engram.py -> build/lib.linux-aarch64-cpython-312/deep_ep/buffers
  copying deep_ep/utils/math.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/utils/__init__.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/utils/testing.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/utils/semantic.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/utils/envs.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/utils/gate.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/utils/refs.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/utils/event.py -> build/lib.linux-aarch64-cpython-312/deep_ep/utils
  copying deep_ep/include/deep_ep/comm/bucket.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/comm
  copying deep_ep/include/deep_ep/comm/barrier.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/comm
  copying deep_ep/include/deep_ep/comm/handle.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/comm
  copying deep_ep/include/deep_ep/common/compiled.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/common
  copying deep_ep/include/deep_ep/common/reduction.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/common
  copying deep_ep/include/deep_ep/common/utils.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/common
  copying deep_ep/include/deep_ep/common/exception.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/common
  copying deep_ep/include/deep_ep/common/bitset.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/common
  copying deep_ep/include/deep_ep/common/math.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/common
  copying deep_ep/include/deep_ep/common/simt.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/common
  copying deep_ep/include/deep_ep/impls/comm/barrier.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/comm
  copying deep_ep/include/deep_ep/impls/ep/combine_utils.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/ep
  copying deep_ep/include/deep_ep/impls/ep/dispatch_copy_epilogue.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/ep
  copying deep_ep/include/deep_ep/impls/ep/combine.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/ep
  copying deep_ep/include/deep_ep/impls/ep/dispatch.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/ep
  copying deep_ep/include/deep_ep/impls/ep/combine_reduce_epilogue.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/ep
  copying deep_ep/include/deep_ep/impls/low_latency/combine.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency
  copying deep_ep/include/deep_ep/impls/engram/engram_fetch.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/engram
  copying deep_ep/include/deep_ep/impls/pp/pp_send_recv.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/pp
  copying deep_ep/include/deep_ep/impls/bucket/all_gather/urma.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/bucket/all_gather
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/dispatch_server_dedup_kernel.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/launch.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device/dispatch_server_dedup_receive_packet.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device/dispatch_server_dedup_counts.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device/dispatch_dedup_mxfp8_quant.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device/dispatch_server_dedup_magic.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device/dispatch_server_dedup_receive_tasks.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device/dispatch_server_dedup_recv.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device/dispatch_server_dedup_send.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/device
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/ep_memory_server_dedup_data_layout.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/comm_args.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/ep_memory_server_dedup_input.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/ep_memory_server_dedup_count_layout.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/ep_memory_server_dedup_layout.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/dispatch_dedup_types.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/ep_memory_server_dedup_tiling.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common/ep_memory_server_dedup_protocol.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/dispatch/low_latency/common
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/ep_memory_server_dedup_combine_config.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/combine_server_dedup_partial.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/combine_layout.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/combine_server_dedup_source_aggregate.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/ep_memory_server_dedup_buffer_layout.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/combine_server_dedup_select.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/ep_memory_server_dedup_combine_tiling.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/launch.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/impls/low_latency/combine/low_latency/combine_server_dedup_kernel.h -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/impls/low_latency/combine/low_latency
  copying deep_ep/include/deep_ep/layout/bucket/workspace.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/layout/bucket
  copying deep_ep/include/deep_ep/layout/ep/token.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/layout/ep
  copying deep_ep/include/deep_ep/layout/ep/workspace.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/layout/ep
  copying deep_ep/include/deep_ep/layout/engram/workspace.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/layout/engram
  copying deep_ep/include/deep_ep/layout/pp/workspace.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/layout/pp
  copying deep_ep/include/deep_ep/layout/common/signals.hpp -> build/lib.linux-aarch64-cpython-312/deep_ep/include/deep_ep/layout/common
  running build_ext
  building 'deep_ep._C' extension
  [1/1] c++ -MMD -MF /home/t00953803/megamoe/DeepEP-Ascend/build/temp.linux-aarch64-cpython-312/csrc/python_api.o.d -pthread -B /root/miniforge3/envs/megamoe_zyx/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -fno-merge-constants -isystem /root/miniforge3/envs/megamoe_zyx/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/python-split_1788390918058/work=/usr/local/src/conda/python-split-3.12.14 -fPIC -O2 -fno-merge-constants -isystem /root/miniforge3/envs/megamoe_zyx/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/python-split_1788390918058/work=/usr/local/src/conda/python-split-3.12.14 -fPIC -I/home/t00953803/megamoe/DeepEP-Ascend/csrc -I/home/t00953803/megamoe/DeepEP-Ascend/deep_ep/include -I/home/t00953803/megamoe/DeepEP-Ascend/third-party/deep_jit/include -I/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/include -I/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/asc -I/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/asc/include -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu/include -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu/include/third_party/acl/inc -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/include -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/include/torch/csrc/api/include -I/root/miniforge3/envs/megamoe_zyx/include/python3.12 -c -c /home/t00953803/megamoe/DeepEP-Ascend/csrc/python_api.cpp -o /home/t00953803/megamoe/DeepEP-Ascend/build/temp.linux-aarch64-cpython-312/csrc/python_api.o -O3 -g1 -fPIC -std=c++20 -Wno-deprecated-declarations -Wno-unused-variable -Wno-sign-compare -Wno-reorder -Wno-attributes -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C
  FAILED: [code=1] /home/t00953803/megamoe/DeepEP-Ascend/build/temp.linux-aarch64-cpython-312/csrc/python_api.o
  c++ -MMD -MF /home/t00953803/megamoe/DeepEP-Ascend/build/temp.linux-aarch64-cpython-312/csrc/python_api.o.d -pthread -B /root/miniforge3/envs/megamoe_zyx/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -fno-merge-constants -isystem /root/miniforge3/envs/megamoe_zyx/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/python-split_1788390918058/work=/usr/local/src/conda/python-split-3.12.14 -fPIC -O2 -fno-merge-constants -isystem /root/miniforge3/envs/megamoe_zyx/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/python-split_1788390918058/work=/usr/local/src/conda/python-split-3.12.14 -fPIC -I/home/t00953803/megamoe/DeepEP-Ascend/csrc -I/home/t00953803/megamoe/DeepEP-Ascend/deep_ep/include -I/home/t00953803/megamoe/DeepEP-Ascend/third-party/deep_jit/include -I/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/include -I/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/asc -I/home/t00953803/canns/S930/cann-9.3.0/aarch64-linux/asc/include -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu/include -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch_npu/include/third_party/acl/inc -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/include -I/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/include/torch/csrc/api/include -I/root/miniforge3/envs/megamoe_zyx/include/python3.12 -c -c /home/t00953803/megamoe/DeepEP-Ascend/csrc/python_api.cpp -o /home/t00953803/megamoe/DeepEP-Ascend/build/temp.linux-aarch64-cpython-312/csrc/python_api.o -O3 -g1 -fPIC -std=c++20 -Wno-deprecated-declarations -Wno-unused-variable -Wno-sign-compare -Wno-reorder -Wno-attributes -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C
  In file included from /home/t00953803/megamoe/DeepEP-Ascend/third-party/deep_jit/include/deep_jit/backend/ascend/driver.hpp:5,
                   from /home/t00953803/megamoe/DeepEP-Ascend/third-party/deep_jit/include/deep_jit/backend/ascend/device.hpp:6,
                   from /home/t00953803/megamoe/DeepEP-Ascend/third-party/deep_jit/include/deep_jit/backend/ascend/backend.hpp:8,
                   from /home/t00953803/megamoe/DeepEP-Ascend/csrc/buffers/../kernels/comm/../../runtime/jit.hpp:10,
                   from /home/t00953803/megamoe/DeepEP-Ascend/csrc/buffers/../kernels/comm/api.hpp:12,
                   from /home/t00953803/megamoe/DeepEP-Ascend/csrc/buffers/base.hpp:7,
                   from /home/t00953803/megamoe/DeepEP-Ascend/csrc/python_api.cpp:5:
  /home/t00953803/megamoe/DeepEP-Ascend/third-party/deep_jit/include/deep_jit/utils/exception.hpp:3:10: fatal error: elfutils/libdwfl.h: No such file or directory
      3 | #include <elfutils/libdwfl.h>
        |          ^~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2893, in _run_ninja_build
      subprocess.run(
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/subprocess.py", line 571, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
      main()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
      return _build_backend().build_wheel(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/build_meta.py", line 435, in build_wheel
      return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/build_meta.py", line 423, in _build
      return self._build_with_temp_dir(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir
      self.run_setup()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/build_meta.py", line 512, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
      exec(code, locals())
    File "<string>", line 169, in <module>
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
      dist.run_commands()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
      self.run_command(cmd)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/dist.py", line 1104, in run_command
      super().run_command(command)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
      cmd_obj.run()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 370, in run
      self.run_command("build")
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
      self.distribution.run_command(command)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/dist.py", line 1104, in run_command
      super().run_command(command)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
      cmd_obj.run()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
      self.distribution.run_command(command)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/dist.py", line 1104, in run_command
      super().run_command(command)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
      cmd_obj.run()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 99, in run
      _build_ext.run(self)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
      self.build_extensions()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 1289, in build_extensions
      super().build_extensions()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 484, in build_extensions
      self._build_extensions_serial()
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 510, in _build_extensions_serial
      self.build_extension(ext)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 264, in build_extension
      _build_ext.build_extension(self, ext)
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 565, in build_extension
      objects = self.compiler.compile(
                ^^^^^^^^^^^^^^^^^^^^^^
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 1027, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2475, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/root/miniforge3/envs/megamoe_tpr/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2910, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [ERROR] 2026-10-09-10:45:20 (PID:1824273, Device:-1, RankID:-1) ERR99999 UNKNOWN applicaiton exception
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for deep_ep
Failed to build deep_ep
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> deep_ep

likedislike
Simple_Bright&ManSimple_Bright&ManCollaborators
Oct 8 Modify description of issue
12 event messages are collapsed here。 See more
Simple_Bright&ManSimple_Bright&ManCollaborators
Oct 13 Modify description of issue