Mercurial > hg > Game > Cerium
comparison TaskManager/Gpu/GpuThreads.cc @ 1443:dff9b3f388e2 draft
debug GpuScheduler.cc
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Apr 2012 21:38:42 +0900 |
parents | db8a954fcfb3 |
children | e8ff87511f46 |
comparison
equal
deleted
inserted
replaced
1442:db8a954fcfb3 | 1443:dff9b3f388e2 |
---|---|
52 | 52 |
53 return NULL | 53 return NULL |
54 } | 54 } |
55 | 55 |
56 int | 56 int |
57 GpuThreads::get_mail(memaddr *ret) | 57 GpuThreads::get_mail(int speid, int count, memaddr *ret) |
58 { | 58 { |
59 *ret = args.scheduler->mail_read_from_host(); | 59 *ret = args.scheduler->mail_read_from_host(); |
60 return 1; | 60 return 1; |
61 } | 61 } |
62 | 62 |
63 int | 63 int |
64 GpuThreads::has_mail(memaddr *ret) | 64 GpuThreads::has_mail(int speid, int count, memaddr *ret) |
65 { | 65 { |
66 if (args.scheduler->has_mail_from_host() != 0) { | 66 if (args.scheduler->has_mail_from_host() != 0) { |
67 return get_mail(ret); | 67 return get_mail(0, 0, ret); |
68 } else { | 68 } else { |
69 return 0; | 69 return 0; |
70 } | 70 } |
71 } | 71 } |
72 | 72 |
73 void | 73 void |
74 CpuThreads::send_mail(int cpuid, int num, memaddr *data) | 74 CpuThreads::send_mail(int speid, int num, memaddr *data) |
75 { | 75 { |
76 args.scheduler->mail_write_from_host(*data); | 76 args.scheduler->mail_write_from_host(*data); |
77 } | 77 } |
78 | |
79 void | |
80 GpuThreads::add_output_tasklist(int command, memaddr buff, int alloc_size) | |
81 { | |
82 } |