Skip to content

Commit 39a85a8

Browse files
committed
Documented pi_device_type
Signed-off-by: Stuart Adams <[email protected]>
1 parent c448c80 commit 39a85a8

File tree

1 file changed

+10
-5
lines changed
  • sycl/include/CL/sycl/detail

1 file changed

+10
-5
lines changed

sycl/include/CL/sycl/detail/pi.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,16 @@ typedef enum {
132132
// make the translation to OpenCL transparent.
133133
//
134134
typedef enum : pi_uint64 {
135-
PI_DEVICE_TYPE_DEFAULT = CL_DEVICE_TYPE_DEFAULT,
136-
PI_DEVICE_TYPE_ALL = CL_DEVICE_TYPE_ALL,
137-
PI_DEVICE_TYPE_CPU = CL_DEVICE_TYPE_CPU,
138-
PI_DEVICE_TYPE_GPU = CL_DEVICE_TYPE_GPU,
139-
PI_DEVICE_TYPE_ACC = CL_DEVICE_TYPE_ACCELERATOR
135+
PI_DEVICE_TYPE_DEFAULT =
136+
CL_DEVICE_TYPE_DEFAULT, ///< The default device available in the PI
137+
///< plugin.
138+
PI_DEVICE_TYPE_ALL =
139+
CL_DEVICE_TYPE_ALL, ///< All devices available in the PI plugin.
140+
PI_DEVICE_TYPE_CPU =
141+
CL_DEVICE_TYPE_CPU, ///< A PI device that is the host processor.
142+
PI_DEVICE_TYPE_GPU = CL_DEVICE_TYPE_GPU, ///< A PI device that is a GPU.
143+
PI_DEVICE_TYPE_ACC = CL_DEVICE_TYPE_ACCELERATOR ///< A PI device that is a
144+
///< dedicated accelerator.
140145
} _pi_device_type;
141146

142147
typedef enum {

0 commit comments

Comments
 (0)