CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 06:32:06 GMT
content-type: text/html; charset=utf-8
cache-control: no-cache
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
referrer-policy: no-referrer-when-downgrade
server-timing: pull_request_layout-fragment;desc="pull_request_layout fragment";dur=455.30727,conversation_content-fragment;desc="conversation_content fragment";dur=749.077543,conversation_sidebar-fragment;desc="conversation_sidebar fragment";dur=375.825073,nginx;desc="NGINX";dur=1.611012,glb;desc="GLB";dur=102.313983
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: a2eb102
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=1L%2B%2FxSN2%2BnhYicldjLX%2Fim0CRUOwR8ZoCxw8HbXkGW3LMltfC2Lcd%2BeUcIyRmEmqyCPF0C5RziqVdRONJbJhyrbhNy3nqnxvlvTVs5vNitid8J1gyhGH4LU6MnU8QDThiPUFFe1Qbgkf3poCIAR%2FYN9bNcvFU0zNi8LQHPmjC3blQy8ulyXN%2Frh1hmv5GSdQIOrU5aFzUzTi47M5207jP6t16oK%2FVyIXe8onDDaiImYvrx8jJKMhdwW44jsSN6y22bw0iTPSKpDhlU1GLi2EKg%3D%3D--4eSdZZBhm9LX9j9%2B--szesrPRYpcidXF7z0eP4hQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1064173470.1753425125; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 06:32:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 06:32:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 970A:17B6C0:36D9E1:44C781:688324E5
[Dy2St][PIR] Run `test_break_continue` in sequential run mode by SigureMo · Pull Request #63287 · PaddlePaddle/Paddle · GitHub
[Dy2St][PIR] Run
[Dy2St][PIR] Run
SigureMo
deleted the
dy2st/enable-test-break-continue-in-sequential-run-mode
branch
April 8, 2024 06:12
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Dy2St][PIR] Run test_break_continue
in sequential run mode
#63287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SigureMo
merged 1 commit into
PaddlePaddle:develop
from
cattidea:dy2st/enable-test-break-continue-in-sequential-run-mode
Apr 8, 2024
Merged
[Dy2St][PIR] Run test_break_continue
in sequential run mode
#63287
SigureMo
merged 1 commit into
PaddlePaddle:develop
from
cattidea:dy2st/enable-test-break-continue-in-sequential-run-mode
Apr 8, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
你的PR提交成功,感谢你对开源项目的贡献! |
gouzil
approved these changes
Apr 7, 2024
co63oc
pushed a commit
to co63oc/Paddle
that referenced
this pull request
Apr 9, 2024
co63oc
pushed a commit
to co63oc/Paddle
that referenced
this pull request
Apr 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
You can’t perform that action at this time.
PR Category
Execute Infrastructure
PR Types
Others
Description
开启
test_break_continue
单测 caseTestOptimBreakInWhile
PIR 模式,需要在FLAGS_new_executor_sequential_run
下运行非
FLAGS_new_executor_sequential_run
仍然跑不起来,问题分析见下面PCard-66972
问题分析
现象
删掉
FLAGS_new_executor_sequential_run
,运行下面命令获取完整 log完整 log 见 break-continue.log
有问题的代码为:
仅 CPU 可复现(好像 Linux ),表现为结果错误,预期结果为 15(
0..5
的累加),但实际结果是随机的,大多数情况是 >15 的通过在
x += i
前加 print 可以得到如下结果:预期应为
0 1 2 3 4 5
,但实际结果为0 1 2 4 5 6
(随机的,下次跑不一定是这个)可以发现实际 print 的 i 会随机为
i + 1
的结果该问题仅在默认的多线程跑会有问题,开启
FLAGS_new_executor_sequential_run=true
或者FLAGS_enable_pir_in_executor_trace_run=true
都没问题,因此猜测因为依赖分析没有分析出两者的依赖关系,导致i += 1
在x += i
之前执行lower 后的 program 如下(仅关键部分):
可以看到
%1
->%arg_1
,而i + 1
虽然是一个新的 Value%22
,但%22
->%17
->%10
之后作为 block 参数重新 share data 到%arg_1
,也就是这里(%22) = "scale(phi_kernel)" (%arg_1, %21)
实际上是(%arg_1) = "scale(phi_kernel)" (%arg_1, %21)
,类似一个 inplace 操作而实际上 Program 并没有表示这样一个关系,因此分析产生
%19
、%20
、%21
、%22
的那四行并没有分析出后两个 OP 依赖于前两个 OP 执行,因此多线程情况下,可能会反过来,这一点可以通过 log 印证:这里只分析出了前两个 OP(
0 1
)之间的依赖关系(0 -> 1
),和后两个 OP(2 3
)之间的依赖关系(2 -> 3
),但并没有分析出来后两个 OP 和前两个 OP 之间的依赖关系,因此就存在先执行23
(i += 1
) 后执行01
(x += i)的可能,进而导致结果出错