Skip to content

Conversation

@ooooo-create
Copy link
Contributor

PR Category

Execute Infrastructure

PR Types

New features

Description

Support dlink and dlink_libraries args for compatibility
对齐 torch 对 dlink 的支持情况,给 CUDAExtension 处理了 dlinkdlink_libraries 两个参数,搭配之前 #76532extra_compile_args 中的 nvcc_dlink 设置

和 Torch 一样只支持了 Linux 系统。
Torch 在 cpp_extension.py 支持了两者后端: ninjastandard distutils,在 ninja 后端支持了 dlink.
Paddle 在 distutils 的基础上,patch 了一些自定义方法,在 host 侧链接之前,进行 relocatable device code linking

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 8.33333% with 11 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@ecd6fa7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...thon/paddle/utils/cpp_extension/extension_utils.py 8.33% 11 Missing ⚠️

❌ Your patch status has failed because the patch coverage (8.33%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #76748   +/-   ##
==========================================
  Coverage           ?    8.33%           
==========================================
  Files              ?        1           
  Lines              ?       12           
  Branches           ?        0           
==========================================
  Hits               ?        1           
  Misses             ?       11           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paddle-bot
Copy link

paddle-bot bot commented Dec 3, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

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.

3 participants