From 4fd07893f04cc7d0cb124733e98e99018cfc57a2 Mon Sep 17 00:00:00 2001 From: Huanyu He Date: Mon, 15 Jul 2024 18:45:23 -0700 Subject: [PATCH] enable unit test gpu (#2228) Summary: Pull Request resolved: https://github.com/pytorch/torchrec/pull/2228 # context Differential Revision: D51095381 --- .github/workflows/unittest_ci.yml | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/unittest_ci.yml b/.github/workflows/unittest_ci.yml index edf7a9fc1..1070383c6 100644 --- a/.github/workflows/unittest_ci.yml +++ b/.github/workflows/unittest_ci.yml @@ -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: @@ -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 @@ -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 @@ -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 @@ -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: |