Skip to content

[HeterPs] fix allocation #37476

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
merged 4 commits into from
Nov 29, 2021
Merged

Conversation

Thunderbrook
Copy link
Contributor

@Thunderbrook Thunderbrook commented Nov 23, 2021

PR types

Others

PR changes

Others

Describe

现在框架里很多op都有类似这种写法,申请临时显存,然后launch kernel出作用域,这里出作用域后临时显存会释放,这样kernel会访问到已释放的显存;在现有paddle场景下(不会多线程申请同一个卡上显存)不会出问题,psgpu场景是每个线程会访问其他卡上的显存,这样会出问题(两个线程写同一块显存),例如concat op
https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/math/concat_and_split.cu#L330

@paddle-bot-old
Copy link

paddle-bot-old bot commented Nov 23, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Thunderbrook Thunderbrook changed the title auc temp [HeterPs] fix allocation Nov 29, 2021
Copy link
Contributor

@danleifeng danleifeng left a comment

Choose a reason for hiding this comment

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

LGTM

@Thunderbrook Thunderbrook merged commit 27a5f52 into PaddlePaddle:develop Nov 29, 2021
Zjq9409 pushed a commit to Zjq9409/Paddle that referenced this pull request Dec 10, 2021
* auc temp

* cuballocator

* code format

* code format
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