Skip to content

Commit

Permalink
enable unit test gpu (#2228)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
  • Loading branch information
TroyGarden authored and facebook-github-bot committed Jul 16, 2024
1 parent ce11d63 commit 4fd0789
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/unittest_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ name: Unit Test CI

on:
# TODO: re-enable when GPU unit tests are working
# push:
# paths-ignore:
# - "docs/*"
# - "third_party/*"
# - .gitignore
# - "*.md"
# pull_request:
# paths-ignore:
# - "docs/*"
# - "third_party/*"
# - .gitignore
# - "*.md"
push:
paths-ignore:
- "docs/*"
- "third_party/*"
- .gitignore
- "*.md"
pull_request:
paths-ignore:
- "docs/*"
- "third_party/*"
- .gitignore
- "*.md"
workflow_dispatch:

jobs:
Expand All @@ -36,12 +36,12 @@ jobs:
- name: Check ldd --version
run: ldd --version
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Update pip
run: |
sudo yum update -y
sudo yum -y install git python3-pip
sudo pip3 install --upgrade pip
# sudo pip3 install --upgrade pip
- name: Setup conda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [linux.4xlarge.nvidia.gpu]
os: [linux.8xlarge.nvidia.gpu]
python-version: [3.8]
cuda-tag: ["cu11"]
needs: build_on_cpu
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
sudo lshw -C display
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Update pip
run: |
sudo yum update -y
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
- name: Install TorchRec GPU
run: |
rm -r dist || true
conda run -n build_binary python -m pip install dist/*.whl
conda run -n build_binary python -m pip install *.whl
- name: Test torchrec installation
shell: bash
run: |
Expand Down

0 comments on commit 4fd0789

Please sign in to comment.