These instructions were written for our system running CentOS 6.6 using the following SHA of Bazel and TensorFlow:
- Bazel : c553e35976582ca861040dac3af12c5ed9f11ede
- TensorFlow : 3972c791b9f4d9a61b9ad6399b481df396f359ff
- GCC 4.6.x or greater
from deap import base | |
from deap import creator | |
def hash_ind_list(self): | |
return hash(tuple(self)) | |
creator.create("FitnessMin", base.Fitness, weights=(-1.0,)) | |
creator.create("Individual", list, fitness=creator.FitnessMin, __hash__=hash_ind_list) |
#!/bin/bash -f | |
#PBS -N apache-spark | |
#PBS -l nodes=2:ppn=8 | |
#PBS -l walltime=00:01:00:00 | |
#PBS -A <specify account> | |
# Define variables | |
SPARK_MASTER="spark://$HOSTNAME:7077" | |
SPARK_HOME=<specify where is spark installed> |
Compile Bazel 0.2.3
module purge -f
module load compilers/gcc/4.8.5 compilers/java/1.8 apps/buildtools
cd /software-gpu/src/
mkdir bazel023_tensorflow0.8
cd bazel023_tensorflow0.8
Compile Bazel 0.3.0
module purge -f
module load compilers/gcc/4.8.5 compilers/java/1.8 apps/buildtools
cd /software6/apps/bazel
wget https://github.com/bazelbuild/bazel/archive/0.3.0.tar.gz
tar xvf 0.3.0.tar.gz
mv {bazel-,}0.3.0
from ctypes import CDLL | |
from ctypes.util import find_library | |
LIBPAM = CDLL(find_library("pam")) | |
PAM_STRERROR = LIBPAM.pam_strerror |
module purge -f
module load apps/git compilers/gcc/4.8.5 apps/buildtools
git clone https://github.com/google/protobuf.git
cd protobuf
export CXXFLAGS='-fPIC'
export CFLAGS='-fPIC'
./configure
module purge -f
module load apps/git compilers/gcc/4.8.5 apps/buildtools
git clone https://github.com/google/protobuf.git
cd protobuf
export CXXFLAGS='-fPIC'
export CFLAGS='-fPIC'
./autogen.sh
module purge -f
module load compilers/gcc/4.8.5 compilers/java/1.8 apps/buildtools
cd /tmp
wget https://github.com/bazelbuild/bazel/archive/0.4.3.tar.gz
tar xvf 0.4.3.tar.gz
mv {bazel-,}0.4.3
cd 0.4.3