Skip to content

[64-bit] Int64 casting for UpSampleNearest3D#144865

Closed
jataylo wants to merge 12 commits intopytorch:mainfrom
jataylo:int64_upsample_3d
Closed

[64-bit] Int64 casting for UpSampleNearest3D#144865
jataylo wants to merge 12 commits intopytorch:mainfrom
jataylo:int64_upsample_3d

Conversation

@jataylo
Copy link
Collaborator

@jataylo jataylo commented Jan 15, 2025

Fixes #144855

Follows approach in #141923 to use int64 types to increase INT_MAX limits

@jataylo jataylo requested a review from malfet January 15, 2025 14:48
@pytorch-bot
Copy link

pytorch-bot bot commented Jan 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/144865

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit caa9547 with merge base a08f7f3 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: cuda release notes category label Jan 15, 2025
@jataylo jataylo changed the title Int64 casting for UpSampleNearest3d.cu [64-bit] Int64 casting for UpSampleNearest3D Jan 15, 2025
@Skylion007 Skylion007 requested a review from ngimel January 15, 2025 14:50
@jataylo jataylo added ciflow/trunk Trigger trunk jobs on your pull request ciflow/inductor ciflow/slow ciflow/rocm Trigger "default" config CI on ROCm labels Jan 16, 2025
@jataylo jataylo marked this pull request as ready for review January 16, 2025 13:05
Copy link
Collaborator

@eqy eqy left a comment

Choose a reason for hiding this comment

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

please add a corresponding test case

@jataylo
Copy link
Collaborator Author

jataylo commented Jan 16, 2025

please add a corresponding test case

@eqy Yeah good idea we can steal the one from #144855

@jataylo jataylo marked this pull request as draft January 22, 2025 10:07
@eqy
Copy link
Collaborator

eqy commented Jan 22, 2025

The allocation failures probably mean a largeTensorTest decorator is needed

@eqy
Copy link
Collaborator

eqy commented Jan 23, 2025

largeTensorTest might require specialization for device e.g., cpu, cuda in this case (and those thresholds might be different)

@jataylo
Copy link
Collaborator Author

jataylo commented Jan 27, 2025

I need to check why I'm seeing, not observed locally. Will try with run_test locally.

2025-01-27T11:21:59.9986991Z _______________________ TestTorch.test_int64_upsample3d ________________________
2025-01-27T11:21:59.9987289Z Traceback (most recent call last):
2025-01-27T11:21:59.9987753Z   File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 3128, in wrapper
2025-01-27T11:21:59.9988203Z     method(*args, **kwargs)
2025-01-27T11:21:59.9988644Z   File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1413, in only_fn
2025-01-27T11:21:59.9989121Z     if self.device_type != slf.device_type:
2025-01-27T11:21:59.9989431Z AttributeError: 'TestTorch' object has no attribute 'device_type'
2025-01-27T11:21:59.9989659Z 
2025-01-27T11:21:59.9989795Z To execute this test, run the following from the base repo dir:
2025-01-27T11:21:59.9990203Z     PYTORCH_TEST_WITH_ROCM=1 python test/test_torch.py TestTorch.test_int64_upsample3d
2025-01-27T11:21:59.9990463Z 
2025-01-27T11:21:59.9990632Z This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
2025-01-27T11:21:59.9991196Z - generated xml file: /var/lib/jenkins/pytorch/test/test-reports/python-pytest/test_torch/test_torch-0bdb3cd908408887.xml 
```-

@jataylo
Copy link
Collaborator Author

jataylo commented Jan 28, 2025

Looks good now just rebasing to get rid of unrelated failures

@jataylo
Copy link
Collaborator Author

jataylo commented Jan 28, 2025

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:43 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:43 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:44 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:44 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:44 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 28, 2025 15:46 Inactive
@jataylo jataylo marked this pull request as ready for review January 29, 2025 10:24
@jataylo jataylo requested a review from Skylion007 January 29, 2025 10:25
Copy link
Collaborator

@eqy eqy left a comment

Choose a reason for hiding this comment

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

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 29, 2025

+1

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

jataylo added a commit to jataylo/pytorch that referenced this pull request Jan 31, 2025
Fixes pytorch#144855

Follows approach in pytorch#141923 to use int64 types to increase INT_MAX limits
Pull Request resolved: pytorch#144865
Approved by: https://github.com/eqy

(cherry picked from commit 082fab0)
pruthvistony pushed a commit to ROCm/pytorch that referenced this pull request Jan 31, 2025
…orch#144865) (#1869)

Fixes pytorch#144855

Follows approach in pytorch#141923 to
use int64 types to increase INT_MAX limits Pull Request resolved:
pytorch#144865 Approved by:
https://github.com/eqy

(cherry picked from commit 082fab0)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Feb 19, 2025
…orch#144865) (#1869)

Fixes pytorch#144855

Follows approach in pytorch#141923 to
use int64 types to increase INT_MAX limits Pull Request resolved:
pytorch#144865 Approved by:
https://github.com/eqy

(cherry picked from commit 082fab0)
(cherry picked from commit 5d01868)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Feb 20, 2025
…orch#144865) (#1869)

Fixes pytorch#144855

Follows approach in pytorch#141923 to
use int64 types to increase INT_MAX limits Pull Request resolved:
pytorch#144865 Approved by:
https://github.com/eqy

(cherry picked from commit 082fab0)
(cherry picked from commit 5d01868)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/rocm Trigger "default" config CI on ROCm ciflow/slow ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: cuda release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RuntimeError: upsample_nearest3d only supports output tensors with less than INT_MAX elements

5 participants