public int getOptionalFeatureInt(@Ptr long entity, int infoName) { try { return getInt(entity, infoName); } catch (CLException.InvalidValue ex) { throw new UnsupportedOperationException("Cannot get value " + infoName, ex); } catch (CLException.InvalidOperation ex) { throw new UnsupportedOperationException("Cannot get value " + infoName, ex); } } public int getInt(@Ptr long entity, int infoName) {
/** * Return the execution status of the command identified by event. <br> * @throws CLException is the execution status denotes an error */ @InfoName("CL_EVENT_COMMAND_EXECUTION_STATUS") public int getCommandExecutionStatusValue() { return infos.getInt(getEntity(), CL_EVENT_COMMAND_EXECUTION_STATUS); }
/** * Max number of simultaneous image objects that can be read by a kernel. <br> * The minimum value is 128 if CL_DEVICE_IMAGE_SUPPORT is CL_TRUE (@see hasImageSupport()). */ @InfoName("CL_DEVICE_MAX_READ_IMAGE_ARGS") public int getMaxReadImageArgs() { return infos.getInt(getEntity(), CL_DEVICE_MAX_READ_IMAGE_ARGS); }
/** * Size of global memory cache line in bytes. */ @InfoName("CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE") public int getGlobalMemCachelineSize() { return infos.getInt(getEntity(), CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE); }
/** * Preferred native vector width size for built-in scalar types that can be put into vectors. <br> * The vector width is defined as the number of scalar elements that can be stored in the vector. <br> * If the cl_khr_fp64 extension is not supported, CL_DEVICE_PREFERRED_VECTOR_WID TH_DOUBLE must return 0. */ @InfoName("CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG") public int getPreferredVectorWidthLong() { return infos.getInt(getEntity(), CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG); }
/** * Maximum dimensions that specify the global and local work-item IDs used by the data parallel execution model. <br> * (Refer to clEnqueueNDRangeKernel). * <br>The minimum value is 3. */ @InfoName("CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS") public int getMaxWorkItemDimensions() { return infos.getInt(getEntity(), CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS); }
/** * Max number of simultaneous image objects that can be read by a kernel. <br> * The minimum value is 128 if CL_DEVICE_IMAGE_SUPPORT is CL_TRUE (@see hasImageSupport()). */ @InfoName("CL_DEVICE_MAX_READ_IMAGE_ARGS") public int getMaxReadImageArgs() { return infos.getInt(getEntity(), CL_DEVICE_MAX_READ_IMAGE_ARGS); }
/** * Max number of simultaneous image objects that can be written to by a kernel. <br> * The minimum value is 8 if CL_DEVICE_IMAGE_SUPPORT is CL_TRUE (@see hasImageSupport()). */ @InfoName("CL_DEVICE_MAX_WRITE_IMAGE_ARGS") public int getMaxWriteImageArgs() { return infos.getInt(getEntity(), CL_DEVICE_MAX_WRITE_IMAGE_ARGS); }
/** * Max number of simultaneous image objects that can be written to by a kernel. <br> * The minimum value is 8 if CL_DEVICE_IMAGE_SUPPORT is CL_TRUE (@see hasImageSupport()). */ @InfoName("CL_DEVICE_MAX_WRITE_IMAGE_ARGS") public int getMaxWriteImageArgs() { return infos.getInt(getEntity(), CL_DEVICE_MAX_WRITE_IMAGE_ARGS); }
/** * Maximum number of samplers that can be used in a kernel. <br> * Refer to section 6.11.8 for a detailed description on samplers. <br> * The minimum value is 16 if CL_DEVICE_IMAGE_SUPPORT is CL_TRUE. */ @InfoName("CL_DEVICE_MAX_SAMPLERS") public int getMaxSamplers() { return infos.getInt(getEntity(), CL_DEVICE_MAX_SAMPLERS); }
/** * The number of parallel compute cores on the OpenCL device. <br> * The minimum value is 1. */ @InfoName("CL_DEVICE_MAX_COMPUTE_UNITS") public int getMaxComputeUnits() { return infos.getInt(getEntity(), CL_DEVICE_MAX_COMPUTE_UNITS); }
/** * The default compute device address space size specified as an unsigned integer value in bits. Currently supported values are 32 or 64 bits..<br> * Size of size_t type in OpenCL kernels can be obtained with getAddressBits() / 8. */ @InfoName("CL_DEVICE_ADDRESS_BITS") public int getAddressBits() { return infos.getInt(getEntity(), CL_DEVICE_ADDRESS_BITS); }
/** * Preferred native vector width size for built-in scalar types that can be put into vectors. <br> * The vector width is defined as the number of scalar elements that can be stored in the vector. <br> * If the cl_khr_fp64 extension is not supported, CL_DEVICE_PREFERRED_VECTOR_WID TH_DOUBLE must return 0. */ @InfoName("CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR") public int getPreferredVectorWidthChar() { return infos.getInt(getEntity(), CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR); }
/** * Preferred native vector width size for built-in scalar types that can be put into vectors. <br> * The vector width is defined as the number of scalar elements that can be stored in the vector. <br> * If the cl_khr_fp64 extension is not supported, CL_DEVICE_PREFERRED_VECTOR_WID TH_DOUBLE must return 0. */ @InfoName("CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT") public int getPreferredVectorWidthShort() { return infos.getInt(getEntity(), CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT); }
/** * Maximum dimensions that specify the global and local work-item IDs used by the data parallel execution model. <br> * (Refer to clEnqueueNDRangeKernel). * <br>The minimum value is 3. */ @InfoName("CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS") public int getMaxWorkItemDimensions() { return infos.getInt(getEntity(), CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS); }
/** * Describes the alignment in bits of the base address of any allocated memory object. */ @InfoName("CL_DEVICE_MEM_BASE_ADDR_ALIGN") public int getMemBaseAddrAlign() { return infos.getInt(getEntity(), CL_DEVICE_MEM_BASE_ADDR_ALIGN); }
/** * The smallest alignment in bytes which can be used for any data type. */ @InfoName("CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE") public int getMinDataTypeAlign() { return infos.getInt(getEntity(), CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE); }
/** * Type of local memory supported. <br> */ @InfoName("CL_DEVICE_LOCAL_MEM_TYPE") public LocalMemType getLocalMemType() { return LocalMemType.getEnum(infos.getInt(getEntity(), CL_DEVICE_LOCAL_MEM_TYPE)); }
/** * Return the value specified by addressing_mode argument to CLContext.createSampler. */ @InfoName("CL_SAMPLER_ADDRESSING_MODE") public AddressingMode getAddressingMode() { return AddressingMode.getEnum(infos.getInt(getEntity(), CL_SAMPLER_ADDRESSING_MODE)); }
/** * Return the execution status of the command identified by event. <br> * @throws CLException is the execution status denotes an error */ public CommandExecutionStatus getCommandExecutionStatus() { int v = infos.getInt(getEntity(), CL_EVENT_COMMAND_EXECUTION_STATUS); CommandExecutionStatus status = CommandExecutionStatus.getEnum(v); if (status == null) error(v); return status; } /**