Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.

Fix Lingering INT32 Overflow (#1324) - #1324

Closed
pklund wants to merge 1 commit into
pytorch:mainfrom
pklund:export-D97592032
Closed

pklund wants to merge 1 commit into
pytorch:mainfrom
pklund:export-D97592032

Conversation

@pklund

@pklund pklund commented Mar 24, 2026 •

Copy link
Copy Markdown

Summary:

Upcast several values that hold byte numbers from INT32 to INT64 to prevent numerical overflow. Overflow issues became noticeable after D95426862 added additional type guards.

Reviewed By: scotts

Differential Revision: D97592032

@meta-cla meta-cla Bot added the cla signed label Mar 24, 2026
@meta-codesync

meta-codesync Bot commented Mar 24, 2026

Copy link
Copy Markdown

@pklund has exported this pull request. If you are a Meta employee, you can view the originating Diff in D97592032.

Summary:

Upcast several values that hold byte numbers from INT32 to INT64 to prevent numerical overflow. Overflow issues became noticeable after D95426862 added additional type guards.

Reviewed By: scotts

Differential Revision: D97592032
@meta-codesync meta-codesync Bot changed the title Fix Lingering INT32 Overflow Fix Lingering INT32 Overflow (#1324) Mar 24, 2026
@pklund
pklund force-pushed the export-D97592032 branch from 293846e to 14a69ba Compare March 24, 2026 18:31
@meta-codesync meta-codesync Bot closed this in 3a61657 Mar 24, 2026
@meta-codesync

meta-codesync Bot commented Mar 24, 2026

Copy link
Copy Markdown

This pull request has been merged in 3a61657.

pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Apr 2, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: #178918
Approved by: https://github.com/divyanshk
scotts added a commit to scotts/pytorch that referenced this pull request Apr 3, 2026
Includes the following commits:

- Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0
- Revert D97166802 (pytorch/kineto#1326) 9d7373b
- Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657
- Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085
- Expose occupany limiting factors (pytorch/kineto#1322) e19dd92

Authored with Claude.
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Apr 3, 2026
Includes the following commits:

- Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0
- Revert D97166802 (pytorch/kineto#1326) 9d7373b
- Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657
- Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085
- Expose occupany limiting factors (pytorch/kineto#1322) e19dd92

Authored with Claude.
Pull Request resolved: #179244
Approved by: https://github.com/malfet
weifengpy pushed a commit to pytorch/pytorch that referenced this pull request Apr 7, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: #178918
Approved by: https://github.com/divyanshk
weifengpy pushed a commit to pytorch/pytorch that referenced this pull request Apr 7, 2026
Includes the following commits:

- Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0
- Revert D97166802 (pytorch/kineto#1326) 9d7373b
- Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657
- Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085
- Expose occupany limiting factors (pytorch/kineto#1322) e19dd92

Authored with Claude.
Pull Request resolved: #179244
Approved by: https://github.com/malfet
nklshy-aws pushed a commit to nklshy-aws/pytorch that referenced this pull request Apr 7, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: pytorch#178918
Approved by: https://github.com/divyanshk
nklshy-aws pushed a commit to nklshy-aws/pytorch that referenced this pull request Apr 7, 2026
Includes the following commits:

- Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0
- Revert D97166802 (pytorch/kineto#1326) 9d7373b
- Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657
- Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085
- Expose occupany limiting factors (pytorch/kineto#1322) e19dd92

Authored with Claude.
Pull Request resolved: pytorch#179244
Approved by: https://github.com/malfet
pytorch-bot Bot pushed a commit to pytorch/pytorch that referenced this pull request Apr 10, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: #178918
Approved by: https://github.com/divyanshk
pytorch-bot Bot pushed a commit to pytorch/pytorch that referenced this pull request Apr 10, 2026
Includes the following commits:

- Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0
- Revert D97166802 (pytorch/kineto#1326) 9d7373b
- Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657
- Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085
- Expose occupany limiting factors (pytorch/kineto#1322) e19dd92

Authored with Claude.
Pull Request resolved: #179244
Approved by: https://github.com/malfet
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: pytorch#178918
Approved by: https://github.com/divyanshk
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Includes the following commits:

- Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0
- Revert D97166802 (pytorch/kineto#1326) 9d7373b
- Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657
- Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085
- Expose occupany limiting factors (pytorch/kineto#1322) e19dd92

Authored with Claude.
Pull Request resolved: pytorch#179244
Approved by: https://github.com/malfet
ani300 pushed a commit to IBM/kineto-spyre that referenced this pull request Jul 28, 2026
Summary:
Pull Request resolved: pytorch/kineto#1324

Upcast several values that hold byte numbers from INT32 to INT64 to prevent numerical overflow. Overflow issues became noticeable after D95426862 added additional type guards.

Reviewed By: scotts

Differential Revision: D97592032

fbshipit-source-id: 0ecc0ad253507db5d73304eecd8d86744add8700
Signed-off-by: Antoni Viros i Martin <[email protected]>
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Includes the following commits:

* Expose occupany limiting factors (pytorch/kineto#1330)
* remove the rocprofiler early exit hack (pytorch/kineto#1329)
* Remove duplicate test ignore (pytorch/kineto#1328)
* Ensure that async doesn't loop while sync is active (pytorch/kineto#1327)
* Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323)
* Revert D97166802 (pytorch/kineto#1326)
* Fix Lingering INT32 Overflow (pytorch/kineto#1324)
* Re-enabled some hardcoded tests (pytorch/kineto#1321)
* Expose occupany limiting factors (pytorch/kineto#1322)

Authored with Claude.
Pull Request resolved: pytorch#178918
Approved by: https://github.com/divyanshk
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Includes the following commits:

- Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0
- Revert D97166802 (pytorch/kineto#1326) 9d7373b
- Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657
- Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085
- Expose occupany limiting factors (pytorch/kineto#1322) e19dd92

Authored with Claude.
Pull Request resolved: pytorch#179244
Approved by: https://github.com/malfet
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant