forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f95e5e
commit f2c435b
Showing
2 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
matrix: | ||
include: | ||
- name: "ubuntu-22.04" | ||
runs-on: "nodai-amdgpu-mi250-x86-64" | ||
runs-on: "mi300" | ||
# container: "rocm/pytorch:rocm6.2.3_ubuntu22.04_py3.10_pytorch_release_2.3.0" | ||
# runs-on: "nod-ai-shared-cpubuilder-manylinux-x86_64" | ||
|
||
|
@@ -71,22 +71,6 @@ jobs: | |
key: ${{ env.CACHE_KEY }} | ||
restore-keys: linux-build-test-cpp- | ||
|
||
# - name: "Setup ROCm" | ||
# id: rocm | ||
# run: | | ||
|
||
# tee --append /etc/yum.repos.d/rocm.repo <<EOF | ||
# [ROCm-6.3] | ||
# name=ROCm6.3 | ||
# baseurl=https://repo.radeon.com/rocm/el8/6.3/main | ||
# enabled=1 | ||
# priority=50 | ||
# gpgcheck=1 | ||
# gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key | ||
# EOF | ||
# dnf clean all | ||
# dnf install -y rocm hipblas-common-devel hip-devel | ||
|
||
- name: "Build PyTorch" | ||
id: build | ||
run: | | ||
|
@@ -95,6 +79,9 @@ jobs: | |
export CMAKE_C_COMPILER_LAUNCHER=ccache | ||
export CMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
export CCACHE_SLOPPINESS=include_file_ctime,include_file_mtime,time_macros | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
./build.sh | ||
|
@@ -112,6 +99,18 @@ jobs: | |
path: dist | ||
if-no-files-found: warn | ||
|
||
- name: Release current commit | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: "dist/*.whl" | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag: "latest" | ||
name: "latest" | ||
removeArtifacts: false | ||
allowUpdates: true | ||
replacesArtifacts: true | ||
makeLatest: true | ||
|
||
- name: "Setup tmate session" | ||
if: ${{ (failure() && inputs.debug_with_tmate) || inputs.force_debug_with_tmate }} | ||
uses: mxschmitt/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters