PaddlePaddle / PaddlePaddle/FastDeploy

【源码编译错误】nvcc error : 'cudafe++' died due to signal 9 (Kill signal)

Open
#4,136 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

环境:
类别 具体配置
操作系统 Ubuntu 24.04
Python 3.12
CUDA 12.6
GPU RTX 4090(24GB 显存,1 张)
CPU 16 vCPU,Intel(R) Xeon(R) Platinum 8352V @ 2.10GHz
内存 64GB

问题描述

我在linux中源码编译gpu版的fastdeploy,遇到如下错误:

[2025-09-16 19:22:33,441] [    INFO] spawn.py:38 - /usr/local/cuda/bin/nvcc -I/root/miniconda3/lib/python3.12/site-packages/paddle/include -I/root/miniconda3/lib/python3.12/site-packages/paddle/include/third_party -I/root/miniconda3/lib/python3.12/site-packages/paddle/include/paddle/phi/api/include/compat -I/root/miniconda3/lib/python3.12/site-packages/paddle/include/paddle/phi/api/include/compat/torch/csrc/api/include -I/usr/local/cuda/include -I/root/miniconda3/include/python3.12 -I/root/miniconda3/include/python3.12 -c /root/workspace/FastDeploy/custom_ops/gpu_ops/cutlass_kernels/fp8_gemm_fused/autogen/launch_gemm_kernel_block128x128x64_warp128x32x64_mma16x8x32_stage7.cu -o /root/workspace/FastDeploy/custom_ops/build/fastdeploy_ops/lib.linux-x86_64-cpython-312/launch_gemm_kernel_block128x128x64_warp128x32x64_mma16x8x32_stage7.cu.o -DPADDLE_WITH_CUDA -DEIGEN_USE_GPU -ccbin cc -Xcompiler -fPIC --expt-relaxed-constexpr -DNVCC -gencode arch=compute_89,code=sm_89 -gencode arch=compute_86,code=sm_86 -DPADDLE_DEV -DPADDLE_ON_INFERENCE -DPy_LIMITED_API=0x03090000 -Igpu_ops/cutlass_kernels -Ithird_party/cutlass/include -Ithird_party/cutlass/tools/util/include -Igpu_ops/fp8_gemm_with_cutlass -Igpu_ops -Ithird_party/nlohmann_json/include -DENABLE_SCALED_MM_C2X=1 -Igpu_ops/cutlass_kernels/w8a8 -DENABLE_BF16 -Igpu_ops/moe -DENABLE_FP8 -Igpu_ops/cutlass_kernels/fp8_gemm_fused/autogen -w -DPADDLE_WITH_CUSTOM_KERNEL -DPADDLE_EXTENSION_NAME=fastdeploy_ops -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++17
nvcc error   : 'cudafe++' died due to signal 9 (Kill signal)

我的指令如下:

python3 -m pip install paddlepaddle-gpu==3.2.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/

build.sh 1 python false "[86,89]"

我想请问一下是否是内存不足的问题?如果是的话,应该如何设置呢?


一些尝试
  1. 安装ccache无用
  2. 按如下设置也无用
export MAX_JOBS=1
export OMP_NUM_THREADS=1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with build.sh and reproduce the failing nvcc command for the generated .cu file under custom_ops/gpu_ops/cutlass_kernels/fp8_gemm_fused/autogen. Check the build output and system diagnostics to determine why cudafe++ receives signal 9, then document a confirmed workaround or the missing build configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.