Skip to content

[CI] Move CUDA-11.6 to Python-3.10 configuration#81233

Closed
malfet wants to merge 5 commits intomasterfrom
malfet/add-py310-config
Closed

[CI] Move CUDA-11.6 to Python-3.10 configuration#81233
malfet wants to merge 5 commits intomasterfrom
malfet/add-py310-config

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Jul 11, 2022

Second attempt of landing the change after #66530

Skip nan hashes comparison validation in jit/test_hash.py, as it behaves differently in 3.10 vs other pythons
Skip tensor_fx assert tests
Skip initializing uint8 tensors from negative values in TestScript.test_torch_tensor_as_tensor

Final step in closing #66424

@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jul 11, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit 023fbf5 (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@malfet malfet force-pushed the malfet/add-py310-config branch 2 times, most recently from c7e0b81 to f55061a Compare July 11, 2022 15:15
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Jul 11, 2022

Will have to disable most of test_fx for py-3.10 (as they are incompatible right now)

@malfet malfet force-pushed the malfet/add-py310-config branch 2 times, most recently from a4dc7b7 to 420a2fa Compare July 12, 2022 13:32
facebook-github-bot pushed a commit that referenced this pull request Jul 12, 2022
@malfet malfet requested review from mruberry and ngimel as code owners July 12, 2022 18:19
@malfet malfet force-pushed the malfet/add-py310-config branch from ece3d74 to 8733d1c Compare July 12, 2022 22:59
@malfet malfet force-pushed the malfet/add-py310-config branch from 49f39fe to b0d3c9f Compare July 15, 2022 17:19
pytorchmergebot pushed a commit that referenced this pull request Jul 15, 2022
Thus avoiding `TypeError: 'float' object cannot be interpreted as an integer` when trying to create integer tensor from floating point values

Use `c10::checked_convert` to detect overflows during tensor construction from scalars. Modify sparse_csr test that violated this rule

Fixes #69319

Tested in #81233

Pull Request resolved: #81372
Approved by: https://github.com/ezyang, https://github.com/ngimel
malfet added 3 commits July 15, 2022 16:25
Second attempt of landing the change after #66530
As hashes of nans are not equal in 3.10
@malfet malfet force-pushed the malfet/add-py310-config branch from b0d3c9f to e7220c2 Compare July 15, 2022 23:25
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Jul 16, 2022

@pytorchbot merge

@malfet malfet added the topic: not user facing topic category label Jul 16, 2022
@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Jul 16, 2022

@pytorchbot merge -f

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@malfet malfet deleted the malfet/add-py310-config branch July 17, 2022 18:12
@janeyx99
Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "this should have been reverted along with 81372 for breaking internal builds" -c "ghfirst"

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@malfet your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Jul 18, 2022
This reverts commit 7ccf693.

Reverted #81233 on behalf of https://github.com/janeyx99 due to this should have been reverted along with 81372 for breaking internal builds
facebook-github-bot pushed a commit that referenced this pull request Jul 18, 2022
Summary:
Second attempt of landing the change after #66530

Skip nan hashes comparison validation in `jit/test_hash.py`, as it behaves differently in 3.10 vs other pythons
Skip tensor_fx assert tests
Skip initializing uint8 tensors from negative values in `TestScript.test_torch_tensor_as_tensor`

Final step in closing #66424

Pull Request resolved: #81233
Approved by: https://github.com/seemethere

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/7ccf693cf6ca28a215d7a79b45cf6f47dfd22029

Reviewed By: DanilBaibak

Differential Revision: D37919654

Pulled By: malfet

fbshipit-source-id: 20d2cc1258e7411a669d96ad7b423b92f4f8593b
atalman pushed a commit to atalman/pytorch that referenced this pull request Jul 21, 2022
atalman added a commit that referenced this pull request Jul 21, 2022
Summary:
Copy-n-paste the list from https://github.com/PyCQA/isort/blob/main/isort/stdlibs/py310.py

Tested locally and in #81233

Pull Request resolved: #81261
Approved by: https://github.com/suo

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/9ed76c8c89f6875f36619cd27fdd4af01d765a5b

Reviewed By: DanilBaibak

Differential Revision: D37781957

Pulled By: malfet

fbshipit-source-id: e39d94335950022fbdbe7b053674136694b89fad

Co-authored-by: Nikita Shulga (Meta Employee) <[email protected]>
malfet added a commit that referenced this pull request Jul 27, 2022
Thus avoiding `TypeError: 'float' object cannot be interpreted as an integer` when trying to create integer tensor from floating point values

Use `c10::checked_convert` to detect overflows during tensor construction from scalars. Modify sparse_csr test that violated this rule

Fixes #69319

Tested in #81233

Pull Request resolved: #81372
Approved by: https://github.com/ezyang, https://github.com/ngimel

(cherry picked from commit 69d7334)
malfet added a commit that referenced this pull request Jul 27, 2022
Second attempt of landing the change after #66530

Skip nan hashes comparison validation in `jit/test_hash.py`, as it behaves differently in 3.10 vs other pythons
Skip tensor_fx assert tests
Skip initializing uint8 tensors from negative values in `TestScript.test_torch_tensor_as_tensor`

Final step in closing #66424

Pull Request resolved: #81233
Approved by: https://github.com/seemethere

(cherry picked from commit 7ccf693)
pytorchmergebot pushed a commit that referenced this pull request Jul 27, 2022
This is a re-land of #81372 and #81233 with the exception that it does not force the range-checks on older Python runtime versions and as such should not affect the internal workloads, which were the reason for revert, see #81372 (comment)

- [Py3.10] Allow floats to be imported as Long (#81372)
- [CI] Move CUDA-11.6 to Python-3.10 configuration (#81233)
- Don't do anything about range checks for pre-py3.10
Pull Request resolved: #82329
Approved by: https://github.com/kit1980
facebook-github-bot pushed a commit that referenced this pull request Jul 28, 2022
Summary:
This is a re-land of #81372 and #81233 with the exception that it does not force the range-checks on older Python runtime versions and as such should not affect the internal workloads, which were the reason for revert, see #81372 (comment)

- [Py3.10] Allow floats to be imported as Long (#81372)
- [CI] Move CUDA-11.6 to Python-3.10 configuration (#81233)
- Don't do anything about range checks for pre-py3.10

Pull Request resolved: #82329
Approved by: https://github.com/kit1980

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/d80fe49de09399e77a384bd9573c7bb69887dd20

Reviewed By: osalpekar

Differential Revision: D38234293

Pulled By: malfet

fbshipit-source-id: 3f7ffe729ab2a3ef692bc95f5398dfdf395b2397
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.

5 participants