Skip to content

Commit a0fedd1

Browse files
committed
[AutoBump] Merge with 9dd94fb (Jan 22)
2 parents 6108668 + 9dd94fb commit a0fedd1

File tree

13 files changed

+74
-26
lines changed

13 files changed

+74
-26
lines changed

.github/workflows/RollPyTorch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
git pull origin main
128128
129129
- name: Create pull request
130-
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
130+
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
131131
with:
132132
author: Roll PyTorch Action <[email protected]>
133133
branch: rollpytorch

.github/workflows/bazelBuildAndTest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
103103
- name: Send mail
104104
if: failure()
105-
uses: dawidd6/action-send-mail@2cea9617b09d79a095af21254fbcb7ae95903dde # v3.12.0
105+
uses: dawidd6/action-send-mail@611879133a9569642c41be66f4a323286e9b8a3b # v4
106106
with:
107107
server_address: ${{ secrets.SMTP_SERVER }}
108108
server_port: ${{ secrets.SMTP_PORT }}

.github/workflows/buildRelease.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Upload Release Assets (if requested)
5757
if: github.event.inputs.release_id != ''
5858
id: upload-release-assets
59-
uses: dwenegar/upload-release-assets@v1
59+
uses: dwenegar/upload-release-assets@v3
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262
with:
@@ -83,7 +83,7 @@ jobs:
8383
#
8484
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
8585
- name: Store the binary wheel
86-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
86+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
8787
with:
8888
name: wheels
8989
path: dist
@@ -125,7 +125,7 @@ jobs:
125125
- name: Upload Release Assets (if requested)
126126
if: github.event.inputs.release_id != ''
127127
id: upload-release-assets
128-
uses: dwenegar/upload-release-assets@v1
128+
uses: dwenegar/upload-release-assets@v3
129129
env:
130130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131131
with:
@@ -152,7 +152,7 @@ jobs:
152152
#
153153
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
154154
- name: Store the binary wheel
155-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
155+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
156156
with:
157157
name: wheels
158158
path: dist
@@ -186,7 +186,7 @@ jobs:
186186
- name: Upload Release Assets (if requested)
187187
if: github.event.inputs.release_id != ''
188188
id: upload-release-assets
189-
uses: dwenegar/upload-release-assets@v1
189+
uses: dwenegar/upload-release-assets@v3
190190
env:
191191
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
192192
with:
@@ -213,7 +213,7 @@ jobs:
213213
#
214214
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
215215
- name: Store the binary wheel
216-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
216+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
217217
with:
218218
name: wheels
219219
path: dist
@@ -250,7 +250,7 @@ jobs:
250250
- name: Upload Release Assets (if requested)
251251
if: github.event.inputs.release_id != ''
252252
id: upload-release-assets
253-
uses: dwenegar/upload-release-assets@v1
253+
uses: dwenegar/upload-release-assets@v3
254254
env:
255255
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
256256
with:
@@ -278,7 +278,7 @@ jobs:
278278
#
279279
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
280280
- name: Store the binary wheel
281-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
281+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
282282
with:
283283
name: wheels
284284
path: dist

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
CACHE_DIR: ${{ github.workspace }}/.container-cache
2929
steps:
3030
- name: "Checking out repository"
31-
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
with:
3333
submodules: true
3434

@@ -38,7 +38,7 @@ jobs:
3838
sudo apt-get install -y ccache clang
3939
4040
- name: Enable cache
41-
uses: actions/cache/restore@v3
41+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
4242
with:
4343
path: ${{ env.CACHE_DIR }}
4444
key: build-test-cpp-asserts-manylinux-${{ matrix.torch-version }}-v2-${{ github.sha }}
@@ -70,7 +70,7 @@ jobs:
7070
bash build_tools/ci/build_posix.sh
7171
7272
- name: Save cache
73-
uses: actions/cache/save@v3
73+
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
7474
if: ${{ !cancelled() }}
7575
with:
7676
path: ${{ env.CACHE_DIR }}

.github/workflows/gh-pages-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- run: git diff --cached --exit-code || git commit -m "Update releases."
3838

3939
- name: GitHub Push
40-
uses: ad-m/github-push-action@v0.6.0
40+
uses: ad-m/github-push-action@v0.8.0
4141
with:
4242
github_token: ${{ secrets.GITHUB_TOKEN }}
4343
branch: github-pages

.github/workflows/oneshotSnapshotPackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636
git tag "${tag_name}"
3737
3838
- name: Pushing changes
39-
uses: ad-m/github-push-action@v0.6.0
39+
uses: ad-m/github-push-action@v0.8.0
4040
with:
4141
github_token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
4242
branch: ${{ github.ref_name }}
4343
tags: true
4444

4545
- name: Create Release
4646
id: create_release
47-
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
47+
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1.15.0
4848
with:
4949
tag: ${{ env.tag_name }}
5050
name: torch-mlir snapshot ${{ env.tag_name }}

.github/workflows/releaseSnapshotPackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ jobs:
4141
git tag "${tag_name}"
4242
4343
- name: Pushing changes
44-
uses: ad-m/github-push-action@v0.6.0
44+
uses: ad-m/github-push-action@v0.8.0
4545
with:
4646
github_token: ${{ secrets.GITHUB_TOKEN }}
4747
branch: ${{ env.BRANCH_NAME }}
4848
tags: true
4949

5050
- name: Create Release
5151
id: create_release
52-
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
52+
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1.15.0
5353
with:
5454
tag: ${{ env.tag_name }}
5555
name: torch-mlir snapshot ${{ env.tag_name }}

build_tools/python_deploy/build_linux_packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# ./build_tools/python_deploy/build_linux_packages.sh
1717
#
1818
# Build specific Python versions and packages to custom directory:
19-
# TM_PYTHON_VERSIONS="cp38-cp38 cp39-cp39" \
19+
# TM_PYTHON_VERSIONS="cp39-cp39 cp310-cp310" \
2020
# TM_PACKAGES="torch-mlir" \
2121
# TM_OUTPUT_DIR="/tmp/wheelhouse" \
2222
# ./build_tools/python_deploy/build_linux_packages.sh
@@ -46,7 +46,7 @@ TM_RELEASE_DOCKER_IMAGE="${TM_RELEASE_DOCKER_IMAGE:-quay.io/pypa/manylinux2014_$
4646
# ./build_tools/docker/Dockerfile
4747
TM_CI_DOCKER_IMAGE="${TM_CI_DOCKER_IMAGE:-powderluv/torch-mlir-ci:latest}"
4848
# Version of Python to use in Release builds. Ignored in CIs.
49-
TM_PYTHON_VERSIONS="${TM_PYTHON_VERSIONS:-cp38-cp38 cp310-cp310 cp311-cp311}"
49+
TM_PYTHON_VERSIONS="${TM_PYTHON_VERSIONS:-cp310-cp310 cp311-cp311 cp312-cp312}"
5050
# Location to store Release wheels
5151
TM_OUTPUT_DIR="${TM_OUTPUT_DIR:-${this_dir}/wheelhouse}"
5252
# What "packages to build"

docs/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ The following additional environmental variables can be used to customize your d
349349
```
350350

351351
* Custom Python Versions for Release builds:
352-
Version of Python to use in Release builds. Ignored in CIs. Defaults to `cp38-cp38 cp39-cp39 cp310-cp310`
352+
Version of Python to use in Release builds. Ignored in CIs. Defaults to `cp39-cp39 cp310-cp310 cp312-cp312`
353353
```shell
354-
TM_PYTHON_VERSIONS="cp38-cp38 cp39-cp39 cp310-cp310"
354+
TM_PYTHON_VERSIONS="cp39-cp39 cp310-cp310 cp312-cp312"
355355
```
356356

357357
* Location to store Release build wheels

lib/Conversion/Utils/Utils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ Value convertScalarToDtype(OpBuilder &b, Location loc, Value scalar, Type dtype,
335335

336336
if (auto dtypeFloat = dyn_cast<mlir::FloatType>(dtype)) {
337337
if (auto scalarFloat = dyn_cast<mlir::FloatType>(scalarType)) {
338+
if (scalarFloat.getWidth() == 16 && dtypeFloat.getWidth() == 16) {
339+
auto scalarF32 = b.create<arith::ExtFOp>(loc, b.getF32Type(), scalar);
340+
return b.create<arith::TruncFOp>(loc, dtype, scalarF32);
341+
}
338342
if (scalarFloat.getWidth() > dtypeFloat.getWidth())
339343
return b.create<arith::TruncFOp>(loc, dtype, scalar);
340344
// Only scalarFloat width < dtypeFloat width can reach here.

0 commit comments

Comments
 (0)