Skip to content

Instantly share code, notes, and snippets.

View seominjoon's full-sized avatar

Minjoon Seo seominjoon

View GitHub Profile
@seominjoon
seominjoon / tensorflow-install-gpu-user.sh
Last active July 28, 2017 04:59
Installing tensorflow on gpu machine with user access only. Assumes GPU driver, CUDA, and CUDNN are installed.
# On Ubuntu 14.04 with Titan X (compute capability 5.2)
# There are some missing parts that you have to specify, and some files you have to download manaully from web, so don't run this script file as it is.
# Configure CUDA paths
echo export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64" >> ~/.bashrc
echo export CUDA_HOME="/usr/local/cuda" >> ~/.bashrc
source ~/.bashrc
# Set up java
# Dependencies for Bazel
# Download jdk 8
@seominjoon
seominjoon / torch-install-gpu-ec2.sh
Last active October 20, 2020 03:33
Installing torch with GPU enabled on AWS EC2 (g2 instance) Ubuntu 14.04.
# install torch on ec2 g2 instance
# installing torch
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash # prereqs
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; ./install.sh
source ~/.bashrc
# confirm torch is installed
th
@seominjoon
seominjoon / tensorflow-upgrade.sh
Last active February 19, 2016 19:24
How to upgrade tensorflow pip package for new source code from git repo.
# In tensorflow folder
git pull
./configure
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
sudo pip install /tmp/tensorflow_pkg/SOME_NAME