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

Commit

Permalink
Initial repository files
Browse files Browse the repository at this point in the history
  • Loading branch information
rpennec committed Feb 8, 2021
1 parent 6cb896f commit d425157
Show file tree
Hide file tree
Showing 239 changed files with 38,432 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bazelrc
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.jenkins/
docker/
results/
architectures/
gym-quadcopter/
Makefile
model/
modules/
NN_files/
run/
training/
utils/
bazel-*/
4 changes: 4 additions & 0 deletions .jenkins/ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Continuous integration test
# Called inside the container
bazel test --deleted_packages='//papers/hscc_2021/rep/instructions,//papers/hscc_2021/src' //...
5 changes: 5 additions & 0 deletions .jenkins/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
make build
export CHECKPOINTS_VOLUME=checkpoints
export RESULTS_VOLUME=results
make test
2 changes: 2 additions & 0 deletions .stamps/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
24 changes: 24 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
alias(
name = "training",
actual = "//run:training",
)

alias(
name = "plots",
actual = "//run:plots",
)

alias(
name = "export",
actual = "//run:export_sherlock",
)

alias(
name = "test",
actual = "//run:test",
)

alias(
name = "observer",
actual = "//run:observer",
)
47 changes: 47 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
PLATFORM = third_party/brezel

# Makes sure the Research Platform gets pulled as a submodule into $(PLATFORM)
# Installs hooks to automate submodule updates on pull
# WARNING: uncommitted modifications in $(PLATFORM) will be lost!
.PHONY: init
init:
git submodule sync --recursive
git submodule update --init --recursive --force
git config core.hooksPath $(PLATFORM)/scripts/githooks/project_repo

# Upgrade brezel
# Running `make upgrade` will fast-forward folder third_party/brezel into the
# current master commit of the brezel repository.
# You usually need to run this rule if you want to use new features from the Research Platform.
# WARNING: running this command will create a commit in the present project.
# WARNING: uncommitted modifications in $(PLATFORM) will be lost!
.PHONY: upgrade
upgrade:
git submodule foreach git fetch origin
git submodule foreach git checkout origin/master --force
git commit $(PLATFORM) --message 'RESEARCH PLATFORM: upgrade submodule'

# Call rule from brezel's Makefile
# If the rule is not defined in the present Makefile, we forward it the the Makefile
# located in $(PLATFORM).
# Typical usage: build, run, run-list
.PHONY: phony_explicit
phony_explicit:
%: phony_explicit
@$(MAKE) --no-print-directory --makefile=$(PLATFORM)/Makefile $@ ROOT=$(PWD)/$(PLATFORM)


##
# Makefile rules specific to this project
##

# Path to the bazel sandbox
BAZELBIN = $(shell bazel info bazel-bin 2>/dev/null)
bazel-run:
@ln -s $(BAZELBIN)/run $@

.PHONY: tensorboard
tensorboard:
@echo In the container run \t tensorboard --logdir /results/CHOOSE_RESULTS_DIR --bind_all
@echo Open http://localhost:6006
@docker run -it --rm -u `id -u`:`id -g` -v `pwd`/results:/results -p 6006:6006 tensorflow/tensorflow:latest-gpu
Loading

0 comments on commit d425157

Please sign in to comment.