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

nested dispatching of segment_csr on cpu/gpu #3881

Closed
wants to merge 1 commit into from

Conversation

jeetkanjani7
Copy link

@jeetkanjani7 jeetkanjani7 commented Mar 26, 2025

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/972

Updating the segment_sum_csr function (both CPU and GPU) to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Mar 26, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 9045b44
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67efc6b52c90c2000821df31
😎 Deploy Preview https://deploy-preview-3881--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.

@jeetkanjani7 jeetkanjani7 marked this pull request as draft March 26, 2025 00:05
@jeetkanjani7 jeetkanjani7 marked this pull request as ready for review March 26, 2025 01:06
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Mar 26, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

Differential Revision: D71663741
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

Differential Revision: D71663741
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

Differential Revision: D71663741
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

Differential Revision: D71663741
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

Differential Revision: D71663741
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 2, 2025
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul

Differential Revision: D71663741
@jeetkanjani7 jeetkanjani7 force-pushed the export-D71663741 branch 2 times, most recently from 349831c to 40ffdbf Compare April 4, 2025 11:37
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 4, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul, YazhiGao

Differential Revision: D71663741
jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 4, 2025
Summary:

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul, YazhiGao

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

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

jeetkanjani7 pushed a commit to jeetkanjani7/FBGEMM-1 that referenced this pull request Apr 4, 2025
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul, YazhiGao

Differential Revision: D71663741
Summary:
Pull Request resolved: pytorch#3881

X-link: facebookresearch/FBGEMM#972

Updating the segment_sum_csr function (both CPU and GPU) in predictor to accept arbitrary input types (int32_t or int64_t) for the offset. In cases where the offsets overflow 31 bits, casting to int32 will result in negative numbers, causing unintended behavior from the function.

Reviewed By: zhaozhul, YazhiGao

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 25f2aaa.

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