Mercurial > hg > Game > Cerium
changeset 1845:ad05aeed3a98 draft
fix multiply / gpu
author | kono |
---|---|
date | Fri, 20 Dec 2013 22:25:38 +0900 |
parents | 23e84bb83ed2 |
children | a0cb52163e57 |
files | TaskManager/Gpu/GpuScheduler.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Gpu/GpuScheduler.cc Fri Dec 20 22:09:24 2013 +0900 +++ b/TaskManager/Gpu/GpuScheduler.cc Fri Dec 20 22:25:38 2013 +0900 @@ -295,12 +295,12 @@ ret = clEnqueueWriteBuffer(command_queue, memout[cur].buf[i+1], CL_TRUE, 0, input_buf->size, input_buf->addr, - 0, NULL, &memout[cur].event[i+1]); + 0, NULL, &memout[cur].event[i0]); if (ret<0) { gpuTaskError(cur,tasklist,ret); continue; } - ret = clSetKernelArg(kernel[cur], param+1, sizeof(memaddr), (void *)&memout[cur].buf[param]); + ret = clSetKernelArg(kernel[cur], param+1, sizeof(memaddr), (void *)&memout[cur].buf[i0]); if (ret<0) { gpuTaskError(cur,tasklist,ret); continue;} } - ret = clSetKernelArg(kernel[cur], param, sizeof(memaddr), (void *)&memout[cur].buf[param]); + ret = clSetKernelArg(kernel[cur], param, sizeof(memaddr), (void *)&memout[cur].buf[i0]); if (ret<0) { gpuTaskError(cur,tasklist,ret); continue;} param++; }