Functions specific to OpenCL backend.
This module provides interoperability with other OpenCL libraries.
arrayfire.opencl.
DEVICE_TYPE
(value)[source]¶
Bases: enum.Enum
ArrayFire wrapper for CL_DEVICE_TYPE
ACC
= 8¶
CPU
= 2¶
GPU
= 4¶
UNKNOWN
= -1¶
arrayfire.opencl.
PLATFORM
(value)[source]¶
Bases: enum.Enum
ArrayFire enum for common platforms
AMD
= 0¶
APPLE
= 1¶
BEIGNET
= 4¶
INTEL
= 2¶
NVIDIA
= 3¶
POCL
= 5¶
UNKNOWN
= -1¶
arrayfire.opencl.
add_device_context
(dev, ctx, que)[source]¶
Add a new device to arrayfire opencl device manager
arrayfire.opencl.
delete_device_context
(dev, ctx)[source]¶
Delete a device
arrayfire.opencl.
get_context
(retain=False)[source]¶
Get the current OpenCL context being used by ArrayFire.
Specifies if the context needs to be retained by arrayfire before returning.
arrayfire.opencl.
get_device_id
()[source]¶
Get native (unsorted) OpenCL device ID
Specifies the cl_device_id of the device.
arrayfire.opencl.
get_device_type
()[source]¶
Get opencl device type
arrayfire.opencl.
get_platform
()[source]¶
Get opencl platform
arrayfire.opencl.
get_queue
(retain)[source]¶
Get the current OpenCL command queue being used by ArrayFire.
Specifies if the context needs to be retained by arrayfire before returning.
arrayfire.opencl.
set_device_context
(dev, ctx)[source]¶
Set a device as current active device
arrayfire.opencl.
set_device_id
(idx)[source]¶
Set native (unsorted) OpenCL device ID
Specifies the cl_device_id of the device.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4