Skip to content

Fix OpenCL detection and performance issues on AMD Radeon GPU's by registering Installable Client Driver (ICD) files.

License

Notifications You must be signed in to change notification settings

TantalusDrive/OpenCL-AMD-GPU

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

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

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 (Additional improvements and PowerShell version)

About

Fix OpenCL detection and performance issues on AMD Radeon GPU's by registering Installable Client Driver (ICD) files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 55.4%
  • Batchfile 44.6%