NOTE3: if I completely disable integrated graphic card in BIOS (so no Intel HD Graphics 530 seen in the Device Managed), and device driver is removed - no issues seen.
Thanks for sharing your sighting.
Do you observe clGetPlatformIDs(...) functioning if the Intel graphics device is disabled in the bios but the Intel Graphics driver stays installed?
If we're in a case where we can assume all devices are enabled, let's backup and look at the issue at a higher level. If a developer goal is to choose a specific OpenCL device for a specific job, a developer should consider the clGetPlatformInfo(...) facility. The cl_platform_info bitflag has a few different options that should allow a developer to target execution for a specific device with discretion. I'll suggest a healthy program should allow for discernment amongst devices as opposed to picking the first device. The picking first device practice is common in many hello world style programs. Developers should strongly consider using the name, extensions, vendor interrogation capabilities provided by clGetPlatformInfo(...) in order to execute programs consistently.
Graphics Driver comments:
Some additional comments:
Thanks for response.
1. clGetPlatformIDs still crashes, if Intel graphics device is disabled in the bios but the Intel Graphics driver stays installed. I have to remove driver (uninstall hidden device from Device Manager) to make it work.
2. Of course. Even better - I run a series of small kernels on each device to choose which works better/faster/etc., before choosing a final one.
I just don't get that far, if I get a crash at the very beginning.
3. Driver version 126.96.36.19973 - is the latest available from Windows Update on my PC.
4. > can you provide BIOS version and system vendor model number info if you have it?
I have AsRock Z170M Extreme4 motherboard with latest stable BIOS installed (P7.40), according to official website: https://www.asrock.com/mb/Intel/Z170M%20Extreme4/#BIOS
Also, if it helps: Intel ME FW Version: 188.8.131.5225
5. > That version of Windows isn't the latest
My company's clients may have a different variety of PCs to run our software. That's why developers and QAs are using different configurations/version of PCs/operating systems, to ensure our product quality and stability.
In this particular case, I'm using Windows 10 LTSB update channel, which is claimed to be "Long-Term Servicing Branch".
Version 10.0.14393 is a latest available version in this channel.
There is a list of latest supported Windows versions here: https://www.microsoft.com/en-us/itpro/windows-10/release-information.
I've updated my Intel Graphic driver to latest available on Intel website (as of now): https://downloadcenter.intel.com/download/27892/Intel-Graphics-Driver-for-Windows-10
Driver Date: 20.06.2018
I can no longer reproduce crash in any of the cases:
- driver installed and enabled (used to be OK - now OK);
- driver installed but disabled (used to crash - now OK);
- driver installed and enabled but device disabled in BIOS (used to crash - now OK).
This pretty much fixes all my issues.
Also, would be perfect if I (and my company's clients) could get latest driver with Windows Update.
Thanks for the feedback around the issues constraining your goals.
Admittedly, I'm not familiar with the Windows Update process but I'll follow up on if there is room to get builds up there more frequently.
The Intel Driver Support Assistant Utility is here it may be applicable to the types of deployments under consideration: