LLNL / benchpark

An open collaborative repository for reproducible specifications of HPC benchmarks and cross site benchmarking environments
https://software.llnl.gov/benchpark/
Apache License 2.0
27 stars 25 forks source link

Pass Benchpark and Ramble variables to Caliper #355

Open pearce8 opened 2 months ago

pearce8 commented 2 months ago
daboehme commented 1 month ago

Hi @dyokelson, I've added some new capabilities in Caliper to import run metadata through the Caliper config strings. This is in the current Caliper master branch. You can pass in metadata key-value pairs directly like so:

CALI_CONFIG="spot,metadata(foo=fooval,bar=barval)"

Alternatively you can read it from json file:

CALI_CONFIG="spot,metadata(file=data.json)"

The file should be a json dictionary:

{ "foo": "fooval", "bar": "barval" }

It allows for more complex cases too, e.g. you can have nested dictionaries and specify individual keys you want to read instead of reading the whole file. You can also combine the two options or read multiple files by adding more metadata(...) entries. Let me know if you want to learn more.