Skip to content

refactor: simplify build to single so without CMakeLists.txt#113

Open
baoqiwen wants to merge 1 commit intoPaddlePaddle:mainfrom
baoqiwen:bqw_fa3_handle_v2
Open

refactor: simplify build to single so without CMakeLists.txt#113
baoqiwen wants to merge 1 commit intoPaddlePaddle:mainfrom
baoqiwen:bqw_fa3_handle_v2

Conversation

@baoqiwen
Copy link

@baoqiwen baoqiwen commented Mar 4, 2026

2步构建(cmake+setup.py)变成 1步(setup.py),删除CMakeLists.txt
2个so合并成1个so,不需要跨so边界调用,删除 C ABI wrapper

FLASHMASK_BUILD=fa4 → 纯 Python 安装,不 import paddle,不编译 CUDA
FLASHMASK_BUILD=fa3 → 只编译 FA3 CUDA 内核,排除 cute/ 包
FLASHMASK_BUILD=all → 默认,两个都装

@baoqiwen baoqiwen force-pushed the bqw_fa3_handle_v2 branch 3 times, most recently from cc388f2 to 5d4ffd1 Compare March 4, 2026 12:43
@baoqiwen baoqiwen force-pushed the bqw_fa3_handle_v2 branch from 5d4ffd1 to 6124f93 Compare March 4, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant