changeset 1453:756470aab7b3 draft

add OpenCL example
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Wed, 25 Apr 2012 20:44:38 +0900
parents e7be2c3f2c5c
children 5b79077e4e1f
files TaskManager/test/GpuRegistTaskTest/GpuRegistTaskTest.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/test/GpuRegistTaskTest/GpuRegistTaskTest.cc	Tue Apr 24 19:50:34 2012 +0900
+++ b/TaskManager/test/GpuRegistTaskTest/GpuRegistTaskTest.cc	Wed Apr 25 20:44:38 2012 +0900
@@ -47,7 +47,7 @@
     GpuSchedRegister(1, "twice.cl", "Twice");
 
     cl_int ret;
-    cl_context context = gpuThreads->context;
+    cl_context context = gpu_register_task->context;
     cl_mem memobj_in, memobj_out, data_count = NULL;
     memobj_in  = clCreateBuffer(context, CL_MEM_READ_WRITE, sizeof(int)*count, NULL, &ret);
     memobj_out = clCreateBuffer(context, CL_MEM_READ_WRITE, sizeof(int)*count, NULL, &ret);