Lines Matching refs:gContext
55 cl_context gContext = NULL; variable
115 gContext = clCreateContext( NULL, 1, &device, notify_callback, NULL, &error ); in InitCL()
116 if( NULL == gContext ) in InitCL()
122 gQueue = clCreateCommandQueue(gContext, device, 0, &error); in InitCL()
155 …gInBuffer_half = clCreateBuffer(gContext, CL_MEM_READ_ONLY, getBufferSize(device) / 2, NULL, &erro… in InitCL()
162 gInBuffer_single = clCreateBuffer(gContext, CL_MEM_READ_ONLY, BUFFER_SIZE, NULL, &error ); in InitCL()
169 gInBuffer_double = clCreateBuffer(gContext, CL_MEM_READ_ONLY, BUFFER_SIZE*2, NULL, &error ); in InitCL()
176 gOutBuffer_half = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, BUFFER_SIZE/2, NULL, &error ); in InitCL()
183 …gOutBuffer_single = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, getBufferSize(device), NULL, &erro… in InitCL()
191 …gOutBuffer_double = clCreateBuffer(gContext, CL_MEM_WRITE_ONLY, (size_t)(2*getBufferSize(device)),… in InitCL()
226 error = create_single_kernel_helper_create_program(gContext, &program, (cl_uint)count, source); in MakeProgram()
264 clReleaseContext(gContext); in ReleaseCL()