module purge -f
module load compilers/gcc/4.8.5 compilers/java/1.8 apps/buildtools\
cuda/7.5 libs/cuDNN/5 compilers/swig apps/git apps/bazel/0.4.3
mkdir -p /tmp/$USER
cd /tmp/$USER
git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| Field | Value | | |
+-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| OS-DCF:diskConfig | MANUAL | | |
| OS-EXT-AZ:availability_zone | nova |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "`date` $2 $1" >> /etc/slurm/elastic.log | |
# Parsing slurm array format (ex. `node[1-4]`, `node[1,3-5]`, `node2`) | |
node=$(echo "$1" | grep -Po '[a-zA-Z]+') | |
gcloud auth activate-service-account --key-file=/etc/slurm/credentials.json | |
for i in $(echo "$1" | grep -Po '\d+[-\d+]*') | |
do | |
range=$(echo "$i" | grep -Po '\d+') | |
if [[ `echo $range | wc -w` -eq 1 ]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "openstack" {} | |
data "openstack_networking_network_v2" "network_internal" { | |
external = "False" | |
} | |
data "openstack_networking_network_v2" "network_external" { | |
external = "True" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(function(require) { | |
var $ = require('jquery'); | |
var Jupyter = require('base/js/namespace'); | |
var utils = require('base/js/utils'); | |
var base_url = utils.get_body_data('baseUrl'); | |
var lmod_class = require('../jupyterlmod/lmod'); | |
var lmod = new lmod_class.Lmod(base_url); | |
function load() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Useful stack overflow thread | |
# https://stackoverflow.com/questions/37761469/how-to-add-external-header-files-during-bazel-tensorflow-build | |
# https://stackoverflow.com/questions/43921911/how-to-resolve-bazel-undeclared-inclusions-error | |
# Successful build with VERBS, GDR and MPI : /dev/shm/fafor10/tf_1511368394/tensorflow | |
set -e | |
function usage() { | |
echo "Usage:" | |
echo "Load a python module then, call" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
module purge -f | |
module load compilers/gcc/4.8.5 compilers/java/1.8 apps/buildtools cuda/7.5 libs/cuDNN/5 compilers/swig apps/git apps/bazel/0.4.3 | |
OPWD=$(pwd) | |
TF_COMPILE_PATH=/tmp/${USER}_$(date +'%s') | |
BAZEL_ROOT_PATH=$TF_COMPILE_PATH/bazel | |
mkdir -p $TF_COMPILE_PATH; cd $TF_COMPILE_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wtforms import Form | |
from jinja2 import Template | |
from collections import Sequence | |
from traitlets import Type, HasTraits | |
class MetaSpawnerForm(Form): | |
form_template = Template(""" | |
{% for field in form %} | |
{{ field.label() }} | |
{{ field() }} |
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
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
NewerOlder