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 the drivers, including handling SysWOW64, scanning the PATH safely, registering versioned DLLs and avoiding duplicate entries.
The PowerShell version additionally verifies DLL signatures, detects 32/64-bit bitness more reliably, safely cleans up or moves invalid entries, handles DriverStore and versioned DLLs intelligently and provides more detailed error reporting and status output.
- 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
- 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 (Additional improvements and PowerShell version)