Skip to content
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

Refactor stochastic rounding state in TBE #2312

Closed
wants to merge 1 commit into from

Conversation

sryap
Copy link
Contributor

@sryap sryap commented Feb 6, 2024

Summary:
This diff addresses an issue with StochasticRoundingRNGState where
it was previously allocated inside a function but its address was
accessed after the function had returned, leading to illegal memory
access. To address this, the allocation of
StochasticRoundingRNGState has been moved outside of the function to
ensure that it remains alive for all accesses, preventing any illegal
memory access issues.

Differential Revision: D53462989

Copy link

netlify bot commented Feb 6, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit f9eb38d
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/65c54ac8c7e5f10008deec79
😎 Deploy Preview https://deploy-preview-2312--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53462989

sryap added a commit to sryap/FBGEMM that referenced this pull request Feb 6, 2024
Summary:

This diff addresses an issue with `StochasticRoundingRNGState` where
it was previously allocated inside a function but its address was
accessed after the function had returned, leading to illegal memory
access.  To address this, the allocation of
`StochasticRoundingRNGState` has been moved outside of the function to
ensure that it remains alive for all accesses, preventing any illegal
memory access issues.

Differential Revision: D53462989
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53462989

sryap added a commit to sryap/FBGEMM that referenced this pull request Feb 7, 2024
Summary:
Pull Request resolved: pytorch#2312

This diff addresses an issue with `StochasticRoundingRNGState` where
it was previously allocated inside a function but its address was
accessed after the function had returned, leading to illegal memory
access.  To address this, the allocation of
`StochasticRoundingRNGState` has been moved outside of the function to
ensure that it remains alive for all accesses, preventing any illegal
memory access issues.

Differential Revision: D53462989

fbshipit-source-id: 6dafe5c2889e7723d044568383df1042ff91af79
sryap added a commit to sryap/FBGEMM that referenced this pull request Feb 7, 2024
Summary:

This diff addresses an issue with `StochasticRoundingRNGState` where
it was previously allocated inside a function but its address was
accessed after the function had returned, leading to illegal memory
access.  To address this, the allocation of
`StochasticRoundingRNGState` has been moved outside of the function to
ensure that it remains alive for all accesses, preventing any illegal
memory access issues.

Differential Revision: D53462989
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53462989

sryap added a commit to sryap/FBGEMM that referenced this pull request Feb 7, 2024
Summary:

This diff addresses an issue with `StochasticRoundingRNGState` where
it was previously allocated inside a function but its address was
accessed after the function had returned, leading to illegal memory
access.  To address this, the allocation of
`StochasticRoundingRNGState` has been moved outside of the function to
ensure that it remains alive for all accesses, preventing any illegal
memory access issues.

Differential Revision: D53462989
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53462989

Summary:

This diff addresses an issue with `StochasticRoundingRNGState` where
it was previously allocated inside a function but its address was
accessed after the function had returned, leading to illegal memory
access.  To address this, the allocation of
`StochasticRoundingRNGState` has been moved outside of the function to
ensure that it remains alive for all accesses, preventing any illegal
memory access issues.

Reviewed By: jspark1105

Differential Revision: D53462989
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53462989

sryap added a commit to sryap/FBGEMM that referenced this pull request Feb 8, 2024
Summary:

This diff addresses an issue with `StochasticRoundingRNGState` where
it was previously allocated inside a function but its address was
accessed after the function had returned, leading to illegal memory
access.  To address this, the allocation of
`StochasticRoundingRNGState` has been moved outside of the function to
ensure that it remains alive for all accesses, preventing any illegal
memory access issues.

Reviewed By: jspark1105

Differential Revision: D53462989
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8664c84.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants