Skip to content

Commit

Permalink
reduce CAPABILITY for pull_requests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Feb 7, 2024
1 parent b0fedba commit 6ab10e2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ jobs:
nvcc --version
- name: Select COMPUTE_CAPABILITY
shell: bash -el {0}
run: |
# set COMPUTE_CAPABILITY
COMPUTE_CAPABILITY="61;75;86;89"
[[ "${{ env.GITHUB_REF }}" = refs/tags/* ]] && COMPUTE_CAPABILITY="50;52;60;61;62;70;72;75;80;86;87;89;90"
echo "COMPUTE_CAPABILITY=$COMPUTE_CAPABILITY" >> "$GITHUB_ENV"
- name: Update environment
if: startsWith(matrix.os, 'windows')
run: mamba env update -n bnb-env -f environment-bnb.yml
Expand All @@ -228,7 +236,7 @@ jobs:
-G Ninja ${{ env.DCMAKE_CUDA_COMPILER }} \
${{ env.CXX_COMPILER }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCOMPUTE_CAPABILITY="50;52;60;61;62;70;72;75;80;86;87;89;90" \
-DCOMPUTE_CAPABILITY="${{ env.COMPUTE_CAPABILITY }}" \
-DCOMPUTE_BACKEND=cuda \
-S .
Expand All @@ -239,7 +247,7 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: ${{ format('nvidia/cuda:{0}-{1}', matrix.cuda-version, 'devel-ubuntu22.04') }}
options: --platform linux/${{ matrix.arch }} -w /src -v ${{ github.workspace }}:/src
options: --platform linux/${{ matrix.arch }} -w /src -v ${{ github.workspace }}:/src -e "COMPUTE_CAPABILITY"
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cmake python3 python3-pip
Expand All @@ -250,7 +258,7 @@ jobs:
cmake -B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCOMPUTE_CAPABILITY="50;52;60;61;62;70;72;75;80;86;87;89;90" \
-DCOMPUTE_CAPABILITY="${{ env.COMPUTE_CAPABILITY }}" \
-DCOMPUTE_BACKEND=cuda \
-DNO_CUBLASLT=$NO_CUBLAST \
-S .
Expand Down

0 comments on commit 6ab10e2

Please sign in to comment.