Skip to content

Commit 85df0e0

Browse files
CMake step to symlink system libraries for RAFT and ROCm (#3725)
Summary: Pull Request resolved: #3725 This step is necessary for both of the builds with newer gxx_linux package version. ROCm is already using this symlinking and this change expands it to RAFT as well. Reviewed By: mengdilin Differential Revision: D60830977 fbshipit-source-id: fe95a6580b3866e17b56d542509405e93a3ff453
1 parent 0b2328f commit 85df0e0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/actions/build_cmake/action.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,19 @@ runs:
100100
# Cleanup
101101
sudo apt-get autoclean && sudo apt-get clean
102102
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
103-
103+
- name: ROCm - Hipify
104+
if: inputs.rocm == 'ON'
105+
shell: bash
106+
run: ./faiss/gpu/hipify.sh
107+
- name: Symblink system dependencies
108+
if: inputs.raft == 'ON' || inputs.rocm == 'ON'
109+
shell: bash
110+
run: |
104111
# symblink system libraries for HIP compiler
105112
sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
106113
sudo ln -s /lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/libc_nonshared.a
107114
sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.so.0 /lib64/libpthread.so.0
108115
sudo ln -s /home/runner/miniconda3/x86_64-conda-linux-gnu/sysroot/usr/lib64/libpthread_nonshared.a /usr/lib64/libpthread_nonshared.a
109-
- name: ROCm - Hipify
110-
if: inputs.rocm == 'ON'
111-
shell: bash
112-
run: ./faiss/gpu/hipify.sh
113116
- name: Build all targets
114117
shell: bash
115118
run: |

0 commit comments

Comments
 (0)