Mercurial > hg > Game > Cerium
changeset 1733:91b690b27066 draft
minor fix fft
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 31 Oct 2013 21:26:56 +0900 |
parents | 6acaf7f6ad97 |
children | 4206f70691df |
files | TaskManager/kernel/schedule/Scheduler.cc example/fft/main.cc |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/kernel/schedule/Scheduler.cc Thu Oct 31 21:08:56 2013 +0900 +++ b/TaskManager/kernel/schedule/Scheduler.cc Thu Oct 31 21:26:56 2013 +0900 @@ -184,7 +184,7 @@ if (table) { MemorySegment* here = (MemorySegment*)( manager->allocate(sizeof(MemorySegment))); - here->data = &(table->vma); + here->data = (void*)(table->vma); here->size = size; here->address = (memaddr)here; code_segment_pool->addLast(here);
--- a/example/fft/main.cc Thu Oct 31 21:08:56 2013 +0900 +++ b/example/fft/main.cc Thu Oct 31 21:26:56 2013 +0900 @@ -251,7 +251,7 @@ hpfl->set_inData(0,rm,length_r*sizeof(cl_float2)); hpfl->set_outData(0, rm, length_r*sizeof(cl_float2)); hpfl->set_param(3,n); - hpfl->set_param(4,&radius); + hpfl->set_param(4,(long)radius); hpfl->set_cpu(spe_cpu); hpfl->wait_for(waitTask); hpfl->iterate(gws[0],gws[1]);