Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

66套java实战课程无套路领取

锋哥开始收Java学员啦!

Python学习路线图

锋哥开始收Java学员啦!
当前位置: 主页 > Java文档 > Java基础相关 >

opencl-1-2-quick-reference-card PDF 下载


分享到:
时间:2020-10-24 11:36来源:http://www.java1234.com 作者:转载  侵权举报
opencl-1-2-quick-reference-card PDF 下载
失效链接处理
opencl-1-2-quick-reference-card  PDF 下载


本站整理下载:
提取码:hish 
 
 
相关截图:
 
主要内容:


The OpenCL Platform Layer 
The OpenCL platform layer implements platform-specific 
features that allow applications to query OpenCL devices, 
device configuration information, and to create OpenCL 
contexts using one or more devices.
Querying Platform Info and Devices [4.1, 4.2]
cl_int clGetPlatformIDs (cl_uint num_entries, cl_platform_id *platforms, cl_uint *num_platforms) 
cl_int clGetPlatformInfo (cl_platform_id platform, cl_platform_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) 
param_name: CL_PLATFORM_{PROFILE, VERSION}, 
CL_PLATFORM_{NAME, VENDOR, EXTENSIONS}
cl_int clGetDeviceIDs (cl_platform_id platform, cl_device_type device_type, cl_uint num_entries, cl_device_id *devices, cl_uint *num_devices) 
device_type: CL_DEVICE_TYPE_{ACCELERATOR, ALL, CPU}, 
CL_DEVICE_TYPE_{CUSTOM, DEFAULT, GPU}
cl_int clGetDeviceInfo (cl_device_id device, cl_device_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret) 
param_name:
CL_DEVICE_{NAME, VENDOR, PROFILE, TYPE}, 
CL_DEVICE_NATIVE_VECTOR_WIDTH_{CHAR, INT}, 
CL_DEVICE_NATIVE_VECTOR_WIDTH_{LONG, SHORT}, 
CL_DEVICE_NATIVE_VECTOR_WIDTH_{DOUBLE, HALF}, 
CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT, 
CL_DEVICE_PREFERRED_VECTOR_WIDTH_{CHAR, INT}, 
CL_DEVICE_PREFERRED_VECTOR_WIDTH_{LONG, SHORT}, 
CL_DEVICE_PREFERRED_VECTOR_WIDTH_{DOUBLE, HALF}, 
CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT, 
CL_DEVICE_PREFERRED_INTEROP_USER_SYNC, 
CL_DEVICE_ADDRESS_BITS, CL_DEVICE_AVAILABLE, 
CL_DEVICE_BUILT_IN_KERNELS, 
CL_DEVICE_COMPILER_AVAILABLE, 
CL_DEVICE_{DOUBLE, HALF, SINGLE}_FP_CONFIG, 
CL_DEVICE_ENDIAN_LITTLE, CL_DEVICE_EXTENSIONS,
CL_DEVICE_ERROR_CORRECTION_SUPPORT, 
CL_DEVICE_EXECUTION_CAPABILITIES, 
CL_DEVICE_GLOBAL_MEM_CACHE_{SIZE, TYPE}, 
CL_DEVICE_GLOBAL_MEM_{CACHELINE_SIZE, SIZE},
CL_DEVICE_HOST_UNIFIED_MEMORY, 
CL_DEVICE_IMAGE_MAX_{ARRAY, BUFFER}_SIZE,
CL_DEVICE_IMAGE_SUPPORT, 
CL_DEVICE_IMAGE2D_MAX_{WIDTH, HEIGHT}, 
CL_DEVICE_IMAGE3D_MAX_{WIDTH, HEIGHT, DEPTH}, 
CL_DEVICE_LOCAL_MEM_{TYPE, SIZE}, 
CL_DEVICE_MAX_{READ, WRITE}_IMAGE_ARGS,
CL_DEVICE_MAX_CLOCK_FREQUENCY, 
CL_DEVICE_MAX_COMPUTE_UNITS, 
CL_DEVICE_MAX_CONSTANT_{ARGS,BUFFER_SIZE}, 
CL_DEVICE_MAX_{MEM_ALLOC, PARAMETER}_SIZE, 
CL_DEVICE_MAX_SAMPLERS, 
CL_DEVICE_MAX_WORK_GROUP_SIZE, 
CL_DEVICE_MAX_WORK_ITEM_{DIMENSIONS, SIZES},
CL_DEVICE_MEM_BASE_ADDR_ALIGN, 
CL_DEVICE_OPENCL_C_VERSION, CL_DEVICE_PARENT_DEVICE, 
CL_DEVICE_PARTITION_AFFINITY_DOMAIN, 
CL_DEVICE_PARTITION_MAX_SUB_DEVICES, 
CL_DEVICE_PARTITION_{PROPERTIES, TYPE}, 
CL_DEVICE_PLATFORM, CL_DEVICE_PRINTF_BUFFER_SIZE, 
CL_DEVICE_PROFILING_TIMER_RESOLUTION, 
CL_DEVICE_QUEUE_PROPERTIES, 
CL_DEVICE_REFERENCE_COUNT, 
CL_DEVICE_VENDOR_ID, CL_{DEVICE, DRIVER}_VERSION
Partitioning a Device [4.3]
cl_int clCreateSubDevices (cl_device_id in_device,
const cl_device_partition_property *properties, 
cl_uint num_devices, cl_device_id *out_devices, cl_uint *num_devices_ret)
properties: CL_DEVICE_PARTITION_EQUALLY, 
CL_DEVICE_PARTITION_BY_{COUNTS, AFFINITY_DOMAIN}
(Affinity domains may be: 
CL_DEVICE_AFFINITY_DOMAIN_NUMA, 
CL_DEVICE_AFFINITY_DOMAIN_{L4, L3, L2, L1}_CACHE, 
CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE)
cl_int clRetainDevice (cl_device_id device)
cl_int clReleaseDevice (cl_device_id device)
Contexts [4.4]
cl_context clCreateContext (
const cl_context_properties *properties, cl_uint num_devices, const cl_device_id *devices, void (CL_CALLBACK*pfn_notify)
 (const char *errinfo, const void *private_info, size_t cb, void *user_data), 
void *user_data, cl_int *errcode_ret)
properties: NULL or CL_CONTEXT_PLATFORM, 
CL_CONTEXT_INTEROP_USER_SYNC, 
CL_CONTEXT_{D3D10, D3D11}_DEVICE_KHR, 
CL_CONTEXT_ADAPTER_{D3D9, D3D9EX, DXVA}_KHR, 
CL_GL_CONTEXT_KHR, CL_CGL_SHAREGROUP_KHR, 
CL_{EGL, GLX}_DISPLAY_KHR, CL_WGL_HDC_KHR 
cl_context clCreateContextFromType (
const cl_context_properties *properties, cl_device_type device_type, void (CL_CALLBACK *pfn_notify) 
 (const char *errinfo, const void *private_info, size_t cb, void *user_data), 
void *user_data, cl_int *errcode_ret) 
properties: See clCreateContext
cl_int clRetainContext (cl_context context) 
cl_int clReleaseContext (cl_context context) 
cl_int clGetContextInfo (cl_context context, cl_context_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)
param_name: CL_CONTEXT_REFERENCE_COUNT, 
CL_CONTEXT_{DEVICES, NUM_DEVICES, PROPERTIES}, 
CL_CONTEXT_D3D10_PREFER_SHARED_RESOURCES_KHR,
CL_CONTEXT_D3D11_PREFER_SHARED_RESOURCES_KHR
Get CL Extension Function Pointers [9.2]
void* clGetExtensionFunctionAddressForPlatform (
cl_platform_id platform, const char *funcname)


 
 
------分隔线----------------------------

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐