annotate src/parallel_execution/Todo @ 224:578f283efb4a

Add Todo
author one
date Fri, 13 Jan 2017 18:16:02 +0900
parents 8d2519c3a36e
children 47588c28f189
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
224
578f283efb4a Add Todo
one
parents: 223
diff changeset
1 Fri Jan 13 17:47:40 JST 2017
578f283efb4a Add Todo
one
parents: 223
diff changeset
2 Task は contextを直接使うことにする
578f283efb4a Add Todo
one
parents: 223
diff changeset
3 DS には, まっているcontextをListを作る
578f283efb4a Add Todo
one
parents: 223
diff changeset
4 context に実行中断中のCS の番号をいれるフィールドを用意する
578f283efb4a Add Todo
one
parents: 223
diff changeset
5 待っているDS のcount
578f283efb4a Add Todo
one
parents: 223
diff changeset
6 createTaskの手順
578f283efb4a Add Todo
one
parents: 223
diff changeset
7 新しくcontextを作る
578f283efb4a Add Todo
one
parents: 223
diff changeset
8 allocate 用のheap も用意
578f283efb4a Add Todo
one
parents: 223
diff changeset
9 もとのcontextを全部copyする or 必要なものだけcopyする
578f283efb4a Add Todo
one
parents: 223
diff changeset
10 待ち合わせのDS群を指定する
578f283efb4a Add Todo
one
parents: 223
diff changeset
11 終わったあとの行き先を指定する(default は task_exit)
578f283efb4a Add Todo
one
parents: 223
diff changeset
12 exception の行き先も必要な指定する
578f283efb4a Add Todo
one
parents: 223
diff changeset
13 待っているDSが全部揃っていたら active Queueに入れる
578f283efb4a Add Todo
one
parents: 223
diff changeset
14 task の実行
578f283efb4a Add Todo
one
parents: 223
diff changeset
15 taskの実行後、 goto meta する直前で code gear commit を呼んで, Reader list を消化する
578f283efb4a Add Todo
one
parents: 223
diff changeset
16 複数から参照されるDSは一旦localに書き出して, その後atomic に書き出す
578f283efb4a Add Todo
one
parents: 223
diff changeset
17 複数から参照されるDSは何かしら宣言が必要
578f283efb4a Add Todo
one
parents: 223
diff changeset
18 つまり DS には 一つ一つ owner がいる
578f283efb4a Add Todo
one
parents: 223
diff changeset
19
175
00107b452a04 add Todo
mir3636
parents:
diff changeset
20 Mon Nov 28 17:39:39 JST 2016
00107b452a04 add Todo
mir3636
parents:
diff changeset
21
00107b452a04 add Todo
mir3636
parents:
diff changeset
22 Task,TaskManager,Workerのインターフェースの実装を作成する
00107b452a04 add Todo
mir3636
parents:
diff changeset
23 Taskを一旦Treeに入れずに直接Queueに入れる
00107b452a04 add Todo
mir3636
parents:
diff changeset
24
00107b452a04 add Todo
mir3636
parents:
diff changeset
25 Task
00107b452a04 add Todo
mir3636
parents:
diff changeset
26 CodeGen
223
8d2519c3a36e Add input data gear example
one
parents: 175
diff changeset
27 IDataSeg
8d2519c3a36e Add input data gear example
one
parents: 175
diff changeset
28 IDataSeg
8d2519c3a36e Add input data gear example
one
parents: 175
diff changeset
29 ...
175
00107b452a04 add Todo
mir3636
parents:
diff changeset
30 idsCount
223
8d2519c3a36e Add input data gear example
one
parents: 175
diff changeset
31 nextTask(can be C_exit)
8d2519c3a36e Add input data gear example
one
parents: 175
diff changeset
32 ODataSeg?
175
00107b452a04 add Todo
mir3636
parents:
diff changeset
33
00107b452a04 add Todo
mir3636
parents:
diff changeset
34 TaskManager
00107b452a04 add Todo
mir3636
parents:
diff changeset
35 createWorker
00107b452a04 add Todo
mir3636
parents:
diff changeset
36 spawn (any,cpu,GPU)
00107b452a04 add Todo
mir3636
parents:
diff changeset
37 taskSend
00107b452a04 add Todo
mir3636
parents:
diff changeset
38 activeQueue
00107b452a04 add Todo
mir3636
parents:
diff changeset
39 shutdown
00107b452a04 add Todo
mir3636
parents:
diff changeset
40 deadlockDetectid
00107b452a04 add Todo
mir3636
parents:
diff changeset
41
00107b452a04 add Todo
mir3636
parents:
diff changeset
42 SynchronizedQueue * Workerの数だけ
00107b452a04 add Todo
mir3636
parents:
diff changeset
43
00107b452a04 add Todo
mir3636
parents:
diff changeset
44 Worker
00107b452a04 add Todo
mir3636
parents:
diff changeset
45 execute
00107b452a04 add Todo
mir3636
parents:
diff changeset
46 taskRecive
00107b452a04 add Todo
mir3636
parents:
diff changeset
47 shutdown