-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1024 from pnorbert/hdf5-blockinfo
Hdf5 blockinfo
- Loading branch information
Showing
8 changed files
with
280 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
double a 3*{100, 200} = 0 / 0 | ||
step 0: | ||
block 0: [ 0:99, 0:199] = 0 / 0 | ||
step 1: | ||
block 0: [ 0:99, 0:199] = 0 / 0 | ||
step 2: | ||
block 0: [ 0:99, 0:199] = 0 / 0 | ||
float b 3*{100} = 0 / 0 | ||
step 0: | ||
block 0: [ 0:99] = 0 / 0 | ||
step 1: | ||
block 0: [ 0:99] = 0 / 0 | ||
step 2: | ||
block 0: [ 0:99] = 0 / 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
double a 3*{100, 200} = 0 / 0 | ||
step 0: | ||
block 0: [ 0:99, 0:199] = 0 / 0 | ||
step 1: | ||
block 0: [ 0:99, 0:199] = 0 / 0 | ||
step 2: | ||
block 0: [ 0:99, 0:199] = 0 / 0 | ||
float b 3*{100} = 0 / 0 | ||
step 0: | ||
block 0: [ 0:99] = 0 / 0 | ||
step 1: | ||
block 0: [ 0:99] = 0 / 0 | ||
step 2: | ||
block 0: [ 0:99] = 0 / 0 | ||
float c 3*{100, 200, 300} = 0 / 0 | ||
step 0: | ||
block 0: [ 0:99, 0:199, 0:299] = 0 / 0 | ||
step 1: | ||
block 0: [ 0:99, 0:199, 0:299] = 0 / 0 | ||
step 2: | ||
block 0: [ 0:99, 0:199, 0:299] = 0 / 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Config file for Task 1 in a pipeline | ||
# - Produce variables a b c | ||
# - Write variables a b c to pipe2_write.h5 | ||
|
||
# Config file for Task 2 in a pipeline | ||
# - Read in variables a b from Task 1 (ignore c) from pipe2_write.h5 | ||
# using a different decomposition | ||
# - Write variables a b to pipe2_read.h5 | ||
|
||
|
||
group io_T1 | ||
# item type varname N [dim1 dim2 ... dimN decomp1 decomp2 ... decompN] | ||
array double a 2 100 200 X YZ | ||
array float b 1 100 XYZ | ||
array float c 3 100 200 300 XY z 1 | ||
|
||
group io_T2_in | ||
# item type varname N [dim1 dim2 ... dimN decomp1 decomp2 ... decompN] | ||
array double a 2 100 200 XY Z | ||
array float b 1 100 XYZ | ||
|
||
group io_T2_out | ||
# use all variables read into io_T2_in in the output | ||
link group io_T2_in | ||
|
||
|
||
|
||
# Task 1 actions | ||
app 1 | ||
steps 3 | ||
sleep 0.1 | ||
# write all of io_T1 into pipe2_write.h5 | ||
write pipe2_write.h5 io_T1 | ||
|
||
# Task 2 actions | ||
app 2 | ||
steps over pipe2_write.h5 | ||
# read a & b from pipe2_write.h5 using io_T2_in definition with blocking wait | ||
read next pipe2_write.h5 io_T2_in -1 a b | ||
|
||
# Sleep and write only if read was successful: | ||
cond pipe2_write.h5 sleep 0.1 | ||
# write io_T2 into pipe2_read.h5 | ||
cond pipe2_write.h5 write pipe2_read.h5 io_T2_out | ||
|
||
sleep 0.123456789 | ||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0"?> | ||
<adios-config> | ||
|
||
<!-- example engines | ||
<engine type="BPFile"/> | ||
<engine type="HDF5"/> | ||
<engine type="SST"/> | ||
<engine type="InSituMPI"/> | ||
--> | ||
|
||
|
||
<!--=========================================== | ||
Configuration for io_T1 group | ||
==========================================--> | ||
|
||
<io name="io_T1"> | ||
<engine type="HDF5"> | ||
</engine> | ||
</io> | ||
|
||
|
||
<!--========================================= | ||
Configuration for io_T2_in group | ||
It should match the io_T1 output group | ||
=========================================--> | ||
|
||
<io name="io_T2_in"> | ||
<engine type="HDF5"> | ||
</engine> | ||
</io> | ||
|
||
<!--========================================= | ||
Configuration for io_T2_out group | ||
=========================================--> | ||
|
||
<io name="io_T2_out"> | ||
<engine type="HDF5"> | ||
</engine> | ||
</io> | ||
|
||
|
||
</adios-config> |