[CUDA] Create init device info function, set device type to GPU
@@ -34,7 +34,7 @@ pocl_cuda_init_device_ops(struct pocl_device_ops *ops)
/* TODO: more descriptive name from CUDA probing the device */
ops->device_name = "CUDA";
- //ops->init_device_infos = pocl_cuda_init_device_infos;
+ ops->init_device_infos = pocl_cuda_init_device_infos;
ops->probe = pocl_cuda_probe;
//ops->uninit = pocl_cuda_uninit;
//ops->init = pocl_cuda_init;
@@ -51,6 +51,14 @@ pocl_cuda_init_device_ops(struct pocl_device_ops *ops)
//ops->get_timer_value = pocl_cuda_get_timer_value;
}
+void
+pocl_cuda_init_device_infos(struct _cl_device_id* dev)
+{
+ pocl_basic_init_device_infos(dev);
+
+ dev->type = CL_DEVICE_TYPE_GPU;
+}
+
unsigned int
pocl_cuda_probe(struct pocl_device_ops *ops)
{
