Mercurial > hg > GearsTemplate
comparison src/parallel_execution/test/multiDimIterator_test.cbc @ 468:ac244346c85d
Change used interface syntax from #include to #interface
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 Dec 2017 18:10:56 +0900 |
parents | 831b7f6fd687 |
children | 3881b91f5820 |
comparison
equal
deleted
inserted
replaced
467:4ec61e201c19 | 468:ac244346c85d |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include <string.h> | 2 #include <string.h> |
3 #include <stdlib.h> | 3 #include <stdlib.h> |
4 #include <unistd.h> | 4 #include <unistd.h> |
5 #include "Iterator.h" | 5 #interface "Iterator.h" |
6 | 6 |
7 #include "../../context.h" | 7 #include "../../context.h" |
8 | 8 |
9 int cpu_num = 1; | 9 int cpu_num = 1; |
10 int length = 1; | 10 int length = 1; |
24 taskManager->taskManager = 0; | 24 taskManager->taskManager = 0; |
25 struct LoopCounter* loopCounter = Gearef(context, LoopCounter); | 25 struct LoopCounter* loopCounter = Gearef(context, LoopCounter); |
26 goto initDataGears(context, loopCounter, taskManager); | 26 goto initDataGears(context, loopCounter, taskManager); |
27 } | 27 } |
28 | 28 |
29 __code code1() { | 29 __code code1(struct LoopCounter* loopCounter) { |
30 printf("cpus:\t\t%d\n", cpu_num); | 30 printf("cpus:\t\t%d\n", cpu_num); |
31 printf("gpus:\t\t%d\n", gpu_num); | 31 printf("gpus:\t\t%d\n", gpu_num); |
32 printf("length:\t\t%d\n", length); | 32 printf("length:\t\t%d\n", length); |
33 /* puts("queue"); */ | 33 /* puts("queue"); */ |
34 /* print_queue(context->data[ActiveQueue]->queue.first); */ | 34 /* print_queue(context->data[ActiveQueue]->queue.first); */ |