clGetDeviceIDs - Obtain the list of devices available on a platform.
cl_int clGetDeviceIDs(cl_platform_id platform, cl_device_type device_type, cl_uint num_entries, cl_device_id *devices, cl_uint *num_devices);
|CL_DEVICE_TYPE_CPU||An OpenCL device that is the host processor. The host processor runs the OpenCL implementations and is a single or multi-core CPU.|
|CL_DEVICE_TYPE_GPU||An OpenCL device that is a GPU. By this we mean that the device can also be used to accelerate a 3D API such as OpenGL or DirectX.|
|CL_DEVICE_TYPE_ACCELERATOR||Dedicated OpenCL accelerators (for example the IBM CELL Blade). These devices communicate with the host processor using a peripheral interconnect such as PCIe.|
|CL_DEVICE_TYPE_CUSTOM||Dedicated accelerators that do not support programs written in OpenCL C.|
|CL_DEVICE_TYPE_DEFAULT||The default OpenCL device in the system. The default device cannot be a CL_DEVICE_TYPE_CUSTOM device.|
|CL_DEVICE_TYPE_ALL||All OpenCL devices available in the system except CL_DEVICE_TYPE_CUSTOM devices.|
clGetDeviceIDs may return all or a subset of the actual physical devices present in the platform and that match device_type.
clGetDeviceIDs returns CL_SUCCESS if the function is executed successfully. Otherwise it returns one of the following:
clGetDeviceInfo(3clc), clGetPlatformIDs(3clc), clCreateContext(3clc), classDiagram(3clc)
The Khronos Group
Copyright © 2007-2011 The 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.
- OpenCL Specification
|01/14/2021||The Khronos Group|