Skip to content

Commit 14143bc

Browse files
Michael Norrisfacebook-github-bot
Michael Norris
authored andcommitted
Start migration off defaults to conda-forge channel (#4126)
Summary: Pull Request resolved: #4126 Differential Revision: D68043874
1 parent 3d0ac32 commit 14143bc

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

.github/actions/build_cmake/action.yml

+21-8
Original file line numberDiff line numberDiff line change
@@ -22,49 +22,62 @@ runs:
2222
- name: Setup miniconda
2323
uses: conda-incubator/setup-miniconda@v3
2424
with:
25+
channels: conda-forge
26+
conda-remove-defaults: "true"
2527
python-version: '3.11'
2628
miniconda-version: latest
2729
- name: Configure build environment
2830
shell: bash
2931
run: |
3032
# initialize Conda
33+
echo "*****1*****"
34+
conda config --show channels
35+
echo "*****2*****"
3136
conda config --set solver libmamba
3237
conda update -y -q conda
3338
echo "$CONDA/bin" >> $GITHUB_PATH
39+
echo "*****3*****"
40+
conda config --show channels
41+
echo "*****4*****"
3442
35-
conda install -y -q python=3.11 cmake=3.26 make=4.2 swig=4.0 "numpy<2" scipy=1.14 pytest=7.4 gflags=2.2
43+
conda install -c conda-forge -y -q python=3.11 cmake=3.26 make=4.2 swig=4.0 "numpy<2" scipy=1.14 pytest=7.4 gflags=2.2 --override-channels
3644
45+
echo "*****5*****"
46+
conda config --show channels
47+
echo "*****6*****"
3748
# install base packages for ARM64
3849
if [ "${{ runner.arch }}" = "ARM64" ]; then
39-
conda install -y -q -c conda-forge openblas=0.3 gxx_linux-aarch64=14.2 sysroot_linux-aarch64=2.17
50+
conda install -c conda-forge -y -q openblas=0.3 gxx_linux-aarch64=14.2 sysroot_linux-aarch64=2.17 --override-channels
4051
fi
4152
4253
# install base packages for X86_64
4354
if [ "${{ runner.arch }}" = "X64" ]; then
4455
# TODO: merge this with ARM64
45-
conda install -y -q -c conda-forge gxx_linux-64=14.2 sysroot_linux-64=2.17
46-
conda install -y -q mkl=2023 mkl-devel=2023
56+
conda install -c conda-forge -y -q gxx_linux-64=14.2 sysroot_linux-64=2.17 --override-channels
57+
conda install -c conda-forge -y -q mkl=2023 mkl-devel=2023 --override-channels
4758
fi
4859
4960
# no CUDA needed for ROCm so skip this
5061
if [ "${{ inputs.rocm }}" = "ON" ]; then
5162
:
5263
# regular CUDA for GPU builds
5364
elif [ "${{ inputs.gpu }}" = "ON" ] && [ "${{ inputs.cuvs }}" = "OFF" ]; then
54-
conda install -y -q cuda-toolkit=12.4 -c "nvidia/label/cuda-12.4.0"
65+
conda install -c conda-forge -y -q cuda-toolkit=12.4 -c "nvidia/label/cuda-12.4.0" --override-channels
5566
# and CUDA from cuVS channel for cuVS builds
5667
elif [ "${{ inputs.cuvs }}" = "ON" ]; then
57-
conda install -y -q libcuvs=24.12 'cuda-version>=12.0,<=12.5' cuda-toolkit=12.4.1 gxx_linux-64=12.4 -c rapidsai -c conda-forge
68+
conda install -y -q libcuvs=24.12 'cuda-version>=12.0,<=12.5' cuda-toolkit=12.4.1 gxx_linux-64=12.4 -c rapidsai -c conda-forge --override-channels
5869
fi
5970
# install test packages
6071
if [ "${{ inputs.rocm }}" = "ON" ]; then
6172
: # skip torch install via conda, we need to install via pip to get
6273
# ROCm-enabled version until it's supported in conda by PyTorch
6374
elif [ "${{ inputs.gpu }}" = "ON" ]; then
64-
conda install -y -q "pytorch<2.5" pytorch-cuda=12.4 -c pytorch -c "nvidia/label/cuda-12.4.0"
75+
conda install -y -q "pytorch<2.5" pytorch-cuda=12.4 -c pytorch -c "nvidia/label/cuda-12.4.0" --override-channels
6576
else
66-
conda install -y -q "pytorch<2.5" -c pytorch
77+
conda install -y -q "pytorch<2.5" -c pytorch --override-channels
6778
fi
79+
echo "*****7*****"
80+
conda config --show channels
6881
- name: ROCm - Install dependencies
6982
if: inputs.rocm == 'ON'
7083
shell: bash

.github/actions/build_conda/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ runs:
3131
with:
3232
python-version: '3.11'
3333
miniconda-version: latest
34+
channels: conda-forge,nodefaults
35+
conda-remove-defaults: "true"
3436
- name: Install conda build tools
3537
shell: ${{ steps.choose_shell.outputs.shell }}
3638
run: |

0 commit comments

Comments
 (0)