A possible fix for OpenCL detection problems on AMD Radeon GPU's.
It will scan your system for OpenCL Installable Client Driver (ICD) files by AMD and register them on Windows.
- amdocl.dll
- amdocl12cl.dll
- amdocl12cl64.dll
- amdocl32.dll
- amdocl64.dll
- versioned variants (e.g. amdocl_*.dll, amdocl64_*.dll)
The scripts ensure proper detection and registration of AMD OpenCL drivers, handling SysWOW64, scanning the PATH safely, providing clear status output, supporting versioned and custom ICD DLLs, avoiding duplicate registry entries, and modifies the registry only if automatic backups are detected or enabled.
The PowerShell version adds signature verification, more precise 32/64-bit detection, safe cleanup or relocation of invalid entries, intelligent handling of DriverStore and versioned DLLs, more detailed output, and an option to enable registry backups automatically.
- Make sure to have the latest AMD drivers installed
- Download and execute
amdocl.bat - Run the file as Administrator (Right click file and select
Run as Administrator)
- Download
amdocl-fix.ps1and place it in a folder of your choice. - Make sure to run it as Administrator:
- Right‑click the file → Run with PowerShell → confirm the UAC prompt.
- Alternatively, open PowerShell as Administrator and run:
cd "C:\path\to\folder" .\amdocl-fix.ps1
- (Optional) By default, unsigned DLLs are allowed to preserve valid but unusual ICDs. To restrict registration to signed DLLs only, run:
.\amdocl-fix.ps1 -AllowUnsigned:$false
- Windows 10, 11: fully supported
- Windows 7, 8, 8.1: batch script fully supported; PowerShell script (
amdocl-fix.ps1) requires PowerShell 5.1 or newer - Windows XP / Vista: script runs safely, but OpenCL drivers may not be present
Inspired by StackOverflow https://stackoverflow.com/a/28407851
© 2023 Patrick Trumpis
© 2025 TantalusDrive (Improvements and PowerShell version)