Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 2.28 KB

File metadata and controls

48 lines (39 loc) · 2.28 KB

OpenCL-AMD-GPU

A possible fix for OpenCL detection problems on AMD Radeon GPU's.

amdocl

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.

Usage

Batch script

  1. Make sure to have the latest AMD drivers installed
  2. Download and execute amdocl.bat
  3. Run the file as Administrator (Right click file and select Run as Administrator)

PowerShell script

  1. Download amdocl-fix.ps1 and place it in a folder of your choice.
  2. 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
  3. (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

Compatibility

  • 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

Notes

Inspired by StackOverflow https://stackoverflow.com/a/28407851


© 2023 Patrick Trumpis
© 2025 TantalusDrive (Improvements and PowerShell version)