khronos-opencl-man-1.0~svn22836/ 0000755 0001750 0001750 00000000000 12206644025 016271 5 ustar mathieu mathieu khronos-opencl-man-1.0~svn22836/commonMin.xml 0000644 0001750 0001750 00000014176 11660441607 020764 0 ustar mathieu mathieu
]>
min
min2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3min
Returns the lesser of two values.
gentype
min
gentypexgentypey
gentypef
min
gentypefxfloaty
gentyped
min
gentypedxdoubleygentypemin (gentypex,
halfy) // if half extension enabled
Descriptionmin returns y if y <
x, otherwise it returns x. If x
and y are infinite or NaN, the return values are undefined.
Notes
&commonFunctionsInc;
If extended with cl_khr_fp16,
generic type name gentype may indicate half and
half{2|3|4|8|16} as arguments and return values.
SpecificationOpenCL SpecificationAlso seeCommon Functions
khronos-opencl-man-1.0~svn22836/clGetDeviceIDsFromDX9MediaAdapterKHR.xml 0000644 0001750 0001750 00000033147 11660441607 025564 0 ustar mathieu mathieu
]>
clGetDeviceIDsFromDX9MediaAdapterKHRclGetDeviceIDsFromDX9MediaAdapterKHR2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3clGetDeviceIDsFromDX9MediaAdapterKHRQuery a media adapter for any associated OpenCL devices.
cl_int
clGetDeviceIDsFromDX9MediaAdapterKHRcl_platform_idplatformcl_uintnum_media_adapterscl_dx9_media_adapter_type_khr*media_adapters_typevoid*media_adapterscl_dx9_media_adapter_set_khrmedia_adapter_setcl_uintnum_entriescl_device_id*devicescl_int*num_devicesParametersplatform
Refers to the platform ID returned by
clGetPlatformIDs.
num_media_adapters
The number of media adapters.
media_adapters_type
An array of num_media_adapters entries. Each entry specifies
the type of media adapter and must be one of the values described in the table below.
cl_dx9_media_adapter_type_khr Type of media adaptersCL_ADAPTER_D3D9_KHRIDirect3DDevice9 *CL_ADAPTER_D3D9EX_KHRIDirect3DDevice9Ex *CL_ADAPTER_DXVA_KHRIDXVAHD_Device *media_adapters
An array of num_media_adapters entries. Each
entry specifies the actual adapter whose type is specified by
media_adapter_type. The media_adapters
must be one of the types describes in the table above.
media_adapter_set
Specifies the set of adapters to return and must be one of the values described
in the table below.
cl_dx9_media_adapter_set_khrDescriptionCL_PREFERRED_DEVICES_FOR_MEDIA_ADAPTER_KHR
The preferred OpenCL devices associated with the media adapter.
CL_ALL_DEVICES_FOR_MEDIA_ADAPTER_KHR
All OpenCL devices that may interoperate with the media adapter.
num_entries
The number of cl_device_id entries that can be added to
devices. If devices is not NULL,
the num_entries must be greater than zero.
devices
Returns a list of OpenCL devices found that support the list of media adapters
specified. The cl_device_id values returned in devices
can be used to identify a specific OpenCL device. If devices
argument is NULL, this argument is ignored. The number of OpenCL devices returned
is the minimum of the value specified by num_entries or
the number of OpenCL devices whose type matches device_type.
num_devices
Returns the number of OpenCL devices. If num_devices
is NULL, this argument is ignored.
Description
Queries a media adapter for any associated OpenCL devices. Adapters with associated
OpenCL devices can enable media surface sharing between the two.
Notes
&mediaSurfaceFormatsInc;
&accessMappedInc;
Errors
Returns CL_SUCCESS if the function is executed successfully.
Otherwise, it returns one of the following errors:
CL_INVALID_PLATFORM if platform is not
a valid platform.
CL_INVALID_VALUE if num_media_adapters
is zero or if media_adapters_type is NULL or if
media_adapters is NULL.
CL_INVALID_VALUE if any of the entries in
media_adapters_type or media_adapters
is not a valid value.
CL_INVALID_VALUE if media_adapter_set
is not a valid value.
CL_INVALID_VALUE if num_entries
is equal to zero and devices is not NULL or if both
num_devices and devices are NULL.
CL_DEVICE_NOT_FOUND if no OpenCL devices that
correspond to adapters specified in media_adapters and
media_adapters_type were found.
CL_OUT_OF_RESOURCES if there is a failure to allocate
resources required by the OpenCL implementation on the device.
CL_OUT_OF_HOST_MEMORY if there is a failure to allocate
resources required by the OpenCL implementation on the host.
SpecificationOpenCL SpecificationAlso seecl_khr_dx9_media_sharing,
clGetDeviceIDsFromDX9MediaAdapterKHR,
clCreateFromDX9MediaSurfaceKHR,
clEnqueueAcquireDX9MediaSurfacesKHR,
clEnqueueReleaseDX9MediaSurfacesKHR,
khronos-opencl-man-1.0~svn22836/commonMax.xml 0000644 0001750 0001750 00000014177 11660441607 020767 0 ustar mathieu mathieu
]>
max
max2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3max
Returns the greater of two values.
gentype
max
gentypexgentypey
gentypef
max
gentypefxfloaty
gentyped
max
gentypedxdoubleygentypemax (gentypex,
halfy) // if half extension enabled
Descriptionmax returns y if x <
y, otherwise it returns x. If x
and y are infinite or NaN, the return values are undefined.
Notes
&commonFunctionsInc;
If extended with cl_khr_fp16,
generic type name gentype may indicate half and
half{2|3|4|8|16} as arguments and return values.
SpecificationOpenCL SpecificationAlso seeCommon Functions
khronos-opencl-man-1.0~svn22836/atomic_and.xml 0000644 0001750 0001750 00000016230 11660441607 021117 0 ustar mathieu mathieu
atomic_andatomic_and2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3atomic_and
atomic_and functions.
int
atomic_and
volatile __global
int*pintval
unsigned int
atomic_and
volatile __global
unsigned int*punsigned intval
int
atomic_and
volatile __local
int*pintval
unsigned int
atomic_and
volatile __local
unsigned int*punsigned intvalDescription
Read the 32-bit value (referred to as old) stored at location pointed by
p. Compute (old & val) and store
result at location pointed by p. The function returns old.
A 64-bit version of this function, atom_and,
is enabled by cl_khr_int64_extended_atomics.
SpecificationOpenCL SpecificationAlso seeAtomic Functions,
atom_and
khronos-opencl-man-1.0~svn22836/clReleaseKernel.xml 0000644 0001750 0001750 00000015177 11660441607 022072 0 ustar mathieu mathieu
clReleaseKernel
clReleaseKernel
2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3
clReleaseKernel
Decrements the kernel reference count.
cl_int
clReleaseKernelcl_kernelkernelNotes
The kernel object is deleted once the number of instances that are retained
to kernel become zero and the kernel object is no longer needed by any
enqueued commands that use kernel.
Errors
Returns CL_SUCCESS if the kernel objects are successfully
alloctaed. Otherwise, it returns one of the following errors:
CL_INVALID_KERNEL if kernel is not a
valid kernel object.
CL_OUT_OF_RESOURCES if there is a failure to allocate
resources required by the OpenCL implementation on the device.
CL_OUT_OF_HOST_MEMORY if there is a failure to allocate
resources required by the OpenCL implementation on the host.
SpecificationOpenCL SpecificationAlso seeclCreateKernel,
clCreateKernelsInProgram,
clRetainKernel,
clSetKernelArg,
clGetKernelInfo,
clGetKernelWorkGroupInfo
khronos-opencl-man-1.0~svn22836/FP_CONTRACT.xml 0000644 0001750 0001750 00000016501 11660441607 020624 0 ustar mathieu mathieu
FP_CONTRACT, FP_FAST_FMAF, FP_FAST_FMA_HALFFP_CONTRACT, FP_FAST_FMAF, FP_FAST_FMA_HALF2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3FP_CONTRACT, FP_FAST_FMAF, FP_FAST_FMA_HALF
Control expression contraction; fast fma()
#pragma OPENCL FP_CONTRACT on-off-switchon-off-switch is one of:
ON, OFF or DEFAULT.
The DEFAULT value is ON.
FP_FAST_FMAF
FP_FAST_FMA
FP_FAST_FMA_HALF
FP_CONTRACT
The FP_CONTRACT pragma takes the form:
#pragma OPENCL FP_CONTRACT on-off-switch
FP_CONTRACT can be used to allow (if the state is
on) or disallow (if the state is off)
the implementation to contract expressions. Each pragma can occur either outside
external declarations or preceding all explicit declarations and statements inside
a compound statement.
The parameter on-off-switch is one of ON, OFF or DEFAULT. The
DEFAULT value is ON.
When outside external declarations, the pragma takes effect from its occurrence until
another FP_CONTRACT pragma is encountered, or until the end of
the translation unit. When inside a compound statement, the pragma takes effect from
its occurrence until another FP_CONTRACT pragma is encountered
(including within a nested compound statement), or until the end of the compound
statement; at the end of a compound statement the state for the pragma is restored
to its condition just before the compound statement. If this pragma is used in any
other context, the behavior is undefined.
FP_FAST_FMAF and FP_FAST_FMA
The FP_FAST_FMAF macro indicates whether the
fma function
is fast compared with direct code for single precision floating-point. If
defined, the FP_FAST_FMAF macro shall indicate that the
fma() function generally
executes about as fast as, or faster than, a multiply and an add of float operands.
The FP_FAST_FMA macro indicates whether the
fma family of functions
are fast compared with direct code for double precision floating-point. If
defined, the FP_FAST_FMA macro shall indicate that the
fma() function generally
executes about as fast as, or faster than, a multiply and an add of double operands.
The FP_FAST_FMA_HALF macro indicates whether the
fma() family of
functions are fast compared with direct code for half precision floating-point. If
defined, the FP_FAST_FMA_HALF macro shall indicate that the
fma() function generally
executes about as fast as, or faster than, a multiply and an add of half operands
SpecificationOpenCL SpecificationAlso seeMath Functions,
Symbolic Math Constants,
Macros and Limits
khronos-opencl-man-1.0~svn22836/mul24.xml 0000644 0001750 0001750 00000012332 11660441607 017763 0 ustar mathieu mathieu
mul24mul242007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3mul24
Fast integer function to multiply 24-bit integer values.
gentype
mul24
gentypexgentypeyDescriptionmul24 multiplies two 24-bit integer values
x and y. x and
y are 32-bit integers but only the low 24-bits are used
to perform the multiplication. mul24 should only be
used when values in x and y are in the
range [-223, 223-1] if
x and y are signed integers and in the range [0,
224-1] if x and y
are unsigned integers. If x and y are not in
this range, the multiplication result is implementation-defined.
Notes
Fast integer functions can be used for optimizing performance of kernels. We
use the generic type name gentype to indicate that the function can
take int, int2, int3, int4,
int8, int16, uint, uint2,
uint3, uint4, uint8, or uint16
as the type for the arguments.
SpecificationOpenCL SpecificationAlso seeInteger Functions
khronos-opencl-man-1.0~svn22836/clGetDeviceIDsFromD3D10KHR.xml 0000644 0001750 0001750 00000030063 11660441607 023424 0 ustar mathieu mathieu
]>
clGetDeviceIDsFromD3D10KHRclGetDeviceIDsFromD3D10KHR2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3clGetDeviceIDsFromD3D10KHRQuerying OpenCL Devices Corresponding to Direct3D 10 Devices.
cl_int
clGetDeviceIDsFromD3D10KHRcl_platform_idplatformcl_d3d10_device_source_khrd3d_device_sourcevoid*d3d_objectcl_d3d10_device_set_khrd3d_device_setcl_uintnum_entriescl_device_id*devicescl_uint*num_devicesParametersplatform
Refers to the platform ID returned by
clGetPlatformIDs.
d3d_device_source
Specifies the type of d3d_object and may be one of the following:.
cl_d3d_device_source_khrType of d3d_objectCL_D3D10_DEVICE_KHRID3D10Device *CL_D3D10_DXGI_ADAPTER_KHRIDXGIAdapter *d3d_object
Specifies the object whose corresponding OpenCL devices are being queried. The type of
d3d_object must be as specified in the table above.
d3d_device_set
Specifies the set of devices to return, and must be one of the following:
cl_d3d_device_set_khrDevices returned in devicesCL_PREFERRED_DEVICES_FOR_D3D10_KHR
The OpenCL devices associated with the specified Direct3D object.
CL_ALL_DEVICES_FOR_D3D10_KHR
All OpenCL devices which may interoperate with the specified
Direct3D object. Performance of sharing data on these devices
may be considerably less than on the preferred devices.
num_entries
The number of cl_device_id entries that can be added to
devices. If devices is not NULL,
the num_entries must be greater than zero.
devices
Returns a list of OpenCL devices found. The cl_device_id values returned
in devices can be used to identify a specific OpenCL
device. If devices is NULL, this argument is ignored. The
number of OpenCL devices returned is the mininum of the value specified by
num_entries and the number of OpenCL devices corresponding
to d3d_object.
num_devices
Returns the number of OpenCL devices available that correspond to
d3d_object. If num_devices is NULL,
this argument is ignored.
Description
The OpenCL devices corresponding to a Direct3D 10 device may be queried. The OpenCL
devices corresponding to a DXGI adapter may also be queried. The OpenCL devices
corresponding to a Direct3D 10 device will be a subset of the OpenCL devices
corresponding to the DXGI adapter against which the Direct3D 10 device was created.
Notes
&sharingD3D10Inc;
Errors
Returns CL_SUCCESS if the function is executed successfully. Otherwise it may return:
CL_INVALID_PLATFORM if platform is not
a valid platform.
CL_INVALID_VALUE if d3d_device_source
is not a valid value, d3d_device_set is not a valid value,
num_entries is equal to zero and devices is
not NULL, or if both num_devices and devices
are NULL.
CL_DEVICE_NOT_FOUND if no OpenCL devices that correspond
to d3d_object were found.
SpecificationOpenCL SpecificationAlso seecl_khr_d3d10_sharing,
clCreateFromD3D10BufferKHR,
clCreateFromD3D10Texture2DKHR,
clCreateFromD3D10Texture3DKHR,
clEnqueueAcquireD3D10ObjectsKHR,
clEnqueueReleaseD3D10ObjectsKHR
khronos-opencl-man-1.0~svn22836/remainder.xml 0000644 0001750 0001750 00000010710 11660441607 020764 0 ustar mathieu mathieu
]>
remainderremainder2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3remainder
Floating point remainder function.
gentype
remainder
gentypexgentypeyDescription
Computes the value r such that r
= x - n*y,
where n is the integer nearest the exact value of
x/y. If there are two integers closest
to x/y, n shall be the even one. If
r is zero, it is given the same sign as x.
Notes
&mathFunctionsInc;
SpecificationOpenCL SpecificationAlso seeMath Functions
khronos-opencl-man-1.0~svn22836/fast_distance.xml 0000644 0001750 0001750 00000010523 11660441607 021627 0 ustar mathieu mathieu
]>
fast_distancefast_distance2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3fast_distance
Vector distance.
float
fast_distance
floatnp0floatnp1Description
Returns
fast_length(p0
- p1).
Notes
&geometricFunctionsInc;
SpecificationOpenCL SpecificationAlso seeGeometric Functions
khronos-opencl-man-1.0~svn22836/geometricFunctions.xml 0000644 0001750 0001750 00000010415 11660441607 022667 0 ustar mathieu mathieu
]>
Geometric Built-In FunctionsGeometric Built-In Functions2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3Geometric Built-In FunctionsClick an item in the table below for details about that function.crossCross productdotDot productdistanceVector distancelengthVector lengthnormalizeNormal vector length 1fast_distanceVector distancefast_lengthVector lengthfast_normalizeNormal vector length 1SpecificationOpenCL Specification
khronos-opencl-man-1.0~svn22836/read_imagef1d.xml 0000644 0001750 0001750 00000024305 11660441607 021473 0 ustar mathieu mathieu
[
]>
read_imagef (1D)read_imagef (1D)2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3read_imagef (1D)
Do an element lookup in the 1D image object, returning floating-point values.
float4
read_imagef
image1d_t
image
sampler_t
sampler
int
coord
float4
read_imagef
image1d_t
image
sampler_t
sampler
float
coord
float4
read_imagef
image1d_t
image
int
coord
float4
read_imagef
image1d_buffer_t
image
int
coord
float4
read_imagef
image1d_array_t
image
int2
coord
float4
read_imagef
image1d_array_t
image
sampler_t
sampler
float4
coordFunctions to read 1D images and image arrays
For forms that take image1d_t, use coord to do an
element lookup in the 1D image object specified by image.
For forms that take image1d_array_t, use coord.x
to do an element lookup in the 1D image identified by coord.y
in the 1D image array specified by image.
The samplerless read image functions behave exactly as the corresponding read
image functions that take integer coordinates and a sampler with filter mode
set to CLK_FILTER_NEAREST, normalized coordinates set
to CLK_NORMALIZED_COORDS_FALSE and addressing mode to
CLK_ADDRESS_NONE.
read_imagef returns floating-point values in the range
[0.0... 1.0] for image objects created with image_channel_data_type
set to one of the predefined packed formats or CL_UNORM_INT8
or CL_UNORM_INT16.
read_imagef returns floating-point values in the range [-1.0... 1.0]
for image objects created with image_channel_data_type set to
CL_SNORM_INT8, or CL_SNORM_INT16.
read_imagef returns floating-point values for image objects created
with image_channel_data_type set to CL_HALF_FLOAT
or CL_FLOAT.
The read_imagef calls that take integer coordinates must
use a sampler with filter mode set to CLK_FILTER_NEAREST,
normalized coordinates set to CLK_NORMALIZED_COORDS_FALSE
and addressing mode set to CLK_ADDRESS_CLAMP_TO_EDGE,
CLK_ADDRESS_CLAMP or CLK_ADDRESS_NONE;
otherwise the values returned are undefined.
Values returned by read_imagef for image objects with
image_channel_data_type values not specified in the description
above are undefined.
Notes
General information about the read_image* functions follows.
&imageFunctionsInc;
&imageMappingInc;
SpecificationOpenCL SpecificationAlso seeImage Functions
khronos-opencl-man-1.0~svn22836/get_image_height.xml 0000644 0001750 0001750 00000012154 11660441607 022273 0 ustar mathieu mathieu
get_image_heightget_image_height2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3get_image_height
Return the image height in pixels.
int
get_image_height
image2d_timage
int
get_image_height
image3d_timage
int
get_image_height
image2d_array_timageDescription
Return the image height in pixels.
SpecificationOpenCL SpecificationAlso seeImage Functions
khronos-opencl-man-1.0~svn22836/get_image_array_size.xml 0000644 0001750 0001750 00000010604 11660441607 023171 0 ustar mathieu mathieu
get_image_array_sizeget_image_array_size2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3get_image_array_size
Return the number of images in an image array.
size_t
get_image_array_size
image2d_array_t
image
size_t
get_image_array_size
image1d_array_t
imageDescriptionget_image_array_size with
image2d_t
returns the number of images in a 2D image array.
get_image_array_size with
image1d_t
returns the number of images in a 1D image array.
SpecificationOpenCL SpecificationAlso seeImage Functions
khronos-opencl-man-1.0~svn22836/clCreateProgramWithBinary.xml 0000644 0001750 0001750 00000032765 11660441607 024107 0 ustar mathieu mathieu
clCreateProgramWithBinary
clCreateProgramWithBinary
2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3
clCreateProgramWithBinary
Creates a program object for a context, and loads the binary bits specified by
binary into the program object.
cl_program clCreateProgramWithBinarycl_contextcontextcl_uintnum_devicesconst cl_device_id*device_listconst size_t*lengthsconst unsigned char**binariescl_int*binary_statuscl_int*errcode_retParameters context
Must be a valid OpenCL context.
device_list
A pointer to a list of devices that are in context.
device_list must be a non-NULL
value. The binaries are loaded for devices specified in this list.
num_devices
The number of devices listed in device_list.
The devices associated with the program object will be the list of devices specified by
device_list. The list of devices specified by device_list
must be devices associated with context.
lengths
An array of the size in bytes of the program binaries
to be loaded for devices specified by device_list.
binaries
An array of pointers to program binaries to be loaded for devices
specified by device_list. For each device given
by device_list[i], the pointer to the program
binary for that device is given by binaries[i]
and the length of this corresponding binary is given by
lengths[i]. lengths[i] cannot be
zero and binaries[i] cannot be a NULL pointer.
The program binaries specified by binaries
contain the bits that describe one of the following:
a program executable to be run on the device(s) associated
with context.
a compiled program for device(s) associated with context.
a library of compiled programs for device(s) associated with
context.
The program binary can consist of either or both of device-specific
code and/or implementation-specific intermediate representation (IR)
which will be converted to the device-specific code.
binary_status
Returns whether the program binary for each device specified
in device_list was loaded successfully
or not. It is an array of num_devices
entries and returns CL_SUCCESS in
binary_status[i] if binary was successfully
loaded for device specified by device_list[i];
otherwise returns CL_INVALID_VALUE if
lengths[i] is zero or if binaries[i]
is a NULL value or CL_INVALID_BINARY in
binary_status[i] if program binary is not a valid
binary for the specified device. If binary_status
is NULL, it is ignored.
errcode_ret
Returns an appropriate error code. If errcode_ret
is NULL, no error code is returned.
Notes
OpenCL allows applications to create a program object using the program source or
binary and build appropriate program executables. This can be very useful as it
allows applications to load program source and then compile and link to generate a
program executable online on its first instance for appropriate OpenCL devices in
the system. These executables can now be queried and cached by the application.
Future instances of the application launching will no longer need to compile and
link the program executables. The cached executables can be read and loaded by the
application, which can help significantly reduce the application initialization time.
Errors
Returns a valid non-zero program object and errcode_ret is set to
CL_SUCCESS if the program object is created successfully.
Otherwise, it returns a NULL value with one of the following error values returned in
errcode_ret:
CL_INVALID_CONTEXT if context is not
a valid context.
CL_INVALID_VALUE if device_list is NULL
or num_devices is zero;
CL_INVALID_DEVICE if OpenCL devices listed in
device_list are not in the list of devices associated with
context.
CL_INVALID_VALUE if or if lengths or
binaries are NULL or if any entry in lengths[i]
or binaries[i] is NULL.
CL_INVALID_BINARY if an invalid program binary was encountered
for any device. binary_status will return specific status for
each device.
CL_OUT_OF_RESOURCES if there is a failure to allocate
resources required by the OpenCL implementation on the device.
CL_OUT_OF_HOST_MEMORY if there is a failure to allocate
resources required by the OpenCL implementation on the host.
SpecificationOpenCL SpecificationAlso seeclCreateProgramWithSource,
clReleaseProgram,
clRetainProgram,
Cardinality Diagram
khronos-opencl-man-1.0~svn22836/clGetKernelInfo.xml 0000644 0001750 0001750 00000032676 11660441607 022050 0 ustar mathieu mathieu
clGetKernelInfo
clGetKernelInfo
2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3
clGetKernelInfo
Returns information about the kernel object.
cl_int
clGetKernelInfo
cl_kernel
kernel
cl_kernel_info
param_name
size_t
param_value_size
void
*param_value
size_t
*param_value_size_retParameters kernel
Specifies the kernel object being queried.
param_name
Specifies the information to query. The list of supported
param_name types and the information returned in
param_value by clGetKernelInfo
is described in the table below.
param_value
A pointer to memory where the appropriate result being queried is returned.
If param_value is NULL, it is ignored.
param_value_size
Used to specify the size in bytes of memory pointed to
by param_value.
This size must be ≥ size of return
type as described in the table below.
cl_kernel_infoReturn TypeInfo. returned in param_valueCL_KERNEL_FUNCTION_NAMEchar[]
Return the kernel function name.
CL_KERNEL_NUM_ARGScl_uint
Return the number of arguments to kernel.
CL_KERNEL_REFERENCE_COUNTcl_uint
Return the kernel reference count.
The reference count returned should be considered
immediately stale. It is unsuitable for general use
in applications. This feature is provided for identifying memory leaks.
CL_KERNEL_CONTEXTcl_context
Return the context associated with kernel.
CL_KERNEL_PROGRAMcl_program
Return the program object associated with kernel.
CL_KERNEL_ATTRIBUTESchar[]
Returns any attributes specified using the
__attribute__
qualifier with the kernel function declaration in
the program source. These attributes include those on the
__attribute__
page and other attributes supported by an implementation.
Attributes are returned as they were declared inside
__attribute__((...)),
with any surrounding whitespace and embedded newlines
removed. When multiple attributes are present, they are
returned as a single, space delimited string.
param_value_size_ret
the actual size in bytes of data copied to param_value.
If param_value_size_ret is NULL, it is ignored.
Errors
Returns CL_SUCCESS if the function is executed
successfully. Otherwise, it returns one of the following errors:
CL_INVALID_VALUE if param_name is not
valid, or if size in bytes specified by param_value_size
is < size of return type as described in the table above and
param_value is not NULL.
CL_INVALID_KERNEL if kernel
is not a valid kernel object.
CL_OUT_OF_RESOURCES if there is a failure to
allocate resources required by the
OpenCL implementation on the device.
CL_OUT_OF_HOST_MEMORY if there is a failure
to allocate resources required by the
OpenCL implementation on the host.
SpecificationOpenCL SpecificationAlso seeclCreateKernel,
clCreateKernelsInProgram,
clGetKernelArgInfo,
clRetainKernel,
clReleaseKernel,
clSetKernelArg,
clGetKernelWorkGroupInfo
khronos-opencl-man-1.0~svn22836/fabs.xml 0000644 0001750 0001750 00000007715 11660441607 017744 0 ustar mathieu mathieu
]>
fabsfabs2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3fabs
Compute absolute value of a floating-point number.
gentype
fabs
gentypeDescriptionfabs computes the absolute value of a floating-point number.Notes
&mathFunctionsInc;
SpecificationOpenCL SpecificationAlso seeMath Functions
khronos-opencl-man-1.0~svn22836/nan.xml 0000644 0001750 0001750 00000014656 11660441607 017607 0 ustar mathieu mathieu
]>
nannan2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3nan
Quiet NaN
floatn
nan
uintnnancode
float
nan
uint
nancode
doublen
nan
ulongnnancode
double
nan
ulong
nancodehalfnnan (ushortnnancode) // if half extension enabled
Descriptionnan returns a quiet NaN. The nancode may be
placed in the significand of the resulting NaN.
Notes
&mathFunctionsInc;
SpecificationOpenCL SpecificationAlso seeMath Functions
khronos-opencl-man-1.0~svn22836/atomic_or.xml 0000644 0001750 0001750 00000016211 11660441607 020774 0 ustar mathieu mathieu
atomic_oratomic_or2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3atomic_or
atomic_or functions.
int
atomic_or
volatile __global
int*pintval
unsigned int
atomic_or
volatile __global
unsigned int*punsigned intval
int
atomic_or
volatile __local
int*pintval
unsigned int
atomic_or
volatile __local
unsigned int*punsigned intvalDescription
Read the 32-bit value (referred to as old) stored at location pointed by
p. Compute (old | val) and store
result at location pointed by p. The function returns old.
A 64-bit version of this function, atom_or,
is enabled by cl_khr_int64_extended_atomics.
SpecificationOpenCL SpecificationAlso seeAtomic Functions,
atom_or
khronos-opencl-man-1.0~svn22836/relationalFunctionsGEN.xml 0000644 0001750 0001750 00000001502 11660441607 023372 0 ustar mathieu mathieu
The argment type gentype can be char,
charn,uchar,
ucharn, short,
shortn, ushort,
ushortn, int,
intn, uint,
uintn, long,
longn, ulong,
ulongn, float,
floatn, double, and
doublen.
khronos-opencl-man-1.0~svn22836/operators.xml 0000644 0001750 0001750 00000012460 11660441607 021040 0 ustar mathieu mathieu
OperatorsOperators2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3OperatorsOperators used in OpenCL.
The following operators are used in OpenCL. For information about the usage of these
operators, please refer to the OpenCL specification.
add+subtract-multiply*divide/remainder%unary plus+unary minus-post- and pre-increment++post- and pre-decrement--relational greater-than>relational less-than<relational greater-than or equal-to>=relational less-than or equal-to<=equal==not equal!=bitwise and&bitwise or|bitwise not^bitwise not~logical and&&logical or||logical exclusive or^^logical unary not!ternary selection?:right shift>>left shift <<size ofsizeofcomma,dereference*address-of&assignment =Note
Except for the sizeof operator, the half data type
cannot be used with any of the operators described in this section.
SpecificationOpenCL Specification
khronos-opencl-man-1.0~svn22836/isordered.xml 0000644 0001750 0001750 00000017350 11660441607 021005 0 ustar mathieu mathieu
]>
isorderedisordered2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3isordered
Test if arguments are ordered.
int
isordered
floatxfloaty
intn
isordered
floatnxfloatny
int
isordered
doublexdoubley
longn
isordered
doublenxdoublenyintisordered
(halfx,
halfy) // if half extension enabled
shortnisordered
(halfnx,
halfny) // if half extension enabled
Description
Test if arguments are ordered. isordered() takes
arguments x and y, and returns the result
isequal(x,
x) && isequal(y, y).
Notes
&relationalFunctionsInc1;
&relationalFunctionsInc2;
SpecificationOpenCL SpecificationAlso seeRelational Functions
khronos-opencl-man-1.0~svn22836/radians.xml 0000644 0001750 0001750 00000010526 11660441607 020444 0 ustar mathieu mathieu
]>
radiansradians2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3radians
Converts degrees to radians.
gentype
radians
gentypedegreesDescription
Converts degrees to radians, i.e. (pi / 180) *
degrees.
Notes
&commonFunctionsInc;
If extended with cl_khr_fp16,
generic type name gentype also includes half and
half{2|3|4|8|16}.
SpecificationOpenCL SpecificationAlso seeCommon Functions,
degrees
khronos-opencl-man-1.0~svn22836/sharingD3D10Inc.xml 0000644 0001750 0001750 00000006146 11660441607 021547 0 ustar mathieu mathieu
General information about sharing memory objects with Direct3D 10 follows.
The goal of this extension is to provide
interoperability between OpenCL and Direct3D 10. This is designed to function
analogously to the OpenGL interoperability. If this extension is supported
by an implementation, the string "cl_khr_d3d10_sharing" will be present in the
CL_PLATFORM_EXTENSIONS or CL_DEVICE_EXTENSIONS
string described in the table of allowed values for param_name for
clGetDeviceInfo.
As currently proposed, the interfaces for this
extension would be provided in cl_d3d10.h.
This section discusses OpenCL functions that allow
applications to use Direct3D 10 resources as OpenCL memory objects. This allows efficient
sharing of data between OpenCL and Direct3D 10. The OpenCL API may be used to execute
kernels that read and/or write memory objects that are also Direct3D 10 resources. An
OpenCL image object may be created from a Direct3D 10 texture resource. An OpenCL buffer
object may be created from a Direct3D 10 buffer resource. OpenCL memory objects may be
created from Direct3D 10 objects if and only if the OpenCL context has been created from
a Direct3D 10 device.
Lifetime of Shared Objects
An OpenCL memory object created from a Direct3D
10 resource remains valid as long as the corresponding Direct3D 10 resource has not been
deleted. If the Direct3D 10 resource is deleted through the Direct3D 10 API, subsequent
use of the OpenCL memory object will result in undefined behavior, including but not
limited to possible OpenCL errors, data corruption, and program termination.
The successful creation of a
cl_context against a Direct3D 10 device specified via the context create parameter
CL_CONTEXT_D3D10_DEVICE_KHR will increment the internal Direct3D
reference count on the specified Direct3D 10 device. The internal Direct3D reference
count on that Direct3D 10 device will be decremented when the OpenCL reference count on
the returned OpenCL context drops to zero.
The OpenCL context and corresponding command-queues
are dependent on the existence of the Direct3D 10 device from which the OpenCL context
was created. If the Direct3D 10 device is deleted through the Direct3D 10 API, subsequent
use of the OpenCL context will result in undefined behavior, including but not limited
to possible OpenCL errors, data corruption, and program termination.
khronos-opencl-man-1.0~svn22836/mathFunctions.xml 0000644 0001750 0001750 00000032437 11660441607 021652 0 ustar mathieu mathieu
]>
Math Built-In FunctionsMath Built-In Functions2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3Math Built-In FunctionsThe table below describes the list of built-in math functions. These functions can take scalar or vector arguments. Click an item in the table for details about that function.acosacoshacospiasinasinhasinpiatanatan2atanhatanpiatan2picbrtceilcopysigncoscoshcospierfcerfexpexp2exp10expm1fabsfdimfloorfmafmaxfminfmodfractfrexphypotilogbldexplgammalgamma_rloglog2log10log1plogbmadmaxmagminmagmodfnannextafterpowpownpowrremainderremquorintrootnroundrsqrtsinsincossinhsinpisqrttantanhtanpitgammatrunc
The table below describes the list of built-in math functions that are defined with the
half_ or native_ prefix
(half
| native)_ cos(half | native)_
divide(half | native)_ exp(half | native)_
exp2(half |
native)_exp10(half | native)_ log(half | native)_
log2(half | native)_ log10(half |
native)_ powr(half
| native)_ recip(half | native)_
rsqrt(half | native)_ sin(half | native)_
sqrt(half | native)_ tanDescription
&mathFunctionsInc;
The math functions that are defined with the half_ prefix are
implemented with a minimum of 10-bits of accuracy i.e. an ULP value <= 8192 ulp.
The math functions that are defined with the native_ prefix may map
to one or more native device instructions and will typically have better performance
compared to the corresponding functions (without the native_
prefix) described. The accuracy (and in some cases the input range(s)) of these
functions is implementation-defined.
SpecificationOpenCL SpecificationAlso seeSymbolic Math Constants,
Floating Point Pragma,
Macros and Limits
khronos-opencl-man-1.0~svn22836/clGetProgramBuildInfo.xml 0000644 0001750 0001750 00000051223 11660441607 023204 0 ustar mathieu mathieu
clGetProgramBuildInfo
clGetProgramBuildInfo
2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3
clGetProgramBuildInfo
Returns build information for each device in the program object.
cl_int
clGetProgramBuildInfocl_program program,
cl_device_id device,
cl_program_build_info param_name,
size_t param_value_size,
void *param_value,
size_t *param_value_size_retParametersprogram Specifies the program object being queried.device
Specifies the device for which build information is being queried.
device must be a valid device associated with program.
param_name
Specifies the information to query. The list of supported
param_name types and the information returned in
param_value by clGetProgramBuildInfo
is described in the table below.
cl_program_buid_infoReturn Type and Info. returned in param_valueCL_PROGRAM_BUILD_STATUS
Return type: cl_build_status
Returns the build, compile or link status, whichever was
performed last on program for device.
This can be one of the following:
CL_BUILD_NONE.
The build status returned if no
clBuildProgram,
clCompileProgram
or
clLinkProgram
has been performed on the specified program object
for device.
CL_BUILD_ERROR.
The build status returned if
clBuildProgram,
clCompileProgram
or
clLinkProgram
whichever was performed last on the specified program
object for device generated an error.
CL_BUILD_SUCCESS.
The build status returned if
clBuildProgram,
clCompileProgram
or
clLinkProgram
whichever was performed last on the specified program
object for device was successful.
CL_BUILD_IN_PROGRESS.
The build status returned if
clBuildProgram,
clCompileProgram
or
clLinkProgram
whichever was performed last on the specified program
object for device has not finished.
CL_PROGRAM_BUILD_OPTIONS
Return type: char[]
Return the build, compile or link
options specified by the options argument in
clBuildProgram,
clCompileProgram
or
clLinkProgram,
whichever was performed last on program for
device.
If build status of program
for device is
CL_BUILD_NONE, an empty string
is returned.
CL_PROGRAM_BUILD_LOG
Return type: char[]
Return the build, compile or link log for
clBuildProgram,
clCompileProgram
or
clLinkProgram
whichever was performed last on program for
device.
If build status of program for device is
CL_BUILD_NONE, an empty string
is returned.
CL_PROGRAM_BINARY_TYPE
Return type: cl_program_binary_type
Return the program binary type for
device. This can be one of the
following values:
CL_PROGRAM_BINARY_TYPE_NONE. There
is no binary associated with device.
CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT.
A compiled binary is associated
with device.
This is the case if program was created using
clCreateProgramWithSource
and compiled using
clCompileProgram
or a compiled binary is loaded using
clCreateProgramWithBinary.
CL_PROGRAM_BINARY_TYPE_LIBRARY. A
library binary is associated
with device.
This is the case if program was created by
clLinkProgram
which is called with the –createlibrary link
option or if a library binary is loaded using
clCreateProgramWithBinary.
CL_PROGRAM_BINARY_TYPE_EXECUTABLE.
An executable binary is associated
with device.
This is the case if program was created by
clLinkProgram
without the –createlibrary
link option or program was created by
clBuildProgram
or an executable binary is loaded using
clCreateProgramWithBinary.
param_value
A pointer to memory where the appropriate result being queried is returned.
If param_value is NULL, it is ignored.
param_value_size
Specifies the size in bytes of memory pointed to by param_value. This size
must be ≥ size of return type as described in the table above.
param_value_size_ret
Returns the actual size in bytes of data copied to param_value.
If param_value_size_ret is NULL, it is ignored.
Notes
A program binary (compiled binary, library binary or executable binary) built for a
parent device can be used by all its sub-devices. If a program binary has not been built
for a sub-device, the program binary associated with the parent device will be used.
A program binary for a device specified with
clCreateProgramWithBinary
or queried using
clGetProgramInfo can be
used as the binary for the associated root device, and all sub-devices created from
the root-level device or sub-devices thereof.
Errors
Returns CL_SUCCESS if the function is executed successfully.
Otherwise it returns the following:
Returns CL_INVALID_DEVICE if device
is not in the list of devices associated with program.
Returns CL_INVALID_VALUE if param_name is
not valid, or if size in bytes specified by param_value_size
is < size of return type as described in the table above and
param_value is not NULL.
Returns CL_INVALID_PROGRAM if program
is a not a valid program object.
CL_OUT_OF_RESOURCES if there is a failure to allocate
resources required by the OpenCL implementation on the device.
CL_OUT_OF_HOST_MEMORY if there is a failure to allocate
resources required by the OpenCL implementation on the host.
SpecificationOpenCL SpecificationAlso seeclGetProgramInfo
khronos-opencl-man-1.0~svn22836/get_local_size.xml 0000644 0001750 0001750 00000011640 11660441607 022004 0 ustar mathieu mathieu
get_local_sizeget_local_size2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3get_local_size
Returns the number of local work-items.
size_t
get_local_size
uintdimindxDescription
Returns the number of local work-items specified in dimension
identified by dimindx. This value
is given by the local_work_size argument to
clEnqueueNDRangeKernel if
local_work_size is not NULL; otherwise the OpenCL implementation
chooses an appropriate local_work_size value which is
returned by this function. Valid values of dimindx are 0 to
get_work_dim() - 1. For other
values of dimindx, get_local_size() returns 1.
For clEnqueueTask, this
always returns 1.
SpecificationOpenCL SpecificationAlso seeWork-Item Functions,
clEnqueueNDRangeKernel,
clEnqueueTask
khronos-opencl-man-1.0~svn22836/isnormal.xml 0000644 0001750 0001750 00000014757 11660441607 020661 0 ustar mathieu mathieu
]>
isnormalisnormal2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3isnormal
Test for a normal value.
int
isnormal
float
intn
isnormal
floatn
int
isnormal
double
longn
isnormal
doublenintisnormal (half) // if half extension enabled
shortnisnormal (halfn) // if half extension enabled
Description
Test for a normal value.
Notes
&relationalFunctionsInc1;
&relationalFunctionsInc2;
SpecificationOpenCL SpecificationAlso seeRelational Functions
khronos-opencl-man-1.0~svn22836/isgreater.xml 0000644 0001750 0001750 00000017137 11660441607 021015 0 ustar mathieu mathieu
]>
isgreaterisgreater2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3isgreater
Compare of x > y.
int
isgreater
floatxfloaty
intn
isgreater
floatnxfloatny
int
isgreater
doublexdoubley
longn
isgreater
doublenxdoublenyintisgreater
(halfx,
halfy) // if half extension enabled
shortnisgreater
(halfnx,
halfny) // if half extension enabled
Description
Returns the component-wise compare of x > y.
Notes
&relationalFunctionsInc1;
&relationalFunctionsInc2;
&relationalFunctionsInc3;
SpecificationOpenCL SpecificationAlso seeRelational Functions
khronos-opencl-man-1.0~svn22836/atomic_dec.xml 0000644 0001750 0001750 00000014650 11660441607 021114 0 ustar mathieu mathieu
atomic_decatomic_dec2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3atomic_dec
atomic_dec functions.
int
atomic_dec
volatile __global
int*p
unsigned int
atomic_dec
volatile __global
unsigned int*p
int
atomic_dec
volatile __local
int*p
unsigned int
atomic_dec
volatile __local
unsigned int*pDescription
Read the 32-bit value (referred to as old) stored at location
pointed by p. Compute (old - 1) and store result
at location pointed by p. The function returns old.
A 64-bit version of this function,
atom_dec, is enabled by
cl_khr_int64_base_atomics.
SpecificationOpenCL SpecificationAlso seeAtomic Functions,
atom_dec
khronos-opencl-man-1.0~svn22836/sqrt.xml 0000644 0001750 0001750 00000016100 11660441607 020006 0 ustar mathieu mathieu
]>
sqrt, rsqrt, half_sqrt, native_sqrt, half_sqrt, native_sqrtsqrt, rsqrt, half_sqrt, native_sqrt, half_sqrt, native_sqrt2007-2011The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.3sqrt, rsqrt, half_sqrt, native_sqrt, half_sqrt, native_sqrt
Square root functions.
gentype
sqrt
gentype
gentype
half_sqrt
gentypex
gentype
native_sqrt
gentypex
gentype
rsqrt
gentype
gentype
half_rsqrt
gentypex
gentype
native_rsqrt
gentypexDescriptionsqrt computes square root.
half_sqrt computes square root.
native_sqrt computes square root over an implementation-defined
range. The maximum error is implementation-defined.
rsqrt computes inverse square root.
half_rsqrt computes inverse square root.
native_rsqrt computes inverse square root over an
implementation-defined range. The maximum error is implementation-defined.
Notes
&mathFunctionsInc;
Functions with the half_ prefix are implemented with a minimum
of 10-bits of accuracy i.e. an ULP value less than or equal to 8192 ulp.
Functions with the native_ prefix may map to one or more
native device instructions and will typically have better performance compared to the
corresponding functions (without the native__ prefix). The accuracy
(and in some cases the input range(s)) of these functions is implementation-defined.
SpecificationOpenCL SpecificationAlso seeMath Functions
khronos-opencl-man-1.0~svn22836/xhtml/ 0000755 0001750 0001750 00000000000 12206644017 017426 5 ustar mathieu mathieu khronos-opencl-man-1.0~svn22836/xhtml/present.css 0000644 0001750 0001750 00000002521 11660441607 021623 0 ustar mathieu mathieu @charset "utf-8";
/* CSS Document */
li { font: normal 14px verdana, sans-serif; line-height: 14px; }
ul { font: normal 14px verdana, sans-serif; line-height: 14px; }
a:link, a:visited {color:blue; text-decoration:none;}
a:hover {color:blue; text-decoration:none; background-color:FFFF99; }
#navwrap {
width: 320px;
margin:0 0 0 4px;
padding:0;
}
#containerul, #containerul ul{
text-align:left;
margin:0 0 0 4px; /* Removes browser default margins applied to the lists. */
padding:0; /* Removes browser default padding applied to the lists. */
}
#containerul li{
margin:0 0 0 15px; /* A left margin to indent the list items and give the menu a sense of structure. */
padding:4px 0 0 2px;
list-style-type:none; /* Removes the bullet point that usually goes next to each item in a list. */
font: normal 12px verdana, sans-serif;
}
#containerul li.lev1 {
margin:0 0 0 0;
padding:4px 0 0 2px;
list-style-type:none; /* Removes the bullet point that usually goes next to each item in a list. */
font: normal 14px verdana, sans-serif;
}
#containerul .symbols{ /* Various styles to position the symbols next to the items in the menu. */
background-repeat:no-repeat;
float:left;
height:14px;
margin-right:5px;
margin-top:1px;
width:14px;
}
#containerul ul.Level2 {
margin:0;
padding: 0;
}
khronos-opencl-man-1.0~svn22836/xhtml/styles-css.xsl 0000644 0001750 0001750 00000012261 11660441607 022274 0 ustar mathieu mathieu
/* This style sets a margin around the entire page */
html, body {
margin: 10px;
}
p {
font: normal 16px verdana, sans-serif;
margin: 0;
padding-bottom:12px;
}
h1 {
font: bold 25px verdana, sans-serif;
margin-top: 0;
margin-bottom: 3px;
padding-top: 0;
padding-bottom: 0;
}
h2 {
font: bold 19px verdana, sans-serif;
margin-top: 28px;
margin-bottom: 3px;
padding-top: 0;
padding-bottom: 0;
}
h3 {
font: bold 19px verdana, sans-serif !important;
margin-top: 28px;
margin-bottom: 3px;
padding-top: 0;
padding-bottom: 0;
}
li {
font: normal 16px verdana, sans-serif;
margin-top: 0;
margin-bottom: 18px;
padding-top: 0;
padding-bottom: 0;
}
.pdparam {
font: italic 16px verdana, sans-serif;
}
.term {
font: italic 16px verdana, sans-serif;
font-weight: normal;
}
.type {
font: normal 16px verdana, sans-serif !important;
}
.parameter {
font-style: italic;
}
a:link, a:visited {
color: blue;
text-decoration: none;
font: normal 16px;
}
a:hover {
background-color: #FFFF99;
font: normal 16px;
}
div.funcsynopsis {
text-align: left;
background-color: #e6e6e6;
font: normal 16px verdana, sans-serif;
padding-top: 10px;
padding-bottom: 10px;
}
div.funcsynopsis table {
border-collapse: separate;
font: normal 16px verdana, sans-serif;
}
div.funcsynopsis td {
background-color: #e6e6e6;
border: 0 solid #000;
padding: 1px;
font: normal 16px verdana, sans-serif;
}
div.refsect1 {
font-family: verdana, sans-serif;
font-size: 16px;
}
code.constant {
font: normal 16px courier new, monospace !important;
}
span.errorname {
font: normal 16px verdana, sans-serif !important;
}
code.function {
font: bold 16px verdana, sans-serif !important;
}
b.fsfunc {
font: bold 16px verdana, sans-serif !important;
}
code.varname {
font: italic 16px verdana, sans-serif;
}
code.replaceable {
font: italic 16px courier new, monospace;
}
code.funcdef {
font: normal 16px verdana, sans-serif !important;
}
.citerefentry {
font: normal 16px verdana, sans-serif !important;
}
.parameter {
font-style: italic;
}
code.fsfunc {
font: normal 16px verdana, sans-serif !important;
}
/* PARAMETER: This style controls spacing between the terms in Parameter section */
dt {
margin-top: 15px;
}
/* TABLES: These styles apply to all tables OTHER than the Synopsis and Example tables */
div.refsect1 table {
width: 100%;
margin-top: 10px;
background-color: #FFF;
border-collapse: collapse;
border-color: #000;
border-width: 1px;
font: normal 16px verdana, sans-serif;
}
div.refsect1 th {
border-collapse: collapse;
border-color: #000;
border-width: 1px;
font: bold 16px verdana, sans-serif;
}
div.refsect1 td {
background-color: #FFF;
padding: 5px;
vertical-align: text-top;
border-collapse: collapse;
border-color: #000;
border-width: 1px;
font: normal 16px verdana, sans-serif;
}
div.refsect1 p{
font: normal 16px verdana, sans-serif;
margin-top: 8px;
margin-bottom: 8px;
padding-top: 0;
padding-bottom: 0;
}
/* EXAMPLE: These styles apply only to the Example section */
div.refsect2 {
font: normal 16px courier new, monospace !important;
}
div.refsect2 table {
margin-top: 0;
background-color: #e6e6e6;
width: 100%;
border: 0 solid #000;
padding: 2px;
font: normal 16px courier new, monospace !important;
}
div.refsect2 td {
background-color: #e6e6e6;
font: normal 16px courier new, monospace !important;
white-space:pre;
}
/* COPYRIGHT: This style formats the text of the copyright statement at the bottom of the page */
div.refsect3 {
font: normal 11px verdana, sans-serif;
margin-top: 50px;
margin-bottom: 20px;
padding-top: 0;
padding-bottom: 0;
}
khronos-opencl-man-1.0~svn22836/xhtml/pdficon_small1.gif 0000644 0001750 0001750 00000001663 11660441607 023021 0 ustar mathieu mathieu GIF89a ÷ ä|ÝÐÒଯé@F┘߸»òU[{||ƒ„ðððÞÄÆåpu±áDKÛ>D777SFG…ë(/; ÏçX^§vX
r>@obc㈌ædièLR¥¥¦nnoí$ÀÀÀÜÝÞÿÿÿ , ˜ GŒH¢ Áƒ!
qÀƒÃ‡D@0„Å‹AtðÀ€‚Œ 7b¸0dÆ"R~0` ƒ0;HÐaAJz¸)€ ž8uòäð“gÎ!vÞ$
ôhÒ¡š
M f £S{(ÐAÁM§JT( €Ã 8€€ƒÏ›
6tÐ “@M _Z ‰7/R>LøA@ ; khronos-opencl-man-1.0~svn22836/xhtml/headBackground-bigger.jpg 0000644 0001750 0001750 00000001030 11660441607 024263 0 ustar mathieu mathieu ÿØÿà JFIF d d ÿì Ducky ÿî Adobe dÀ ÿÛ „
#%'%#//33//@@@@@@@@@@@@@@@&&0##0+.'''.+550055@@?@@@@@@@@@@@@ÿÀ ƒ %" ÿÄ f a‘¢T"Ò QÿÚ ? íùÞÇ•«—ÄùÞÇ•«—ŧªUYͤa˜ùÞÇ•«—ÄùÞÇ•«—ŧªU'6FìyZ¹|Fž¨NlŒ9'‰