Changeset 4449
- Timestamp:
- 08/25/08 08:36:36 (5 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
examples/threads/mtbatch/mtbatch.lgt (modified) (3 diffs)
-
RELEASE_NOTES.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/threads/mtbatch/mtbatch.lgt
r4413 r4449 330 330 write('COP'), put_char('\t'), 331 331 loop::forto(Liters, 1, 14, 332 ( catch(run(competitive(Liters, 5, 9, 14), N, Average), Error, write_error) -> 332 ( catch(run(cop_search(Liters, 5, 9, 14), N, Average), Error, write_error) -> 333 ( var(Error) -> 334 write_average(Average) 335 ; true 336 ) 337 )), nl, 338 write('DF+HC+BF'), put_char('\t'), 339 loop::forto(Liters, 1, 14, 340 ( catch(run(cop_overhead(Liters, 5, 9, 14), N, Average), Error, write_error) -> 333 341 ( var(Error) -> 334 342 write_average(Average) … … 446 454 do_benchmark(breadth_first(_, _, _, _), _). 447 455 448 do_benchmark(co mpetitive(Liters, Jug1, Jug2, MaxDepth), N) :-456 do_benchmark(cop_search(Liters, Jug1, Jug2, MaxDepth), N) :- 449 457 Obj = salt(Liters, Jug1, Jug2), 450 458 Obj::initial_state(Initial), … … 456 464 )), 457 465 fail. 458 do_benchmark(competitive(_, _, _, _), _). 466 do_benchmark(cop_search(_, _, _, _), _). 467 468 do_benchmark(cop_overhead(Liters, Jug1, Jug2, MaxDepth), N) :- 469 Obj = salt(Liters, Jug1, Jug2), 470 Obj::initial_state(Initial), 471 repeat(N), 472 threaded(( 473 catch(depth_first(MaxDepth)::solve(Obj, Initial, _), _, fail), 474 catch(hill_climbing(MaxDepth)::solve(Obj, Initial, _, _), _, fail), 475 catch(breadth_first(MaxDepth)::solve(Obj, Initial, _), _, fail) 476 )), 477 fail. 478 do_benchmark(cop_overhead(_, _, _, _), _). 459 479 460 480 walltime_begin(Walltime) :- -
trunk/RELEASE_NOTES.txt
r4447 r4449 71 71 GNU Prolog, SWI-Prolog, and YAP. Thanks to Markus Triska for his help 72 72 with the YAP and SWI-Prolog CLP(FD) examples. 73 74 Updated the "mtbatch" example to provide multi-threading overhead data 75 for the competitive or-parallelism benchmark. 73 76 74 77
