Skip to content

Commit e8d8306

Browse files
committed
Adding dot
1 parent 0388d24 commit e8d8306

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
dam = { git = "https://github.com/stanford-ppl/DAM-RS.git", branch = "dev", default-features=false, features = ["coroutines"]}
9+
dam = { git = "https://github.com/stanford-ppl/DAM-RS.git", branch = "dev", default-features=true, features = ["coroutines", "dot"]}
1010
num = "0.4.1"
1111
serde_derive = "1.0.181"
1212
serde = "1.0.181"

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use std::{fs, time::Instant};
44

55
use cli_common::{DamOptions, SamOptionFiles};
6+
use dam::{logging::LogEvent, simulation::*};
67
use prost::Message;
78
use proto_driver::{parse_proto, proto_headers::tortilla::ComalGraph};
89

@@ -48,6 +49,8 @@ fn main() {
4849
println!("Parse Time: {:?}", end_parse - start);
4950
}
5051
let initialized = program_builder.initialize(args.dam_opts.into()).unwrap();
52+
println!("{}", initialized.to_dot_string());
53+
5154
let initialized_time = Instant::now();
5255
if args.breakdowns {
5356
println!("Initialization Time: {:?}", initialized_time - end_parse);

0 commit comments

Comments
 (0)