diff options
author | Stephen Zhang | 2017-08-09 03:37:04 +0800 |
---|---|---|
committer | Stephen Zhang | 2017-08-09 03:37:04 +0800 |
commit | 6562b383e48e0ad75197db92b0919600589cd20f (patch) | |
tree | 9ce63bf61c8556a586f11ff133de4875279fa43d /PKGBUILD | |
parent | 7fb1b225d53cb328a8c727d93698a154f979f2ac (diff) | |
download | aur-6562b383e48e0ad75197db92b0919600589cd20f.tar.gz |
fix error when building gloo
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -20,18 +20,14 @@ sha256sums=('22b30638536d20d387e1adff62aa4b9ddebd8ac7ab812a36c699d72df9f7f570') prepare() { cd "$srcdir/" + cd "${_pkgname}-${pkgver}" # Uncomment and modify these lines to enable Intel MKL support - #cd "${_pkgname}-${pkgver}" #sed -i -e '59i-DINTEL_MKL_DIR="/opt/intel/mkl" \\' torch/lib/build_all.sh #sed -i -e '86d' -e '89d' torch/lib/TH/cmake/FindMKL.cmake - #cd .. + sed -i -e '144icp -r nccl gloo/third-party/' torch/lib/build_all.sh + cd .. cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2" - cd "${_pkgname}-${pkgver}" - sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ - -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ - -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ - -i $(find . -name '*.py') } build() { |