|
|
@@ -156,12 +156,7 @@ function run_single_simulation(topology_type::Structure, depth::Int, width::Int,
|
|
|
|
|
|
# Setup
|
|
|
AgentUnion = Union{DelayedAtomic, Generator}
|
|
|
-# model = compile_devs(env; logging=L)
|
|
|
- @time model = compile_devs(env; logging=L)
|
|
|
-# Profile.clear()
|
|
|
-# @profile model = compile_devs(env; logging=L)
|
|
|
-# Profile.print(format=:flat, sortedby=:count)
|
|
|
-
|
|
|
+ model = compile_devs(env; logging=L)
|
|
|
# println("Number of Atomic: $(nagents(model))")
|
|
|
engine_setup_time = time()
|
|
|
|
|
|
@@ -234,7 +229,6 @@ function main()
|
|
|
if output
|
|
|
println("Warming up JIT for $model_str...")
|
|
|
end
|
|
|
- run_single_simulation(topology_type, 2, 2, false, false, false, "", interval)
|
|
|
|
|
|
if memory
|
|
|
mem_file = joinpath(mem_dir, "$(model_str)$(suffix).sqlite")
|
|
|
@@ -242,6 +236,7 @@ function main()
|
|
|
if !args["append"] && isfile(mem_file)
|
|
|
rm(mem_file)
|
|
|
end
|
|
|
+ run_single_simulation(topology_type, max_depth, max_width, false, false, false, "", interval)
|
|
|
|
|
|
println("Measuring memory (Timing results will not be saved)...")
|
|
|
t_c, t_setup, t_sim, model = run_single_simulation(topology_type, max_depth, max_width, stats, logging, profile, mem_file, interval)
|
|
|
@@ -265,6 +260,7 @@ function main()
|
|
|
|
|
|
for depth in ds:ds:max_depth
|
|
|
for width in ws:ws:max_width
|
|
|
+ run_single_simulation(topology_type, depth, width, false, false, false, "", interval)
|
|
|
for run in 0:(repetitions - 1)
|
|
|
if output || stats
|
|
|
println("Running $model_str (D:$depth, W:$width) - Repetition $run...")
|