Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Crashing on g2.2xlarge? #4

Closed
jonaslund opened this issue Aug 28, 2016 · 1 comment
Closed

Crashing on g2.2xlarge? #4

jonaslund opened this issue Aug 28, 2016 · 1 comment

Comments

@jonaslund
Copy link

jonaslund commented Aug 28, 2016

After installing all the dependencies on a g2.2x.large, it seems to be doing nothing while running

th computeProposals.lua $DEEPMASK/pretrained/deepmask

Here's the install procedure. Not sure if i'm missing something?

mkdir download

# CUDA Toolkit
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y opencl-headers build-essential protobuf-compiler \
    libprotoc-dev libboost-all-dev libleveldb-dev hdf5-tools libhdf5-serial-dev \
    libopencv-core-dev  libopencv-highgui-dev libsnappy-dev libsnappy1 \
    libatlas-base-dev cmake libstdc++6-4.8-dbg libgoogle-glog0 libgoogle-glog-dev \
    libgflags-dev liblmdb-dev git python-pip gfortran
sudo apt-get clean
sudo apt-get install -y linux-image-extra-`uname -r` linux-headers-`uname -r` linux-image-`uname -r`
sudo apt-get install -y cuda
sudo apt-get clean

vim ~/.bashrc
export CUDA_HOME=/usr/local/cuda-7.5
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH
export PATH=${CUDA_HOME}/bin:${PATH}
source ~/.bashrc

#download from cudnn and scp
tar -zxf cudnn-7.5-linux-x64-v5.0-ga.tgz
cd cuda
sudo cp lib64/* /usr/local/cuda/lib64/
sudo cp include/* /usr/local/cuda/include/

# TORCH & DEPS
sudo apt-get install git
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc

cd ~/download
git clone https://github.com/pdollar/coco.git
cd coco
luarocks make LuaAPI/rocks/coco-scm-1.rockspec

luarocks install image
luarocks install tds

cd ~/download
git clone https://github.com/mpx/lua-cjson.git
cd lua-cjson
luarocks make

luarocks install nnx
luarocks install optim
luarocks install cutorch
luarocks install cunn
luarocks install cudnn

#DEEPMASK
cd ~
git clone https://github.com/facebookresearch/deepmask.git
cd deepmask/

DEEPMASK=/home/ubuntu/deepmask

mkdir -p $DEEPMASK/pretrained/deepmask; cd $DEEPMASK/pretrained/deepmask
wget https://s3.amazonaws.com/deepmask/models/deepmask/model.t7
mkdir -p $DEEPMASK/pretrained/sharpmask; cd $DEEPMASK/pretrained/sharpmask
wget https://s3.amazonaws.com/deepmask/models/sharpmask/model.t7

cd $DEEPMASK

th computeProposals.lua $DEEPMASK/pretrained/deepmask
@jonaslund jonaslund changed the title Crashing on g2.2xlarge Crashing on g2.2xlarge? Aug 28, 2016
@jonaslund
Copy link
Author

jonaslund commented Aug 28, 2016

Never mind. Cuda not installed properly. Updated the install procedure with correct installation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant