Mercurial > hg > GearsTemplate
changeset 489:1861e41aa96a
Use main generate script for examples
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 29 Dec 2017 18:49:13 +0900 |
parents | 747dd4ba7b44 |
children | ef965008bef1 |
files | src/parallel_execution/examples/bitonicSort/bitonicSort.cbc src/parallel_execution/examples/calc/calc.cbc src/parallel_execution/examples/twice/main.cbc |
diffstat | 3 files changed, 3 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/examples/bitonicSort/bitonicSort.cbc Fri Dec 29 18:31:15 2017 +0900 +++ b/src/parallel_execution/examples/bitonicSort/bitonicSort.cbc Fri Dec 29 18:49:13 2017 +0900 @@ -97,9 +97,5 @@ int main(int argc, char** argv) { init(argc, argv); - struct Context* main_context = NEW(struct Context); - initContext(main_context); - main_context->next = C_initDataGears; - - goto start_code(main_context); + goto initDataGears(); }
--- a/src/parallel_execution/examples/calc/calc.cbc Fri Dec 29 18:31:15 2017 +0900 +++ b/src/parallel_execution/examples/calc/calc.cbc Fri Dec 29 18:49:13 2017 +0900 @@ -95,9 +95,5 @@ int main(int argc, char** argv) { init(argc, argv); - struct Context* main_context = NEW(struct Context); - initContext(main_context); - main_context->next = C_initDataGears; - - goto start_code(main_context); + goto initDataGears(); }
--- a/src/parallel_execution/examples/twice/main.cbc Fri Dec 29 18:31:15 2017 +0900 +++ b/src/parallel_execution/examples/twice/main.cbc Fri Dec 29 18:49:13 2017 +0900 @@ -83,9 +83,5 @@ int main(int argc, char** argv) { init(argc, argv); - struct Context* main_context = NEW(struct Context); - initContext(main_context); - main_context->next = C_initDataGears; - - goto start_code(main_context); + goto initDataGears(); }