Skip to content

Commit

Permalink
cleanup, add sample script
Browse files Browse the repository at this point in the history
  • Loading branch information
frankwillmore committed Oct 24, 2022
1 parent 55ba05a commit 8268eaf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 47 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ To verify whether metadata reads were in fact performed collectively:

### never_fill

Specify this to keep HDF5 from explicitly writing a fill value. The filesystem will typically have its own mechanism of ensuring you are not receiving 'reclaimed data' from the last user of the disk space. The kernel operates on the assumption that a program will be writing unique data from each process, and ignores whatever is there initially. See the reference manual if you would like to set a fill value explicitly.
Specify this to keep HDF5 from explicitly writing a fill value. The filesystem will typically have its own mechanism of ensuring you are not receiving 'reclaimed data' from the last user of the disk space. The kernel operates on the assumption that a program will be writing unique data from each process, and ignores whatever is there initially. See the HDF5 reference manual (H5Pset_fill_time) for more.

// Implementation in C
if (never_fill) assert(H5Pset_fill_time(dcpl, H5D_FILL_TIME_NEVER ) >= 0);
if (never_fill) herr_retval = H5Pset_fill_time(dcpl, H5D_FILL_TIME_NEVER);

## Dynamically loadable fill plugins

Expand Down
41 changes: 0 additions & 41 deletions scripts/sample.pbs

This file was deleted.

15 changes: 11 additions & 4 deletions scripts/sample.slurm
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,28 @@
#SBATCH --job-name seism-core_4_144
#SBATCH --output=%j-%x.out

export SEISM_SCRATCH=~/scratch/seism-core

mkdir -p ~/scratch/seism-core
cd ~/scratch/seism-core
mkdir -p ${SEISM_SCRATCH}
cd ${SEISM_SCRATCH}
rm -f seism-test.h5

export TIME_STEPS=10

ml gcc mpich hdf5 seism-core
ml gcc mpich seism-core

# seism-core test script as a heredoc, starts from here:
mpirun seism-core << EOF
processor 4 4 4
processor 3 3 16
chunk 180 128 128
domain 360 128 128
lfs_stripe_count 2
time ${TIME_STEPS}
collective_write
never_fill
DONE
EOF
# end of test script

# clean up
rm -f seism-test.h5

0 comments on commit 8268eaf

Please sign in to comment.