添加实现算子列表 #1069

Open
Yeuvoir wants to merge 2 commits from Yeuvoir/GPUCodeForces:feature/operator-checklist-auto-update into main
First-time contributor

fixes #10

本次实现了 README 首页的算子实现状态清单维护能力。

当前实现覆盖的场景:

  • 根据仓库内 S1 codes/ 中已经存在的 CUDA 实现目录,自动生成 README 中的算子状态清单。
  • 已被扫描到实现的算子会显示为 [x],并附带对应实现目录链接。
  • scripts/operator_targets.txt 作为待跟踪算子清单,后续新增待实现算子可以先写入该文件,README 会显示为未实现状态。
  • 运行 python scripts/update_operator_checklist.py --sync-targets 后,会重新扫描实现目录并更新 README。

当前实现的边界:

  • 现在的“已实现”以代码已经进入仓库的实现目录为准。
  • 它还没有直接接入选手平台或判题平台的 accepted 状态,因此不能代表“平台提交正确后实时自动更新”。

后续可以继续扩展:

  • 将脚本接入 CI,在 PR 合并或平台测试通过后自动运行并提交 README 更新。
  • 如果平台提供 accepted 结果 API / webhook,可以把数据源从 S1 codes/ 扫描升级为读取平台通过记录。
  • 后续也可以维护一个 accepted submissions 文件,只把测试通过并被确认的算子标记为 [x],避免把未审核代码误判为已实现。
fixes #10 本次实现了 README 首页的算子实现状态清单维护能力。 当前实现覆盖的场景: - 根据仓库内 `S1 codes/` 中已经存在的 CUDA 实现目录,自动生成 README 中的算子状态清单。 - 已被扫描到实现的算子会显示为 `[x]`,并附带对应实现目录链接。 - `scripts/operator_targets.txt` 作为待跟踪算子清单,后续新增待实现算子可以先写入该文件,README 会显示为未实现状态。 - 运行 `python scripts/update_operator_checklist.py --sync-targets` 后,会重新扫描实现目录并更新 README。 当前实现的边界: - 现在的“已实现”以代码已经进入仓库的实现目录为准。 - 它还没有直接接入选手平台或判题平台的 accepted 状态,因此不能代表“平台提交正确后实时自动更新”。 后续可以继续扩展: - 将脚本接入 CI,在 PR 合并或平台测试通过后自动运行并提交 README 更新。 - 如果平台提供 accepted 结果 API / webhook,可以把数据源从 `S1 codes/` 扫描升级为读取平台通过记录。 - 后续也可以维护一个 accepted submissions 文件,只把测试通过并被确认的算子标记为 `[x]`,避免把未审核代码误判为已实现。
Yeuvoir added 1 commit 2026-04-26 16:31:29 +08:00
Yeuvoir added 1 commit 2026-04-26 16:56:29 +08:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b Yeuvoir-feature/operator-checklist-auto-update main
git pull feature/operator-checklist-auto-update

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff Yeuvoir-feature/operator-checklist-auto-update
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ccf-ai-infra/GPUCodeForces#1069
No description provided.