From a674d503c2fcc664aacc7f961f2289286be92e08 Mon Sep 17 00:00:00 2001 From: morgoth95 Date: Tue, 1 Mar 2022 15:20:29 +0100 Subject: [PATCH] fix error in MacOS installation --- nebullvm/installers/install_tvm.sh | 10 ++++++---- nebullvm/installers/install_tvm_prerequisites.sh | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/nebullvm/installers/install_tvm.sh b/nebullvm/installers/install_tvm.sh index 6c38ae74..0d0e4a3f 100644 --- a/nebullvm/installers/install_tvm.sh +++ b/nebullvm/installers/install_tvm.sh @@ -14,15 +14,17 @@ cp $CONFIG_PATH build/ cd build cmake .. make -j8 -cd ../python -python3 setup.py install --user -cd ../.. if [[ $OSTYPE == "darwin"* ]] then + pip install tornado brew install openblas gfortran pip install pybind11 cython pythran conda install -y scipy pip install xgboost decorator + export MACOSX_DEPLOYMENT_TARGET=10.9 else pip3 install decorator attrs tornado psutil xgboost cloudpickle -fi \ No newline at end of file +fi +cd ../python +python3 setup.py install --user +cd ../.. diff --git a/nebullvm/installers/install_tvm_prerequisites.sh b/nebullvm/installers/install_tvm_prerequisites.sh index d23f8a5c..fb294530 100644 --- a/nebullvm/installers/install_tvm_prerequisites.sh +++ b/nebullvm/installers/install_tvm_prerequisites.sh @@ -6,7 +6,8 @@ export DEBIAN_FRONTEND=noninteractive if [[ $OSTYPE == "darwin"* ]] then brew install gcc git cmake - brew install llvm + #brew install llvm + conda install -y -c conda-forge clangdev elif [[ "$(grep '^ID_LIKE' /etc/os-release)" == *"centos"* ]] then sudo yum update -y && sudo yum install -y gcc gcc-c++ llvm-devel cmake3 git