well
New Contributor
4 years agoHow to resolve : Unable to get device ID
Dear intel team,
When trying to compile my host code today. I got this error message "Unable to get device_id
". This error message is part of my code. It is strange because yesterday, I didn't get this error message.
See these lines of code plz:
cl_platform_id fpga_paltform = NULL;
if (clGetPlatformIDs(1, &fpga_paltform, NULL) != CL_SUCCESS) {
printf("Unable to get platform_id\n");
return 1;
}
cl_device_id fpga_device = NULL;
if (clGetDeviceIDs(fpga_paltform, CL_DEVICE_TYPE_ALL, 1, &fpga_device, NULL) != CL_SUCCESS) {
printf("Unable to get device_id\n");
return 1;
}