Commit b7355dd7 authored by Leonardo Solis's avatar Leonardo Solis

#39, added igl_arbiter labels

parent 69077368
......@@ -105,9 +105,9 @@ static const char *name_krnl_ls = "Krnl_LS";
#endif
#ifdef ENABLE_KRNL_IGL_ARBITER
static cl_command_queue command_queue27 = NULL;
static cl_kernel kernel27 = NULL;
static const char *name_k27 = "Krnl_IGL_Arbiter";
static cl_command_queue command_queue_igl_arbiter = NULL;
static cl_kernel kernel_igl_arbiter = NULL;
static const char *name_krnl_igl_arbiter = "Krnl_IGL_Arbiter";
#endif
......@@ -1008,7 +1008,7 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
#endif
#ifdef ENABLE_KRNL_IGL_ARBITER
runKernelTask(command_queue27,kernel27,NULL,NULL);
runKernelTask(command_queue_igl_arbiter,kernel_igl_arbiter,NULL,NULL);
#endif
#ifdef ENABLE_KRNL_GA
......@@ -1052,7 +1052,7 @@ unsigned char Host_cons_limit = (unsigned char) dockpars.cons_limit;
#endif
#ifdef ENABLE_KRNL_IGL_ARBITER
clFinish(command_queue27);
clFinish(command_queue_igl_arbiter);
#endif
clock_stop_docking = clock();
......@@ -1386,10 +1386,10 @@ bool init() {
#endif
#ifdef ENABLE_KRNL_IGL_ARBITER
command_queue27 = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue27");
kernel27 = clCreateKernel(program, name_k27, &status);
checkError(status, "Failed to create kernel");
command_queue_igl_arbiter = clCreateCommandQueue(context, device, 0, &status);
checkError(status, "Failed to create command queue igl_arbiter");
kernel_igl_arbiter = clCreateKernel(program, name_krnl_igl_arbiter, &status);
checkError(status, "Failed to create kernel igl_arbiter");
#endif
return true;
......@@ -1448,8 +1448,8 @@ void cleanup() {
#endif
#ifdef ENABLE_KRNL_IGL_ARBITER
if(kernel27) {clReleaseKernel(kernel27);}
if(command_queue27) {clReleaseCommandQueue(command_queue27);}
if(kernel_igl_arbiter) {clReleaseKernel(kernel_igl_arbiter);}
if(command_queue_igl_arbiter) {clReleaseCommandQueue(command_queue_igl_arbiter);}
#endif
if(program) {clReleaseProgram(program);}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment