Skip to content

Commit 23f61b2

Browse files
TroyGardenfacebook-github-bot
authored andcommitted
enable unit test gpu (#2228)
Summary: Pull Request resolved: #2228 # context Differential Revision: D51095381
1 parent 3b39ad3 commit 23f61b2

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/unittest_ci.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ name: Unit Test CI
55

66
on:
77
# TODO: re-enable when GPU unit tests are working
8-
# push:
9-
# paths-ignore:
10-
# - "docs/*"
11-
# - "third_party/*"
12-
# - .gitignore
13-
# - "*.md"
14-
# pull_request:
15-
# paths-ignore:
16-
# - "docs/*"
17-
# - "third_party/*"
18-
# - .gitignore
19-
# - "*.md"
8+
push:
9+
paths-ignore:
10+
- "docs/*"
11+
- "third_party/*"
12+
- .gitignore
13+
- "*.md"
14+
pull_request:
15+
paths-ignore:
16+
- "docs/*"
17+
- "third_party/*"
18+
- .gitignore
19+
- "*.md"
2020
workflow_dispatch:
2121

2222
jobs:
@@ -29,19 +29,19 @@ jobs:
2929
- os: linux.2xlarge
3030
# ideally we run on 3.9 and 3.10 as well, however we are limited in resources.
3131
python-version: 3.8
32-
python-tag: "py38"
33-
cuda-tag: "cu11"
32+
python-tag: "py39"
33+
cuda-tag: "cu12"
3434
steps:
3535
# Checkout the repository to the GitHub Actions runner
3636
- name: Check ldd --version
3737
run: ldd --version
3838
- name: Checkout
39-
uses: actions/checkout@v2
39+
uses: actions/checkout@v3
4040
- name: Update pip
4141
run: |
4242
sudo yum update -y
4343
sudo yum -y install git python3-pip
44-
sudo pip3 install --upgrade pip
44+
# sudo pip3 install --upgrade pip
4545
- name: Setup conda
4646
run: |
4747
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
@@ -99,7 +99,7 @@ jobs:
9999
matrix:
100100
os: [linux.4xlarge.nvidia.gpu]
101101
python-version: [3.8]
102-
cuda-tag: ["cu11"]
102+
cuda-tag: ["cu12"]
103103
needs: build_on_cpu
104104
# the glibc version should match the version of the one we used to build the binary
105105
# for this case, it's 2.26
@@ -135,7 +135,7 @@ jobs:
135135
sudo lshw -C display
136136
# Checkout the repository to the GitHub Actions runner
137137
- name: Checkout
138-
uses: actions/checkout@v2
138+
uses: actions/checkout@v3
139139
- name: Update pip
140140
run: |
141141
sudo yum update -y
@@ -170,7 +170,7 @@ jobs:
170170
shell: bash
171171
run: |
172172
conda run -n build_binary \
173-
pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cu118
173+
pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cu12
174174
# download wheel from GHA
175175
- name: Download wheel
176176
uses: actions/download-artifact@v2
@@ -181,7 +181,7 @@ jobs:
181181
- name: Install TorchRec GPU
182182
run: |
183183
rm -r dist || true
184-
conda run -n build_binary python -m pip install dist/*.whl
184+
conda run -n build_binary python -m pip install *.whl
185185
- name: Test torchrec installation
186186
shell: bash
187187
run: |

0 commit comments

Comments
 (0)