Update system dependencies to enable CUDA builds on v6 kernel and newer libc (#3426)

Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3426

GitHub Actions only supports Ubuntu 22 and newer and this change is necessary to enable CUDA builds to complete the migration.

Reviewed By: algoriddle

Differential Revision: D57261685

fbshipit-source-id: 34467f57426864ffa8b32f6018ccdc7bb4424b57
This commit is contained in:
Ramil Bakhshyiev 2024-05-13 09:54:41 -07:00 committed by Facebook GitHub Bot
parent e1e4ad0083
commit b487c62a1e

View File

@ -25,21 +25,21 @@ runs:
run: | run: |
conda config --set solver libmamba conda config --set solver libmamba
conda update -y -q conda conda update -y -q conda
- name: Install env using main channel - name: Configure conda environment
if: inputs.raft == 'OFF'
shell: bash shell: bash
run: | run: |
conda install -y -q python=3.11 cmake make swig mkl=2023 mkl-devel=2023 numpy scipy pytest gxx_linux-64=11.2 sysroot_linux-64 conda install -y -q -c conda-forge gxx_linux-64=11.2 sysroot_linux-64=2.28
- name: Install env using conda-forge channel conda install -y -q python=3.11 cmake make swig mkl=2023 mkl-devel=2023 numpy scipy pytest
if: inputs.raft == 'ON'
shell: bash
run: |
conda install -y -q python=3.11 cmake make swig mkl=2023 mkl-devel=2023 numpy scipy pytest gxx_linux-64=11.2 sysroot_linux-64=2.28 libraft cuda-version=11.8 cuda-toolkit -c rapidsai-nightly -c "nvidia/label/cuda-11.8.0" -c conda-forge
- name: Install CUDA - name: Install CUDA
if: inputs.gpu == 'ON' && inputs.raft == 'OFF' if: inputs.gpu == 'ON' && inputs.raft == 'OFF'
shell: bash shell: bash
run: | run: |
conda install -y -q cuda-toolkit -c "nvidia/label/cuda-11.8.0" conda install -y -q cuda-toolkit -c "nvidia/label/cuda-11.8.0"
- name: Install RAFT
if: inputs.raft == 'ON'
shell: bash
run: |
conda install -y -q libraft cuda-version=11.8 cuda-toolkit -c rapidsai-nightly -c "nvidia/label/cuda-11.8.0" -c conda-forge
- name: Build all targets - name: Build all targets
shell: bash shell: bash
run: | run: |