Mercurial > hg > Game > Cerium
comparison TaskManager/Gpu/GpuScheduler.h @ 1508:0e1318e7caed draft
create sort test
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Sep 2012 18:59:54 +0900 |
parents | a7895ab4d0e3 |
children | 18b63e697c61 |
comparison
equal
deleted
inserted
replaced
1507:7abad41d12af | 1508:0e1318e7caed |
---|---|
17 GpuScheduler(); | 17 GpuScheduler(); |
18 virtual ~GpuScheduler(); | 18 virtual ~GpuScheduler(); |
19 void init_impl(int useRefDma); | 19 void init_impl(int useRefDma); |
20 void init_gpu(); | 20 void init_gpu(); |
21 void run(); | 21 void run(); |
22 | 22 |
23 void mail_write_from_host(memaddr data) { | 23 void mail_write_from_host(memaddr data) { |
24 fifoDmaManager->mail_write_from_host(data); | 24 fifoDmaManager->mail_write_from_host(data); |
25 } | 25 } |
26 | 26 |
27 memaddr mail_read_from_host() { | 27 memaddr mail_read_from_host() { |
28 return fifoDmaManager->mail_read_from_host(); | 28 return fifoDmaManager->mail_read_from_host(); |
29 } | 29 } |
30 | 30 |
31 int has_mail_from_host() { | 31 int has_mail_from_host() { |
32 return fifoDmaManager->has_mail_from_host(); | 32 return fifoDmaManager->has_mail_from_host(); |
33 } | 33 } |
34 | 34 |
35 cl_platform_id platform_id; | 35 cl_platform_id platform_id; |
36 cl_device_id device_id; | 36 cl_device_id device_id; |
37 cl_uint ret_num_platforms; | 37 cl_uint ret_num_platforms; |
38 cl_uint ret_num_devices; | 38 cl_uint ret_num_devices; |
39 cl_context context; | 39 cl_context context; |
40 cl_command_queue command_queue; | 40 cl_command_queue *command_queue; |
41 cl_int ret; | 41 cl_int ret; |
42 private: | 42 private: |
43 FifoDmaManager *fifoDmaManager; | 43 FifoDmaManager *fifoDmaManager; |
44 void load_kernel(int cmd); | 44 void load_kernel(int cmd); |
45 | 45 |