mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
15
install.sh
15
install.sh
@@ -1,9 +1,5 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
if [ "${HTTPS_PROXY}" == "" ]; then
|
|
||||||
HTTPS_PROXY="${https_proxy}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
prompt () {
|
prompt () {
|
||||||
# prints a yes / no question to the user and returns the answer
|
# prints a yes / no question to the user and returns the answer
|
||||||
# first argument is the prompt question
|
# first argument is the prompt question
|
||||||
@@ -48,6 +44,7 @@ INSTALL_COACH=0
|
|||||||
INSTALL_DASHBOARD=0
|
INSTALL_DASHBOARD=0
|
||||||
INSTALL_GYM=0
|
INSTALL_GYM=0
|
||||||
INSTALL_VIRTUAL_ENVIRONMENT=1
|
INSTALL_VIRTUAL_ENVIRONMENT=1
|
||||||
|
INSTALL_NEON=0
|
||||||
|
|
||||||
# Get user preferences
|
# Get user preferences
|
||||||
TEMP=`getopt -o cpgvrmeNndh \
|
TEMP=`getopt -o cpgvrmeNndh \
|
||||||
@@ -78,7 +75,7 @@ while true; do
|
|||||||
GET_PREFERENCES_MANUALLY=0;
|
GET_PREFERENCES_MANUALLY=0;
|
||||||
shift;;
|
shift;;
|
||||||
-d|--debug) set -x; shift;;
|
-d|--debug) set -x; shift;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
echo "Available command line arguments:"
|
echo "Available command line arguments:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " -c | --coach - Install Coach requirements"
|
echo " -c | --coach - Install Coach requirements"
|
||||||
@@ -142,13 +139,13 @@ sudo -E apt-get install libboost-all-dev -y
|
|||||||
# Coach
|
# Coach
|
||||||
if [ ${INSTALL_COACH} -eq 1 ]; then
|
if [ ${INSTALL_COACH} -eq 1 ]; then
|
||||||
echo "Installing Coach requirements"
|
echo "Installing Coach requirements"
|
||||||
pip install -r ./requirements_coach.txt --proxy ${HTTPS_PROXY}
|
pip install -r ./requirements_coach.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Dashboard
|
# Dashboard
|
||||||
if [ ${INSTALL_DASHBOARD} -eq 1 ]; then
|
if [ ${INSTALL_DASHBOARD} -eq 1 ]; then
|
||||||
echo "Installing Dashboard requirements"
|
echo "Installing Dashboard requirements"
|
||||||
pip install -r ./requirements_dashboard.txt --proxy ${HTTPS_PROXY}
|
pip install -r ./requirements_dashboard.txt
|
||||||
sudo -E apt-get install dpkg-dev build-essential python3.5-dev libjpeg-dev libtiff-dev libsdl1.2-dev libnotify-dev \
|
sudo -E apt-get install dpkg-dev build-essential python3.5-dev libjpeg-dev libtiff-dev libsdl1.2-dev libnotify-dev \
|
||||||
freeglut3 freeglut3-dev libsm-dev libgtk2.0-dev libgtk-3-dev libwebkitgtk-dev libgtk-3-dev libwebkitgtk-3.0-dev libgstreamer-plugins-base1.0-dev -y
|
freeglut3 freeglut3-dev libsm-dev libgtk2.0-dev libgtk-3-dev libwebkitgtk-dev libgtk-3-dev libwebkitgtk-3.0-dev libgstreamer-plugins-base1.0-dev -y
|
||||||
|
|
||||||
@@ -192,7 +189,7 @@ if [ ${INSTALL_NEON} -eq 1 ]; then
|
|||||||
cd ngraph
|
cd ngraph
|
||||||
make install -j
|
make install -j
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Neon
|
# Neon
|
||||||
sudo -E apt-get install libhdf5-dev libyaml-dev pkg-config clang -y
|
sudo -E apt-get install libhdf5-dev libyaml-dev pkg-config clang -y
|
||||||
git clone https://github.com/NervanaSystems/neon.git
|
git clone https://github.com/NervanaSystems/neon.git
|
||||||
@@ -202,5 +199,3 @@ fi
|
|||||||
|
|
||||||
# Intel Optimized TensorFlow
|
# Intel Optimized TensorFlow
|
||||||
pip3 install https://anaconda.org/intel/tensorflow/1.3.0/download/tensorflow-1.3.0-cp35-cp35m-linux_x86_64.whl
|
pip3 install https://anaconda.org/intel/tensorflow/1.3.0/download/tensorflow-1.3.0-cp35-cp35m-linux_x86_64.whl
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user