Skip to content

Commit

Permalink
Merge pull request #3 from LLNL/master
Browse files Browse the repository at this point in the history
master merge
  • Loading branch information
koning authored Dec 5, 2019
2 parents 567de25 + 9bb46c0 commit cbcfdeb
Show file tree
Hide file tree
Showing 30 changed files with 44 additions and 15 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ install:
- "pip install --upgrade pip"
- "pip install cryptography"
- "pip install -r requirements.txt"
- "pip install -r workflows/feature_demo/requirements.txt"
- "pip install -e ."
- "pip install -r requirements/mysql.txt"
- "pip install --upgrade sphinx"
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ All notable changes to Merlin will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.4] - 2019-12-04

### Added
- `requirements.txt` files and `scripts` directories for internal workflow examples.

### Fixed
- Added missing dependency `tabulate` to `release.txt`.

## [1.0.3] - 2019-12-04

### Added
Added the requirements files to the MANIFEST.in file for source
distributions.

## [1.0.2] - 2019-12-04
Negligible changes related to PyPI.

## [1.0.1] - 2019-12-04
Negligible changes related to PyPI.

## [1.0.0] - 2019-11-19
First public release. See the docs and merlin -h for details.
Here are some highlights.
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ prune docs
prune tests
include workflows/*
include merlin/data/*
include requirements.txt
include requirements/*
2 changes: 1 addition & 1 deletion merlin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import sys


__version__ = "1.0.2"
__version__ = "1.0.4"
VERSION = __version__
PATH_TO_PROJ = os.path.join(os.path.dirname(__file__), "")

Expand Down
2 changes: 2 additions & 0 deletions requirements/release.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ celery[redis]>=4.3.0
coloredlogs
cryptography
importlib_resources; python_version < '3.7'
# maestrowf>=1.1.5
numpy
parse
psutil>=5.1.0
pyyaml>=5.1.2
tabulate

# Install tip of maestrowf
-e git+https://github.com/LLNL/maestrowf.git#egg=maestrowf
13 changes: 7 additions & 6 deletions workflows/feature_demo/feature_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ env:
WORKER_NAME: demo_worker
VERIFY_QUEUE: default_verify_queue

HELLO: $(SPECROOT)/hello_world.py
FEATURES: $(SPECROOT)/features.json
TRANSLATE: $(SPECROOT)/translator.py
COLLECT: $(SPECROOT)/collector.py
MAKE_SAMPLES: $(SPECROOT)/make_samples.py
SCRIPTS: $(SPECROOT)/scripts
HELLO: $(SCRIPTS)/hello_world.py
FEATURES: $(SCRIPTS)/features.json
TRANSLATE: $(SCRIPTS)/translator.py
COLLECT: $(SCRIPTS)/collector.py
MAKE_SAMPLES: $(SCRIPTS)/make_samples.py

SHARED: $(SPECROOT)/../shared
LEARN: $(SHARED)/learn.py
Expand Down Expand Up @@ -137,7 +138,7 @@ merlin:
args: -l INFO --concurrency 3 --prefetch-multiplier 1 -Ofair
samples:
generate:
cmd: python $(SPECROOT)/make_samples.py -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
cmd: python $(MAKE_SAMPLES) -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
# can be a file glob of numpy sample files.
file: $(MERLIN_INFO)/samples.npy
column_labels: [X0, X1]
Expand Down
1 change: 1 addition & 0 deletions workflows/feature_demo/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sklearn
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions workflows/flux/flux_par.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ study:
- description: Build the code
name: build
run:
cmd: mpicc -o mpi_hello $(SPECROOT)/hello.c >& build.out
cmd: mpicc -o mpi_hello $(SPECROOT)/scripts/hello.c >& build.out
task_queue: flux_par
- description: Echo the params
name: runs
Expand Down Expand Up @@ -60,4 +60,4 @@ merlin:
column_labels: [V1, V2]
file: $(MERLIN_INFO)/samples.npy
generate:
cmd: python $(SPECROOT)/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
cmd: python $(SPECROOT)/scripts/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
6 changes: 3 additions & 3 deletions workflows/flux/paper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ study:
name: build
run:
cmd: |
mpicc -o mpi_hello_sleep $(SPECROOT)/hello_sleep.c >& build.out
mpicc -o mpi_hello_sleep $(SPECROOT)/scripts/hello_sleep.c >& build.out
# Add start time to flux
flux wreck setenv FLUX_START_TIME=${FLUX_START_TIME}
flux wreck setenv FLUX_START_SECONDS=${FLUX_START_SECONDS}
Expand Down Expand Up @@ -47,7 +47,7 @@ study:
run:
cmd: |
#export PATH=/collab/usr/gapps/merlin/spack/idesign/${SYS_TYPE}/bin:$PATH
$(SPECROOT)/flux_info.py >flux_timings.out
$(SPECROOT)/scripts/flux_info.py >flux_timings.out
depends: [runs*]
task_queue: flux_paper

Expand All @@ -68,4 +68,4 @@ merlin:
column_labels: [V1, V2]
file: $(MERLIN_INFO)/samples.npy
generate:
cmd: python $(SPECROOT)/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
cmd: python $(SPECROOT)/scripts/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
1 change: 1 addition & 0 deletions workflows/flux/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions workflows/slurm/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions workflows/slurm/slurm_par.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ study:
- description: Build the code
name: build
run:
cmd: mpicc -o mpi_hello $(SPECROOT)/hello.c >& build.out
cmd: mpicc -o mpi_hello $(SPECROOT)/scripts/hello.c >& build.out
task_queue: slurm_par
- description: Echo the params
name: runs
Expand Down Expand Up @@ -46,4 +46,4 @@ merlin:
column_labels: [V1, V2]
file: $(MERLIN_INFO)/samples.npy
generate:
cmd: python $(SPECROOT)/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
cmd: python $(SPECROOT)/scripts/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
2 changes: 1 addition & 1 deletion workflows/slurm/slurm_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ merlin:
column_labels: [V1, V2]
file: $(MERLIN_INFO)/samples.npy
generate:
cmd: python $(SPECROOT)/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy
cmd: python $(SPECROOT)/scripts/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy

0 comments on commit cbcfdeb

Please sign in to comment.