Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkgutierrez committed May 18, 2018
1 parent 3789684 commit 7bf9787
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ git clone https://xgitlab.cels.anl.gov/sds/sds-repo.git
# Add to spack.
spack repo add sds-repo
# Install via spack.
spack install sdskeyval
spack install --dirty sdskeyval+leveldb
spack install --dirty ssg+mpi
spack install --dirty ch-placement
# Refresh spack environment.
source spack/share/spack/setup-env.sh
# Load sdskeyval modules.
source <(spack module loads --dependencies sdskeyval)
# Load required modules.
source <(spack module loads --dependencies sdskeyval ssg ch-placement)
```

### Get and build sdsdkv.
Expand Down
5 changes: 3 additions & 2 deletions tests/trivial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ main(int argc, char **argv)
if (!db_prefix) db_prefix = (char *)"/tmp";
std::string db_name = std::string(db_prefix) + "/TEST-DB";

auto personality = (
sdsdkv_config_personality personality = (
(rank % 2 == 0) ? SDSDKV_PERSONALITY_SERVER : SDSDKV_PERSONALITY_CLIENT
);

Expand Down Expand Up @@ -131,7 +131,8 @@ main(int argc, char **argv)
//
erc = sdsdkv_open(dkvc);
if (erc != SDSDKV_SUCCESS) ABORT(rank, erc);

// Server instances wait here until shut down by a client during
// sdsdkv_destroy.
if (personality == SDSDKV_PERSONALITY_CLIENT) {
do_puts(dkvc, rank);
MPI_Barrier(pcomm);
Expand Down

0 comments on commit 7bf9787

Please sign in to comment.