Skip to content

Conversation

@SigureMo
Copy link
Member

@SigureMo SigureMo commented Sep 6, 2024

PR Category

Execute Infrastructure

PR Types

Devs

Description

eval frame 每个版本都需要单独适配,为免影响 Paddle 整体编译,添加宏 EVAL_FRAME_NOT_SUPPORTED_VERSION,以限制最大支持版本,以免每次版本升级都会编译挂在 eval frame

修改后 3.13 下 Paddle 可正常通过编译(M1 macOS 验证,没有在开发机验证),eval frame 会在后续适配 3.13

未来支持 nogil 可以参考 https://py-free-threading.github.io/porting/

Pcard-67164

@paddle-bot
Copy link

paddle-bot bot commented Sep 6, 2024

你的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.

@SigureMo SigureMo requested a review from gouzil September 7, 2024 07:49
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Sep 9, 2024
@PaddlePaddle PaddlePaddle unlocked this conversation Sep 9, 2024

#include <Python.h>

#define SOT_NOT_SUPPORTED_VERSION 0x030d0000
Copy link
Member

@gouzil gouzil Sep 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 这个改成SUPPORTED_VERSION是不是更好一点
  • 可以在这补充一个注释:修改test/dygraph_to_static/test_eval_frame.py文件

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改成SUPPORTED_VERSION是不是更好一点

最开始就这么写的,但是这个版本号 3.13.0 实际上就是没支持的,所以改成了 SOT_NOT_SUPPORTED_VERSION

可以在这补充一个注释:修改 test/dygraph_to_static/test_eval_frame.py 文件

喔,下个 PR 改一下

@SigureMo SigureMo merged commit 5cfccc4 into PaddlePaddle:develop Sep 9, 2024
@SigureMo SigureMo deleted the sot/disable-eval-frame-compilation-in-py313 branch September 9, 2024 11:37
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.

2 participants