From 937f6851a074a0ae1d44985c133a5475ed196f54 Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Fri, 13 Feb 2015 01:23:02 +0900 Subject: [PATCH 1/2] Fix not_if condition of execute[install caffe] --- itamae/caffe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itamae/caffe.rb b/itamae/caffe.rb index fb65d24..5bf3df1 100644 --- a/itamae/caffe.rb +++ b/itamae/caffe.rb @@ -7,5 +7,5 @@ execute 'install caffe' do command "env CPU_ONLY=#{node['caffe']['cpu_only'] ? 1 : 0} sh /vagrant/itamae/install_caffe.sh" - not_if 'test -x /usr/local/caffe/bin/caffe.bin' + not_if 'test -x /usr/local/caffe/distribute/bin/caffe.bin' end From 34ebc8ea199c0ffb093ae5d6b846da759aa2d75e Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Fri, 13 Feb 2015 07:41:26 +0900 Subject: [PATCH 2/2] Pylern2 --- itamae/default.rb | 1 + itamae/install_pylearn2.sh | 3 +++ itamae/pylearn2.rb | 5 +++++ itamae/pylearn2_deps.rb | 6 ++++++ itamae/theano.rb | 5 +++++ itamae/theano_deps.rb | 11 +++++++++++ 6 files changed, 31 insertions(+) create mode 100644 itamae/install_pylearn2.sh create mode 100644 itamae/pylearn2.rb create mode 100644 itamae/pylearn2_deps.rb create mode 100644 itamae/theano.rb create mode 100644 itamae/theano_deps.rb diff --git a/itamae/default.rb b/itamae/default.rb index 2815efc..7306b2d 100644 --- a/itamae/default.rb +++ b/itamae/default.rb @@ -2,4 +2,5 @@ include_recipe 'cuda.rb' include_recipe 'torch.rb' include_recipe 'caffe.rb' +include_recipe 'pylearn2.rb' include_recipe 'r.rb' diff --git a/itamae/install_pylearn2.sh b/itamae/install_pylearn2.sh new file mode 100644 index 0000000..f3d6787 --- /dev/null +++ b/itamae/install_pylearn2.sh @@ -0,0 +1,3 @@ +git clone git://github.com/lisa-lab/pylearn2.git /usr/local/pylearn2 +cd /usr/local/pylearn2 +python setup.py develop diff --git a/itamae/pylearn2.rb b/itamae/pylearn2.rb new file mode 100644 index 0000000..2e55359 --- /dev/null +++ b/itamae/pylearn2.rb @@ -0,0 +1,5 @@ +include_recipe 'pylearn2_deps.rb' + +execute 'install pylearn2' do + command "sh /vagrant/itamae/install_pylearn2.sh" +end diff --git a/itamae/pylearn2_deps.rb b/itamae/pylearn2_deps.rb new file mode 100644 index 0000000..8eb21fb --- /dev/null +++ b/itamae/pylearn2_deps.rb @@ -0,0 +1,6 @@ +include_recipe 'theano.rb' + +package 'python-pil' +package 'python-yaml' +package 'python-matplotlib' +package 'cython' diff --git a/itamae/theano.rb b/itamae/theano.rb new file mode 100644 index 0000000..ef144f7 --- /dev/null +++ b/itamae/theano.rb @@ -0,0 +1,5 @@ +include_recipe 'theano_deps.rb' + +execute 'install Theano' do + command 'pip install Theano' +end diff --git a/itamae/theano_deps.rb b/itamae/theano_deps.rb new file mode 100644 index 0000000..1e22c07 --- /dev/null +++ b/itamae/theano_deps.rb @@ -0,0 +1,11 @@ +package 'gcc' +package 'g++' +package 'gfortran' +package 'build-essential' +package 'linux-image-generic' +package 'libopenblas-dev' +package 'python-dev' +package 'python-pip' +package 'python-nose' +package 'python-numpy' +package 'python-scipy'