File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ install_ubuntu() {
2424 gdb \
2525 rsync \
2626 libssl-dev \
27- zip \
28- libomp5
27+ zip
2928
3029 # Cleanup package manager
3130 apt-get autoclean && apt-get clean
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ install_ubuntu() {
1313 apt-get install -y --no-install-recommends clang-" $CLANG_VERSION "
1414 apt-get install -y --no-install-recommends llvm-" $CLANG_VERSION "
1515 # Also require LLD linker from llvm and libomp to build PyTorch from source
16- apt-get install -y lld " libomp-${CLANG_VERSION} -dev"
16+ apt-get install -y lld " libomp-${CLANG_VERSION} -dev" " libc++- ${CLANG_VERSION} -dev "
1717
1818 # Use update-alternatives to make this version the default
1919 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-" $CLANG_VERSION " 50
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ install_qnn() {
3131}
3232
3333setup_libc++ () {
34+ clang_version=$1
3435 sudo apt-get update
35- pkgs_to_check=(' libc++-dev' )
36+ pkgs_to_check=(" libc++-${clang_version} - dev" )
3637 j=0
3738 while [ $j -lt ${# pkgs_to_check[*]} ]; do
3839 install_status=$( verify_pkg_installed ${pkgs_to_check[$j]} )
@@ -47,5 +48,6 @@ setup_libc++() {
4748 done
4849}
4950
50- setup_libc++
51+ # This needs to match with the clang version from the Docker image
52+ setup_libc++ 12
5153install_qnn
You can’t perform that action at this time.
0 commit comments