OpenCL运行时:常量#

警告

This set of PyOpenCL documentation is incomplete because it was generated on a PyOpenCL build that did not support OpenGL.

class pyopencl.addressing_mode#
CLAMP#
CLAMP_TO_EDGE#
MIRRORED_REPEAT#

Available with OpenCL 1.1.

在 0.92 版本加入.

NONE#
REPEAT#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.channel_order#
A#
ABGR#

Available with OpenCL 2.0.

在 2015.2 版本加入.

BGRA#
INTENSITY#
LUMINANCE#
R#
RA#
RG#
RGB#
RGBA#
RGBx#

Available with OpenCL 1.1.

在 0.92 版本加入.

RGx#

Available with OpenCL 1.1.

在 0.92 版本加入.

Rx#

Available with OpenCL 1.1.

在 0.92 版本加入.

sBGRA#

Available with OpenCL 2.0.

在 2015.2 版本加入.

sRGB#

Available with OpenCL 2.0.

在 2015.2 版本加入.

sRGBA#

Available with OpenCL 2.0.

在 2015.2 版本加入.

sRGBx#

Available with OpenCL 2.0.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.channel_type#
FLOAT#
HALF_FLOAT#
SIGNED_INT16#
SIGNED_INT32#
SIGNED_INT8#
SNORM_INT16#
SNORM_INT8#
UNORM_INT16#
UNORM_INT24#

Available with OpenCL 1.2.

在 2020.3 版本加入.

UNORM_INT8#
UNORM_INT_101010#
UNORM_INT_101010_2#

Available with OpenCL 2.1.

在 2020.3 版本加入.

UNORM_SHORT_555#
UNORM_SHORT_565#
UNSIGNED_INT16#
UNSIGNED_INT32#
UNSIGNED_INT8#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.command_execution_status#
COMPLETE#
QUEUED#
RUNNING#
SUBMITTED#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.command_queue_info#
CONTEXT#
DEVICE#
PROPERTIES#
PROPERTIES_ARRAY#
REFERENCE_COUNT#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.command_queue_properties#
ON_DEVICE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

ON_DEVICE_DEFAULT#

Available with OpenCL 2.0.

在 2015.2 版本加入.

OUT_OF_ORDER_EXEC_MODE_ENABLE#
PROFILING_ENABLE#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.command_type#
ACQUIRE_GL_OBJECTS#
BARRIER#

Available with OpenCL 1.2.

在 2011.2 版本加入.

COPY_BUFFER#
COPY_BUFFER_RECT#

Available with OpenCL 1.1.

在 0.92 版本加入.

COPY_BUFFER_TO_IMAGE#
COPY_IMAGE#
COPY_IMAGE_TO_BUFFER#
FILL_BUFFER#

Available with OpenCL 1.2.

在 2011.2 版本加入.

FILL_IMAGE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

MAP_BUFFER#
MAP_IMAGE#
MARKER#
MIGRATE_MEM_OBJECTS#

Available with OpenCL 1.2.

在 2011.2 版本加入.

NATIVE_KERNEL#
NDRANGE_KERNEL#
READ_BUFFER#
READ_BUFFER_RECT#

Available with OpenCL 1.1.

在 0.92 版本加入.

READ_IMAGE#
RELEASE_GL_OBJECTS#
SVM_FREE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

SVM_MAP#

Available with OpenCL 2.0.

在 2015.2 版本加入.

SVM_MEMCPY#

Available with OpenCL 2.0.

在 2015.2 版本加入.

SVM_MEMFILL#

Available with OpenCL 2.0.

在 2015.2 版本加入.

SVM_MIGRATE_MEM#

Available with OpenCL 3.0.

在 2020.3 版本加入.

SVM_UNMAP#

Available with OpenCL 2.0.

在 2015.2 版本加入.

TASK#
UNMAP_MEM_OBJECT#
USER#

Available with OpenCL 1.1.

在 0.92 版本加入.

WRITE_BUFFER#
WRITE_BUFFER_RECT#

Available with OpenCL 1.1.

在 0.92 版本加入.

WRITE_IMAGE#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.context_info#
DEVICES#
INTEROP_USER_SYNC#

Available with OpenCL 1.2.

在 2011.2 版本加入.

NUM_DEVICES#

Available with OpenCL 1.1.

在 0.92 版本加入.

PROPERTIES#
REFERENCE_COUNT#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.context_properties#
PLATFORM#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_affinity_domain#
L1_CACHE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

L2_CACHE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

L3_CACHE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

L4_CACHE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

NEXT_PARTITIONABLE#
NUMA#

Available with OpenCL 1.2.

在 2011.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_atomic_capabilities#
ORDER_ACQ_REL#

Available with OpenCL 3.0.

在 2020.3 版本加入.

ORDER_RELAXED#

Available with OpenCL 3.0.

在 2020.3 版本加入.

ORDER_SEQ_CST#

Available with OpenCL 3.0.

在 2020.3 版本加入.

SCOPE_ALL_DEVICES#

Available with OpenCL 3.0.

在 2020.3 版本加入.

SCOPE_DEVICE#

Available with OpenCL 3.0.

在 2020.3 版本加入.

SCOPE_WORK_GROUP#

Available with OpenCL 3.0.

在 2020.3 版本加入.

SCOPE_WORK_ITEM#

Available with OpenCL 3.0.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_device_enqueue_capabilities#
REPLACEABLE_DEFAULT#

Available with OpenCL 3.0.

在 2020.3 版本加入.

SUPPORTED#

Available with OpenCL 3.0.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_exec_capabilities#
KERNEL#
NATIVE_KERNEL#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_fp_config#
CORRECTLY_ROUNDED_DIVIDE_SQRT#

Available with OpenCL 1.2.

在 2011.2 版本加入.

DENORM#
FMA#
INF_NAN#
ROUND_TO_INF#
ROUND_TO_NEAREST#
ROUND_TO_ZERO#
SOFT_FLOAT#

Available with OpenCL 1.1.

在 0.92 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_info#
ADDRESS_BITS#
ATOMIC_FENCE_CAPABILITIES#

Available with OpenCL 3.0.

在 2020.3 版本加入.

ATOMIC_MEMORY_CAPABILITIES#

Available with OpenCL 3.0.

在 2020.3 版本加入.

ATTRIBUTE_ASYNC_ENGINE_COUNT_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

AVAILABLE#
AVAILABLE_ASYNC_QUEUES_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

BOARD_NAME_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

BUILT_IN_KERNELS#

Available with OpenCL 1.2.

在 2011.2 版本加入.

BUILT_IN_KERNELS_WITH_VERSION#

Available with OpenCL 3.0.

在 2020.3 版本加入.

COMPILER_AVAILABLE#
COMPUTE_CAPABILITY_MAJOR_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

COMPUTE_CAPABILITY_MINOR_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

DEVICE_ENQUEUE_CAPABILITIES#

Available with OpenCL 3.0.

在 2020.3 版本加入.

DOUBLE_FP_CONFIG#

Available with the cl_khr_fp64 extension.

在 2011.1 版本加入.

DRIVER_VERSION#
ENDIAN_LITTLE#
ERROR_CORRECTION_SUPPORT#
EXECUTION_CAPABILITIES#
EXTENSIONS#
EXTENSIONS_WITH_VERSION#

Available with OpenCL 3.0.

在 2020.3 版本加入.

EXT_MEM_PADDING_IN_BYTES_QCOM#

Available with the cl_qcom_ext_host_ptr extension.

在 2016.2 版本加入.

GENERIC_ADDRESS_SPACE_SUPPORT#

Available with OpenCL 3.0.

在 2020.3 版本加入.

GFXIP_MAJOR_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

GFXIP_MINOR_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

GLOBAL_FREE_MEMORY_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

GLOBAL_MEM_CACHELINE_SIZE#
GLOBAL_MEM_CACHE_SIZE#
GLOBAL_MEM_CACHE_TYPE#
GLOBAL_MEM_CHANNELS_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

GLOBAL_MEM_CHANNEL_BANKS_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

GLOBAL_MEM_CHANNEL_BANK_WIDTH_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

GLOBAL_MEM_SIZE#
GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

GPU_OVERLAP_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

HALF_FP_CONFIG#

Available with the cl_khr_fp16 extension.

在 2011.1 版本加入.

HOST_UNIFIED_MEMORY#

Available with OpenCL 1.1.

在 0.92 版本加入.

ILS_WITH_VERSION#

Available with OpenCL 3.0.

在 2020.3 版本加入.

IL_VERSION#

Available with OpenCL 2.1.

在 2016.2 版本加入.

IMAGE2D_MAX_HEIGHT#
IMAGE2D_MAX_WIDTH#
IMAGE3D_MAX_DEPTH#
IMAGE3D_MAX_HEIGHT#
IMAGE3D_MAX_WIDTH#
IMAGE_MAX_ARRAY_SIZE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

IMAGE_MAX_BUFFER_SIZE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

IMAGE_SUPPORT#
INTEGRATED_MEMORY_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

KERNEL_EXEC_TIMEOUT_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

LINKER_AVAILABLE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

LOCAL_MEM_BANKS_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

LOCAL_MEM_SIZE#
LOCAL_MEM_SIZE_PER_COMPUTE_UNIT_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

LOCAL_MEM_TYPE#
MAX_CLOCK_FREQUENCY#
MAX_COMPUTE_UNITS#
MAX_CONSTANT_ARGS#
MAX_CONSTANT_BUFFER_SIZE#
MAX_GLOBAL_VARIABLE_SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

MAX_MEM_ALLOC_SIZE#
MAX_NUM_SUB_GROUPS#

Available with OpenCL 2.1.

在 2016.2 版本加入.

MAX_ON_DEVICE_EVENTS#

Available with OpenCL 2.0.

在 2015.2 版本加入.

MAX_ON_DEVICE_QUEUES#

Available with OpenCL 2.0.

在 2015.2 版本加入.

MAX_PARAMETER_SIZE#
MAX_PIPE_ARGS#

Available with OpenCL 2.0.

在 2015.2 版本加入.

MAX_READ_IMAGE_ARGS#
MAX_READ_WRITE_IMAGE_ARGS#

Available with OpenCL 2.0.

在 2015.2 版本加入.

MAX_SAMPLERS#
MAX_WORK_GROUP_SIZE#
MAX_WORK_GROUP_SIZE_AMD#
MAX_WORK_ITEM_DIMENSIONS#
MAX_WORK_ITEM_SIZES#
MAX_WRITE_IMAGE_ARGS#
MEM_BASE_ADDR_ALIGN#
ME_VERSION_INTEL#

Available with the cl_intel_advanced_motion_estimation extension.

在 2016.2 版本加入.

MIN_DATA_TYPE_ALIGN_SIZE#
NAME#
NATIVE_VECTOR_WIDTH_CHAR#

Available with OpenCL 1.1.

在 0.92 版本加入.

NATIVE_VECTOR_WIDTH_DOUBLE#

Available with OpenCL 1.1.

在 0.92 版本加入.

NATIVE_VECTOR_WIDTH_FLOAT#

Available with OpenCL 1.1.

在 0.92 版本加入.

NATIVE_VECTOR_WIDTH_HALF#

Available with OpenCL 1.1.

在 0.92 版本加入.

NATIVE_VECTOR_WIDTH_INT#

Available with OpenCL 1.1.

在 0.92 版本加入.

NATIVE_VECTOR_WIDTH_LONG#

Available with OpenCL 1.1.

在 0.92 版本加入.

NATIVE_VECTOR_WIDTH_SHORT#

Available with OpenCL 1.1.

在 0.92 版本加入.

NON_UNIFORM_WORK_GROUP_SUPPORT#

Available with OpenCL 3.0.

在 2020.3 版本加入.

NUMERIC_VERSION#

Available with OpenCL 3.0.

在 2020.3 版本加入.

NUM_SIMULTANEOUS_INTEROPS_INTEL#

Available with the cl_intel_simultaneous_sharing extension.

在 2016.2 版本加入.

OPENCL_C_ALL_VERSIONS#

Available with OpenCL 3.0.

在 2020.3 版本加入.

OPENCL_C_FEATURES#

Available with OpenCL 3.0.

在 2020.3 版本加入.

OPENCL_C_VERSION#

Available with OpenCL 1.1.

在 0.92 版本加入.

PAGE_SIZE_QCOM#

Available with the cl_qcom_ext_host_ptr extension.

在 2016.2 版本加入.

PARENT_DEVICE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PARTITION_AFFINITY_DOMAIN#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PARTITION_MAX_SUB_DEVICES#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PARTITION_PROPERTIES#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PARTITION_TYPE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PCIE_ID_AMD#
PCI_BUS_ID_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

PCI_DOMAIN_ID_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

PCI_SLOT_ID_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

PIPE_MAX_ACTIVE_RESERVATIONS#

Available with OpenCL 2.0.

在 2015.2 版本加入.

PIPE_MAX_PACKET_SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

PIPE_SUPPORT#

Available with OpenCL 3.0.

在 2020.3 版本加入.

PLATFORM#
PREFERRED_CONSTANT_BUFFER_SIZE_AMD#
PREFERRED_GLOBAL_ATOMIC_ALIGNMENT#

Available with OpenCL 2.0.

在 2015.2 版本加入.

PREFERRED_INTEROP_USER_SYNC#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PREFERRED_LOCAL_ATOMIC_ALIGNMENT#

Available with OpenCL 2.0.

在 2015.2 版本加入.

PREFERRED_PLATFORM_ATOMIC_ALIGNMENT#

Available with OpenCL 2.0.

在 2015.2 版本加入.

PREFERRED_VECTOR_WIDTH_CHAR#
PREFERRED_VECTOR_WIDTH_DOUBLE#
PREFERRED_VECTOR_WIDTH_FLOAT#
PREFERRED_VECTOR_WIDTH_HALF#

Available with OpenCL 1.1.

在 0.92 版本加入.

PREFERRED_VECTOR_WIDTH_INT#
PREFERRED_VECTOR_WIDTH_LONG#
PREFERRED_VECTOR_WIDTH_SHORT#
PREFERRED_WORK_GROUP_SIZE_AMD#
PREFERRED_WORK_GROUP_SIZE_MULTIPLE#

Available with OpenCL 3.0.

在 2020.3 版本加入.

PRINTF_BUFFER_SIZE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PROFILE#
PROFILING_TIMER_OFFSET_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

PROFILING_TIMER_RESOLUTION#
QUEUE_ON_DEVICE_MAX_SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

QUEUE_ON_DEVICE_PREFERRED_SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

QUEUE_ON_DEVICE_PROPERTIES#

Available with OpenCL 2.0.

在 2015.2 版本加入.

QUEUE_ON_HOST_PROPERTIES#
QUEUE_PROPERTIES#
REFERENCE_COUNT#

Available with OpenCL 1.2.

在 2011.2 版本加入.

REGISTERS_PER_BLOCK_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

SIMD_INSTRUCTION_WIDTH_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

SIMD_PER_COMPUTE_UNIT_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

SIMD_WIDTH_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

SIMULTANEOUS_INTEROPS_INTEL#

Available with the cl_intel_simultaneous_sharing extension.

在 2016.2 版本加入.

SINGLE_FP_CONFIG#
SPIR_VERSIONS#

Available with the cl_khr_spir extension.

在 2016.2 版本加入.

SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS#

Available with OpenCL 2.1.

在 2016.2 版本加入.

SVM_CAPABILITIES#

Available with OpenCL 2.0.

在 2015.2 版本加入.

THREAD_TRACE_SUPPORTED_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

TOPOLOGY_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

TYPE#
VENDOR#
VENDOR_ID#
VERSION#
WARP_SIZE_NV#

Available with the cl_nv_device_attribute_query extension.

在 0.92 版本加入.

WAVEFRONT_WIDTH_AMD#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT#

Available with OpenCL 3.0.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_local_mem_type#
GLOBAL#
LOCAL#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_mem_cache_type#
NONE#
READ_ONLY_CACHE#
READ_WRITE_CACHE#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_partition_property#
BY_AFFINITY_DOMAIN#

Available with OpenCL 1.2.

在 2011.2 版本加入.

BY_COUNTS#

Available with OpenCL 1.2.

在 2011.2 版本加入.

BY_COUNTS_LIST_END#
EQUALLY#

Available with OpenCL 1.2.

在 2011.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_svm_capabilities#
ATOMICS#

Available with OpenCL 2.0.

在 2015.2 版本加入.

COARSE_GRAIN_BUFFER#

Available with OpenCL 2.0.

在 2015.2 版本加入.

FINE_GRAIN_BUFFER#

Available with OpenCL 2.0.

在 2015.2 版本加入.

FINE_GRAIN_SYSTEM#

Available with OpenCL 2.0.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_topology_type_amd#
PCIE#

Available with the cl_amd_device_attribute_query extension.

在 2013.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.device_type#
ACCELERATOR#
ALL#
CPU#
CUSTOM#

Available with OpenCL 1.2.

在 2011.2 版本加入.

DEFAULT#
GPU#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.event_info#
COMMAND_EXECUTION_STATUS#
COMMAND_QUEUE#
COMMAND_TYPE#
CONTEXT#

Available with OpenCL 1.1.

在 0.92 版本加入.

REFERENCE_COUNT#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.filter_mode#
LINEAR#
NEAREST#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.gl_context_info#

Only available when PyOpenCL is compiled with GL support. See have_gl().

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.image_info#
ARRAY_SIZE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

BUFFER#

Available with OpenCL 1.2.

在 2011.2 版本加入.

DEPTH#
ELEMENT_SIZE#
FORMAT#
HEIGHT#
NUM_MIP_LEVELS#

Available with OpenCL 1.2.

在 2011.2 版本加入.

NUM_SAMPLES#

Available with OpenCL 1.2.

在 2011.2 版本加入.

ROW_PITCH#
SLICE_PITCH#
WIDTH#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.kernel_arg_access_qualifier#
NONE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

READ_ONLY#

Available with OpenCL 1.2.

在 2011.2 版本加入.

READ_WRITE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

WRITE_ONLY#

Available with OpenCL 1.2.

在 2011.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.kernel_arg_address_qualifier#
CONSTANT#

Available with OpenCL 1.2.

在 2011.2 版本加入.

GLOBAL#

Available with OpenCL 1.2.

在 2011.2 版本加入.

LOCAL#

Available with OpenCL 1.2.

在 2011.2 版本加入.

PRIVATE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.kernel_arg_info#
ACCESS_QUALIFIER#

Available with OpenCL 1.2.

在 2011.2 版本加入.

ADDRESS_QUALIFIER#

Available with OpenCL 1.2.

在 2011.2 版本加入.

NAME#
TYPE_NAME#

Available with OpenCL 1.2.

在 2011.2 版本加入.

TYPE_QUALIFIER#

Available with OpenCL 1.2.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.kernel_arg_type_qualifier#
CONST#

Available with OpenCL 1.2.

在 2015.2 版本加入.

NONE#

Available with OpenCL 1.2.

在 2015.2 版本加入.

PIPE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

RESTRICT#

Available with OpenCL 1.2.

在 2015.2 版本加入.

VOLATILE#

Available with OpenCL 1.2.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.kernel_info#
ATTRIBUTES#

Available with OpenCL 1.2.

在 2011.2 版本加入.

CONTEXT#
FUNCTION_NAME#
NUM_ARGS#
PROGRAM#
REFERENCE_COUNT#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.kernel_sub_group_info#
COMPILE_NUM_SUB_GROUPS#

Available with OpenCL 2.1.

在 2020.3 版本加入.

LOCAL_SIZE_FOR_SUB_GROUP_COUNT#

Available with OpenCL 2.1.

在 2020.3 版本加入.

MAX_NUM_SUB_GROUPS#

Available with OpenCL 2.1.

在 2020.3 版本加入.

MAX_SUB_GROUP_SIZE_FOR_NDRANGE#

Available with OpenCL 2.1.

在 2020.3 版本加入.

SUB_GROUP_COUNT_FOR_NDRANGE#

Available with OpenCL 2.1.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.kernel_work_group_info#
COMPILE_WORK_GROUP_SIZE#
GLOBAL_WORK_SIZE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

LOCAL_MEM_SIZE#
PREFERRED_WORK_GROUP_SIZE_MULTIPLE#

Available with OpenCL 1.1.

在 0.92 版本加入.

PRIVATE_MEM_SIZE#

Available with OpenCL 1.1.

在 0.92 版本加入.

WORK_GROUP_SIZE#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.khronos_vendor_id#
CODEPLAY#

Available with OpenCL 3.0.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.map_flags#
READ#
WRITE#
WRITE_INVALIDATE_REGION#

Available with OpenCL 1.2.

在 2011.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.mem_flags#
ALLOC_HOST_PTR#
COPY_HOST_PTR#
HOST_NO_ACCESS#
HOST_READ_ONLY#
HOST_WRITE_ONLY#

Available with OpenCL 1.2.

在 2011.2 版本加入.

KERNEL_READ_AND_WRITE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

READ_ONLY#
READ_WRITE#
USE_HOST_PTR#
WRITE_ONLY#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.mem_info#
ASSOCIATED_MEMOBJECT#

Available with OpenCL 1.1.

在 0.92 版本加入.

CONTEXT#
FLAGS#
HOST_PTR#
MAP_COUNT#
OFFSET#

Available with OpenCL 1.1.

在 0.92 版本加入.

PROPERTIES#
REFERENCE_COUNT#
SIZE#
TYPE#
USES_SVM_POINTER#

Available with OpenCL 2.0.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.mem_migration_flags#
CONTENT_UNDEFINED#

Available with OpenCL 1.2.

在 2011.2 版本加入.

HOST#

Available with OpenCL 1.2.

在 2011.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.mem_object_type#
BUFFER#
IMAGE1D#

Available with OpenCL 1.2.

在 2011.2 版本加入.

IMAGE1D_ARRAY#

Available with OpenCL 1.2.

在 2011.2 版本加入.

IMAGE1D_BUFFER#

Available with OpenCL 1.2.

在 2011.2 版本加入.

IMAGE2D#
IMAGE2D_ARRAY#

Available with OpenCL 1.2.

在 2011.2 版本加入.

IMAGE3D#
PIPE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.pipe_info#
MAX_PACKETS#

Available with OpenCL 2.0.

在 2020.3 版本加入.

PACKET_SIZE#

Available with OpenCL 2.0.

在 2020.3 版本加入.

PROPERTIES#

Available with OpenCL 3.0.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.pipe_properties#
MAX_PACKETS#

Available with OpenCL 2.0.

在 2020.3 版本加入.

PACKET_SIZE#

Available with OpenCL 2.0.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.platform_info#
EXTENSIONS#
EXTENSIONS_WITH_VERSION#
HOST_TIMER_RESOLUTION#
NAME#
NUMERIC_VERSION#
PROFILE#
VENDOR#
VERSION#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.profiling_info#
COMPLETE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

END#
QUEUED#
START#
SUBMIT#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.program_binary_type#
COMPILED_OBJECT#

Available with OpenCL 1.2.

在 2011.2 版本加入.

EXECUTABLE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

LIBRARY#

Available with OpenCL 1.2.

在 2011.2 版本加入.

NONE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.program_build_info#
BINARY_TYPE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

GLOBAL_VARIABLE_TOTAL_SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

LOG#
OPTIONS#
STATUS#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.program_info#
BINARIES#
BINARY_SIZES#
CONTEXT#
DEVICES#
IL#
KERNEL_NAMES#

Available with OpenCL 1.2.

在 2011.2 版本加入.

NUM_DEVICES#
NUM_KERNELS#

Available with OpenCL 1.2.

在 2011.2 版本加入.

REFERENCE_COUNT#
SCOPE_GLOBAL_CTORS_PRESENT#

Available with OpenCL 2.1.

在 2020.3 版本加入.

SCOPE_GLOBAL_DTORS_PRESENT#

Available with OpenCL 2.1.

在 2020.3 版本加入.

SOURCE#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.program_kind#
BINARY#
IL#
SOURCE#
UNKNOWN#
name#
value#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.queue_properties#
DEVICE_DEFAULT#
PROPERTIES#

Available with OpenCL 2.0.

在 2015.2 版本加入.

SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.sampler_info#
ADDRESSING_MODE#
CONTEXT#
FILTER_MODE#
LOD_MAX#

Available with the (deprecated) extension.

在 2015.2 版本加入.

LOD_MAX_KHR#

Available with the cl_khr_mipmap_image extension.

在 2020.3 版本加入.

LOD_MIN#

Available with the (deprecated) extension.

在 2015.2 版本加入.

LOD_MIN_KHR#

Available with the cl_khr_mipmap_image extension.

在 2020.3 版本加入.

MIP_FILTER_MODE#

Available with the (deprecated) extension.

在 2015.2 版本加入.

MIP_FILTER_MODE_KHR#

Available with the cl_khr_mipmap_image extension.

在 2020.3 版本加入.

NORMALIZED_COORDS#
PROPERTIES#

Available with OpenCL 3.0.

在 2020.3 版本加入.

REFERENCE_COUNT#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.sampler_properties#
ADDRESSING_MODE#
FILTER_MODE#
NORMALIZED_COORDS#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.status_code#
BUILD_PROGRAM_FAILURE#
COMPILER_NOT_AVAILABLE#
COMPILE_PROGRAM_FAILURE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

DEVICE_NOT_AVAILABLE#
DEVICE_NOT_FOUND#
DEVICE_PARTITION_FAILED#

Available with OpenCL 1.2.

在 2011.2 版本加入.

EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST#

Available with OpenCL 1.1.

在 0.92 版本加入.

IMAGE_FORMAT_MISMATCH#
IMAGE_FORMAT_NOT_SUPPORTED#
INVALID_ARG_INDEX#
INVALID_ARG_SIZE#
INVALID_ARG_VALUE#
INVALID_BINARY#
INVALID_BUFFER_SIZE#
INVALID_BUILD_OPTIONS#
INVALID_COMMAND_QUEUE#
INVALID_COMPILER_OPTIONS#

Available with OpenCL 1.2.

在 2011.2 版本加入.

INVALID_CONTEXT#
INVALID_DEVICE#
INVALID_DEVICE_PARTITION_COUNT#

Available with OpenCL 1.2.

在 2011.2 版本加入.

INVALID_DEVICE_QUEUE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

INVALID_DEVICE_TYPE#
INVALID_EVENT#
INVALID_EVENT_WAIT_LIST#
INVALID_GLOBAL_OFFSET#
INVALID_GLOBAL_WORK_SIZE#

Available with OpenCL 1.1.

在 0.92 版本加入.

INVALID_GL_OBJECT#
INVALID_HOST_PTR#
INVALID_IMAGE_DESCRIPTOR#

Available with OpenCL 1.2.

在 2011.2 版本加入.

INVALID_IMAGE_FORMAT_DESCRIPTOR#
INVALID_IMAGE_SIZE#
INVALID_KERNEL#
INVALID_KERNEL_ARGS#
INVALID_KERNEL_DEFINITION#
INVALID_KERNEL_NAME#
INVALID_LINKER_OPTIONS#

Available with OpenCL 1.2.

在 2011.2 版本加入.

INVALID_MEM_OBJECT#
INVALID_MIP_LEVEL#
INVALID_OPERATION#
INVALID_PIPE_SIZE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

INVALID_PLATFORM#
INVALID_PROGRAM#
INVALID_PROGRAM_EXECUTABLE#
INVALID_QUEUE_PROPERTIES#
INVALID_SAMPLER#
INVALID_SPEC_ID#

Available with OpenCL 2.1.

在 2020.3 版本加入.

INVALID_VALUE#
INVALID_WORK_DIMENSION#
INVALID_WORK_GROUP_SIZE#
INVALID_WORK_ITEM_SIZE#
KERNEL_ARG_INFO_NOT_AVAILABLE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

LINKER_NOT_AVAILABLE#

Available with OpenCL 1.2.

在 2011.2 版本加入.

Available with OpenCL 1.2.

在 2011.2 版本加入.

MAP_FAILURE#
MAX_SIZE_RESTRICTION_EXCEEDED#

Available with OpenCL 2.1.

在 2020.3 版本加入.

MEM_COPY_OVERLAP#
MEM_OBJECT_ALLOCATION_FAILURE#
MISALIGNED_SUB_BUFFER_OFFSET#

Available with OpenCL 1.1.

在 0.92 版本加入.

OUT_OF_HOST_MEMORY#
OUT_OF_RESOURCES#
PLATFORM_NOT_FOUND_KHR#

Available with the cl_khr_icd extension.

在 2011.1 版本加入.

PROFILING_INFO_NOT_AVAILABLE#
SUCCESS#
to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.svm_mem_flags#
READ_ONLY#

Available with OpenCL 2.0.

在 2015.2 版本加入.

READ_WRITE#

Available with OpenCL 2.0.

在 2015.2 版本加入.

SVM_ATOMICS#

Available with OpenCL 2.0.

在 2015.2 版本加入.

SVM_FINE_GRAIN_BUFFER#

Available with OpenCL 2.0.

在 2015.2 版本加入.

WRITE_ONLY#

Available with OpenCL 2.0.

在 2015.2 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.version_bits#
MAJOR_BITS#

Available with OpenCL 3.0.

在 2020.3 版本加入.

MAJOR_MASK#

Available with OpenCL 3.0.

在 2020.3 版本加入.

MINOR_BITS#

Available with OpenCL 3.0.

在 2020.3 版本加入.

MINOR_MASK#

Available with OpenCL 3.0.

在 2020.3 版本加入.

PATCH_BITS#

Available with OpenCL 3.0.

在 2020.3 版本加入.

PATCH_MASK#

Available with OpenCL 3.0.

在 2020.3 版本加入.

to_string(value)[源代码]#

Returns a str representing value.

在 0.91 版本加入.

class pyopencl.NameVersion#

描述特定功能的版本。

备注

仅适用于OpenCL 3.0或更新版本。

在 2020.3 版本加入.

__init__(version, name)#
version#
name#
class pyopencl.DeviceTopologyAmd#
__init__(bus, device, function)#
type#
bus#
device#
function#