Mercurial > hg > Game > Cerium
changeset 1889:8383e9ac5e55 draft
fix IO_num init
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 03 Jan 2014 19:39:08 +0900 |
parents | 5238ca826d6e |
children | 9085a4692cfd |
files | TaskManager/Cell/CellTaskManagerImpl.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Fri Jan 03 18:59:15 2014 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Fri Jan 03 19:39:08 2014 +0900 @@ -404,15 +404,16 @@ #if defined (__CERIUM_CELL__)||defined (__CERIUM_GPU__) TaskManagerImpl *create_impl(int num, int num_gpu, int useRefDma) { + int io_num = 2; // two threads for I/O #ifdef __CERIUM_CELL__ Threads *cpus = new SpeThreads(num); #elif __CERIUM_GPU__ init_task_list(gpu_task_list); - Threads *cpus = new CpuThreads(num, useRefDma,num_gpu); + Threads *cpus = new CpuThreads(num, io_num, useRefDma,num_gpu); num += num_gpu; // for GPU #else - Threads *cpus = new CpuThreads(num, useRefDma); + Threads *cpus = new CpuThreads(num, io_num, useRefDma); #endif return new CellTaskManagerImpl(num, num_gpu, cpus); }