소스 검색

drivers/opencl: also detect accelerator devices (as defined by Movidius implementation)

Nathalie Furmento 14 년 전
부모
커밋
61c061f527
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/drivers/opencl/driver_opencl.c

+ 1 - 1
src/drivers/opencl/driver_opencl.c

@@ -274,7 +274,7 @@ void _starpu_opencl_init(void)
         if (!init_done) {
                 cl_platform_id platform_id[STARPU_OPENCL_PLATFORM_MAX];
                 cl_uint nb_platforms;
-                cl_device_type device_type = CL_DEVICE_TYPE_GPU;
+                cl_device_type device_type = CL_DEVICE_TYPE_GPU|CL_DEVICE_TYPE_ACCELERATORS;
                 cl_int err;
                 unsigned int i;