Mercurial > hg > Game > Cerium
changeset 1708:9392f4d97cff draft
run Gpu ShowTime
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Oct 2013 17:50:02 +0900 |
parents | 83e36a0a08ef |
children | 8792afbb0cf0 |
files | TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/Gpu/GpuScheduler.cc TaskManager/kernel/schedule/DmaManager.h |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Tue Oct 08 02:44:51 2013 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Tue Oct 08 17:50:02 2013 +0900 @@ -363,7 +363,7 @@ void CellTaskManagerImpl::show_profile() { #ifdef __CERIUM_GPU__ - for (int id = 0; i < gpuNum; id++) { + for (int id = 0; id < gpuNum; id++) { HTaskPtr t = schedTaskManager->create_task(ShowTime, 0, 0, 0, 0); t->set_cpu((CPU_TYPE) (id + GPU_0)); t->spawn(); @@ -378,7 +378,7 @@ void CellTaskManagerImpl::start_profile() { #ifdef __CERIUM_GPU__ - for (int id = 0; i < gpuNum; id++) { + for (int id = 0; id < gpuNum; id++) { HTaskPtr t = schedTaskManager->create_task(StartProfile, 0, 0, 0, 0); t->set_cpu((CPU_TYPE) (id + GPU_0)); t->spawn();
--- a/TaskManager/Gpu/GpuScheduler.cc Tue Oct 08 02:44:51 2013 +0900 +++ b/TaskManager/Gpu/GpuScheduler.cc Tue Oct 08 17:50:02 2013 +0900 @@ -6,6 +6,7 @@ #include "stdio.h" #include "GpuError.h" #include "ListData.h" +#include "SysFunc.h" #include <fcntl.h> #include <sys/stat.h> #include <string.h> @@ -289,7 +290,7 @@ wait_for_event(event,reply,cur); //clFlush(command_queue); // waiting for queued task //clFinish(command_queue); // waiting for queued task - (*connector->end_dmawait_profile)(); + (*connector->end_dmawait_profile)(&connector->global_busy_time); connector->mail_write((memaddr)MY_SPE_STATUS_READY); } // TaskArrayの処理
--- a/TaskManager/kernel/schedule/DmaManager.h Tue Oct 08 02:44:51 2013 +0900 +++ b/TaskManager/kernel/schedule/DmaManager.h Tue Oct 08 17:50:02 2013 +0900 @@ -31,6 +31,7 @@ virtual void dma_wait(uint32 mask) {} virtual void show_dma_wait(Scheduler *s, int cpu) {} virtual void start_profile() {} + virtual void show_profile() {} void (*start_dmawait_profile)(); void (*end_dmawait_profile)(unsigned long long* global_busy_time); unsigned long long global_busy_time;