Skip to content

Commit e4c5d5a

Browse files
Michael Norrisfacebook-github-bot
Michael Norris
authored andcommitted
Debug cuVS 11.8.0 failure (facebookresearch#4149)
Summary: Pull Request resolved: facebookresearch#4149 Differential Revision: D68781021
1 parent 32beb16 commit e4c5d5a

File tree

3 files changed

+12
-130
lines changed

3 files changed

+12
-130
lines changed

.github/actions/build_conda/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ runs:
9090
working-directory: conda
9191
run: |
9292
conda build faiss-gpu-cuvs --variants '{ "cudatoolkit": "${{ inputs.cuda }}" }' \
93-
-c pytorch -c rapidsai -c rapidsai-nightly -c conda-forge -c nvidia
93+
-c pytorch -c rapidsai -c rapidsai-nightly -c conda-forge
9494
- name: Conda build (GPU w/ cuVS) w/ anaconda upload
9595
if: inputs.label != '' && inputs.cuda != '' && inputs.cuvs != ''
9696
shell: ${{ steps.choose_shell.outputs.shell }}

.github/workflows/build-pull-request.yml

+10-129
Original file line numberDiff line numberDiff line change
@@ -30,140 +30,21 @@ jobs:
3030
git --no-pager diff --color
3131
exit 1
3232
fi
33-
linux-x86_64-cmake:
34-
name: Linux x86_64 (cmake)
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Checkout
38-
uses: actions/checkout@v4
39-
- name: Build and Test (cmake)
40-
uses: ./.github/actions/build_cmake
41-
linux-x86_64-AVX2-cmake:
42-
name: Linux x86_64 AVX2 (cmake)
43-
needs: linux-x86_64-cmake
44-
runs-on: ubuntu-latest
45-
steps:
46-
- name: Checkout
47-
uses: actions/checkout@v4
48-
- name: Build and Test (cmake)
49-
uses: ./.github/actions/build_cmake
50-
with:
51-
opt_level: avx2
52-
linux-x86_64-AVX512-cmake:
53-
name: Linux x86_64 AVX512 (cmake)
54-
needs: linux-x86_64-cmake
55-
runs-on: faiss-aws-m7i.large
56-
steps:
57-
- name: Checkout
58-
uses: actions/checkout@v4
59-
- name: Build and Test (cmake)
60-
uses: ./.github/actions/build_cmake
61-
with:
62-
opt_level: avx512
63-
linux-x86_64-AVX512_SPR-cmake:
64-
name: Linux x86_64 AVX512_SPR (cmake)
65-
needs: linux-x86_64-cmake
66-
runs-on: faiss-aws-m7i.large
67-
steps:
68-
- name: Checkout
69-
uses: actions/checkout@v4
70-
- name: Build and Test (cmake)
71-
uses: ./.github/actions/build_cmake
72-
with:
73-
opt_level: avx512_spr
74-
linux-x86_64-GPU-cmake:
75-
name: Linux x86_64 GPU (cmake)
76-
needs: linux-x86_64-cmake
33+
linux-x86_64-GPU-CUVS-CUDA11-8-0-nightly:
34+
name: Linux x86_64 GPU w/ cuVS nightlies (CUDA 11.8.0)
7735
runs-on: 4-core-ubuntu-gpu-t4
78-
steps:
79-
- name: Checkout
80-
uses: actions/checkout@v4
81-
- name: Build and Test (cmake)
82-
uses: ./.github/actions/build_cmake
83-
with:
84-
gpu: ON
85-
linux-x86_64-GPU-w-CUVS-cmake:
86-
name: Linux x86_64 GPU w/ cuVS (cmake)
87-
needs: linux-x86_64-cmake
88-
runs-on: 4-core-ubuntu-gpu-t4
89-
steps:
90-
- name: Checkout
91-
uses: actions/checkout@v4
92-
- name: Build and Test (cmake)
93-
uses: ./.github/actions/build_cmake
94-
with:
95-
gpu: ON
96-
cuvs: ON
97-
linux-x86_64-GPU-w-ROCm-cmake:
98-
name: Linux x86_64 GPU w/ ROCm (cmake)
99-
needs: linux-x86_64-cmake
100-
runs-on: faiss-amd-MI200
101-
container:
102-
image: ubuntu:22.04
103-
options: --device=/dev/kfd --device=/dev/dri --ipc=host --shm-size 16G --group-add video --cap-add=SYS_PTRACE --cap-add=SYS_ADMIN
104-
steps:
105-
- name: Container setup
106-
run: |
107-
if [ -f /.dockerenv ]; then
108-
apt-get update && apt-get install -y sudo && apt-get install -y git
109-
git config --global --add safe.directory '*'
110-
else
111-
echo 'Skipping. Current job is not running inside a container.'
112-
fi
113-
- name: Checkout
114-
uses: actions/checkout@v4
115-
- name: Build and Test (cmake)
116-
uses: ./.github/actions/build_cmake
117-
with:
118-
gpu: ON
119-
rocm: ON
120-
linux-arm64-SVE-cmake:
121-
name: Linux arm64 SVE (cmake)
122-
needs: linux-x86_64-cmake
123-
runs-on: faiss-aws-r8g.large
124-
steps:
125-
- name: Checkout
126-
uses: actions/checkout@v4
127-
- name: Build and Test (cmake)
128-
uses: ./.github/actions/build_cmake
129-
with:
130-
opt_level: sve
131-
env:
132-
# Context: https://github.com/facebookresearch/faiss/wiki/Troubleshooting#surprising-faiss-openmp-and-openblas-interaction
133-
OPENBLAS_NUM_THREADS: '1'
134-
linux-x86_64-conda:
135-
name: Linux x86_64 (conda)
136-
needs: linux-x86_64-cmake
137-
runs-on: ubuntu-latest
36+
env:
37+
CUDA_ARCHS: "70-real;72-real;75-real;80;86-real"
13838
steps:
13939
- name: Checkout
14040
uses: actions/checkout@v4
14141
with:
14242
fetch-depth: 0
14343
fetch-tags: true
144-
- name: Build and Package (conda)
145-
uses: ./.github/actions/build_conda
146-
windows-x86_64-conda:
147-
name: Windows x86_64 (conda)
148-
needs: linux-x86_64-cmake
149-
runs-on: windows-2019
150-
steps:
151-
- name: Checkout
152-
uses: actions/checkout@v4
153-
with:
154-
fetch-depth: 0
155-
fetch-tags: true
156-
- name: Build and Package (conda)
157-
uses: ./.github/actions/build_conda
158-
linux-arm64-conda:
159-
name: Linux arm64 (conda)
160-
needs: linux-x86_64-cmake
161-
runs-on: 2-core-ubuntu-arm
162-
steps:
163-
- name: Checkout
164-
uses: actions/checkout@v4
44+
- uses: ./.github/actions/build_conda
45+
env:
46+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
16547
with:
166-
fetch-depth: 0
167-
fetch-tags: true
168-
- name: Build and Package (conda)
169-
uses: ./.github/actions/build_conda
48+
label: nightly
49+
cuvs: "ON"
50+
cuda: "11.8.0"

conda/faiss-gpu-cuvs/meta.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ outputs:
5454
- mkl =2023 # [x86_64]
5555
- mkl-devel =2023 # [x86_64]
5656
- cuda-toolkit {{ cudatoolkit }}
57+
- cuda-cudart {{ cuda_constraints }}
5758
host:
5859
- _openmp_mutex =4.5=2_kmp_llvm # [x86_64]
5960
- mkl =2023 # [x86_64]

0 commit comments

Comments
 (0)