Skip to content

Commit

Permalink
Change env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
facuMH committed Jul 27, 2022
1 parent 0d2b16d commit 896a5d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Celerity's runtime behavior:
should be queried (currently not supported when using hipSYCL).
- `CELERITY_GRAPH_PRINT_MAX_VERTS` sets the maximum number of vertices the
task/command graphs can have above which their GraphViz output will be omitted.
- `CELERITY_DRYRUN_NODES` takes a number and simulates a run with that many nodes
- `CELERITY_DRY_RUN_NODES` takes a number and simulates a run with that many nodes
without actually executing the commands.

## Disclaimer
Expand Down
6 changes: 3 additions & 3 deletions src/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ namespace detail {
if(result.first) { CELERITY_WARN("Support for CELERITY_FORCE_WG has been removed with Celerity 0.3.0."); }
}

// -------------------------------- CELERITY_DRYRUN_NODES ---------------------------------
// -------------------------------- CELERITY_DRY_RUN_NODES ---------------------------------
{
const auto result = get_env("CELERITY_DRYRUN_NODES");
const auto result = get_env("CELERITY_DRY_RUN_NODES");
if(result.first) {
auto dr_parsed = parse_uint(result.second.c_str());
if(!dr_parsed.first) { CELERITY_WARN("CELERITY_DRYRUN_NODES contains invalid value - will be ignored"); }
if(!dr_parsed.first) { CELERITY_WARN("CELERITY_DRY_RUN_NODES contains invalid value - will be ignored"); }
dry_run_nodes = dr_parsed.second;
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/runtime_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ namespace detail {
}

void dry_run_with_nodes(const size_t nodes) {
const std::string dryrun_envvar_name = "CELERITY_DRYRUN_NODES";
const std::string dryrun_envvar_name = "CELERITY_DRY_RUN_NODES";
const auto ste = test_utils::set_test_env(dryrun_envvar_name, std::to_string(nodes));

distr_queue q;
Expand Down

0 comments on commit 896a5d9

Please sign in to comment.