Lines Matching refs:openCL_library
156 *openCL_library; variable
454 openCL_library->clReleaseEvent(info->events[i]); in DestroyMagickCLCacheInfo()
457 openCL_library->clReleaseMemObject(info->buffer); in DestroyMagickCLCacheInfo()
470 return(openCL_library->clCreateBuffer(device->context,flags,size,host_ptr, in CreateOpenCLBuffer()
476 (void) openCL_library->clReleaseKernel(kernel); in ReleaseOpenCLKernel()
481 (void) openCL_library->clReleaseMemObject(memobj); in ReleaseOpenCLMemObject()
486 (void) openCL_library->clRetainMemObject(memobj); in RetainOpenCLMemObject()
492 return(openCL_library->clSetKernelArg(kernel,(cl_uint) arg_index,arg_size, in SetOpenCLKernelArg()
542 info->buffer=openCL_library->clCreateBuffer(device->context, in AcquireMagickCLCacheInfo()
669 queue=openCL_library->clCreateCommandQueue(device->context, in AcquireOpenCLCommandQueue()
710 kernel=openCL_library->clCreateKernel(device->program,kernel_name, in AcquireOpenCLKernel()
1086 openCL_library->clWaitForEvents(cache_info->opencl->event_count, in RunOpenCLBenchmark()
1184 testEnv->library=openCL_library; in BenchmarkOpenCLDevices()
1267 status=openCL_library->clGetProgramInfo(device->program, in CacheOpenCLKernel()
1278 status=openCL_library->clGetProgramInfo(device->program, in CacheOpenCLKernel()
1307 device->program=openCL_library->clCreateProgramWithBinary(device->context,1, in LoadCachedOpenCLKernel()
1331 openCL_library->clGetProgramBuildInfo(device->program,device->deviceID, in LogOpenCLBuildFailure()
1334 openCL_library->clGetProgramBuildInfo(device->program,device->deviceID, in LogOpenCLBuildFailure()
1383 device->program=openCL_library->clCreateProgramWithSource( in CompileOpenCLKernel()
1389 status=openCL_library->clBuildProgram(device->program,1,&device->deviceID, in CompileOpenCLKernel()
1492 pixels=openCL_library->clEnqueueMapBuffer(queue,info->buffer,CL_TRUE, in CopyMagickCLCacheInfo()
1647 if (openCL_library->clRetainEvent(event) != CL_SUCCESS) in RegisterCacheEvent()
1649 openCL_library->clWaitForEvents(1,&event); in RegisterCacheEvent()
1703 status=openCL_library->clEnqueueNDRangeKernel(queue,kernel,work_dim,offset, in EnqueueOpenCLKernel()
1708 openCL_library->clFinish(queue); in EnqueueOpenCLKernel()
1709 status=openCL_library->clEnqueueNDRangeKernel(queue,kernel,work_dim, in EnqueueOpenCLKernel()
1721 openCL_library->clFlush(queue); in EnqueueOpenCLKernel()
1730 openCL_library->clReleaseEvent(event); in EnqueueOpenCLKernel()
2262 if (openCL_library->clGetPlatformIDs(0,NULL,&number_platforms) != CL_SUCCESS) in LoadOpenCLDevices()
2270 if (openCL_library->clGetPlatformIDs(number_platforms,platforms,NULL) != CL_SUCCESS) in LoadOpenCLDevices()
2330 clEnv->contexts[i]=openCL_library->clCreateContext(properties,number_devices, in LoadOpenCLDevices()
2347 openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_NAME,0,NULL, in LoadOpenCLDevices()
2351 openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_NAME,length, in LoadOpenCLDevices()
2354 openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_VENDOR,0,NULL, in LoadOpenCLDevices()
2358 openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_VENDOR,length, in LoadOpenCLDevices()
2361 openCL_library->clGetDeviceInfo(devices[j],CL_DEVICE_NAME,0,NULL, in LoadOpenCLDevices()
2364 openCL_library->clGetDeviceInfo(devices[j],CL_DEVICE_NAME,length, in LoadOpenCLDevices()
2367 openCL_library->clGetDeviceInfo(devices[j],CL_DRIVER_VERSION,0,NULL, in LoadOpenCLDevices()
2370 openCL_library->clGetDeviceInfo(devices[j],CL_DRIVER_VERSION,length, in LoadOpenCLDevices()
2373 openCL_library->clGetDeviceInfo(devices[j],CL_DEVICE_MAX_CLOCK_FREQUENCY, in LoadOpenCLDevices()
2376 openCL_library->clGetDeviceInfo(devices[j],CL_DEVICE_MAX_COMPUTE_UNITS, in LoadOpenCLDevices()
2379 openCL_library->clGetDeviceInfo(devices[j],CL_DEVICE_TYPE, in LoadOpenCLDevices()
2382 openCL_library->clGetDeviceInfo(devices[j],CL_DEVICE_LOCAL_MEM_SIZE, in LoadOpenCLDevices()
2408 clEnv->library=openCL_library; in InitializeOpenCL()
2457 #define BIND(X) openCL_library->X= &X; in BindOpenCLFunctions()
2459 (void) memset(openCL_library,0,sizeof(MagickLibrary)); in BindOpenCLFunctions()
2461 openCL_library->library=(void *)LoadLibraryA("OpenCL.dll"); in BindOpenCLFunctions()
2463 openCL_library->library=(void *)dlopen("libOpenCL.so", RTLD_NOW); in BindOpenCLFunctions()
2466 …if ((openCL_library->X=(MAGICKpfn_##X)OsLibraryGetFunctionAddress(openCL_library->library,#X)) == … in BindOpenCLFunctions()
2470 if (openCL_library->library == (void*) NULL) in BindOpenCLFunctions()
2521 openCL_library=(MagickLibrary *) AcquireMagickMemory(sizeof(MagickLibrary)); in LoadOpenCLLibrary()
2522 if (openCL_library == (MagickLibrary *) NULL) in LoadOpenCLLibrary()
2527 openCL_library=(MagickLibrary *)RelinquishMagickMemory(openCL_library); in LoadOpenCLLibrary()
2564 if (openCL_library != (MagickLibrary *) NULL) in OpenCLTerminus()
2566 if (openCL_library->library != (void *) NULL) in OpenCLTerminus()
2567 (void) lt_dlclose(openCL_library->library); in OpenCLTerminus()
2568 openCL_library=(MagickLibrary *) RelinquishMagickMemory(openCL_library); in OpenCLTerminus()
2704 status=openCL_library->clWaitForEvents(1,&event); in RecordProfileData()
2707 status=openCL_library->clGetKernelInfo(kernel,CL_KERNEL_FUNCTION_NAME,0,NULL, in RecordProfileData()
2715 status=openCL_library->clGetKernelInfo(kernel,CL_KERNEL_FUNCTION_NAME,length, in RecordProfileData()
2717 status|=openCL_library->clGetEventProfilingInfo(event, in RecordProfileData()
2719 status|=openCL_library->clGetEventProfilingInfo(event, in RecordProfileData()
2805 openCL_library->clFinish(queue); in ReleaseOpenCLCommandQueue()
2806 (void) openCL_library->clReleaseCommandQueue(queue); in ReleaseOpenCLCommandQueue()
2810 openCL_library->clFlush(queue); in ReleaseOpenCLCommandQueue()
2898 status=openCL_library->clGetEventInfo(info->events[i], in DestroyMagickCLCacheInfoAndPixels()
2903 openCL_library->clSetEventCallback(info->events[i],CL_COMPLETE, in DestroyMagickCLCacheInfoAndPixels()
2959 (void) openCL_library->clReleaseProgram(device->program); in RelinquishMagickCLDevice()
2961 (void) openCL_library->clReleaseCommandQueue( in RelinquishMagickCLDevice()
3004 (void) openCL_library->clReleaseContext(clEnv->contexts[i]); in RelinquishMagickCLEnv()