Forum Discussion
Altera_Forum
Honored Contributor
10 years agoI copied the aocx file and the exe in the same directory, and can run the host program, but it can’t find any OpenCL devices!
--- Quote Start --- … MMD ERROR: can't load the WinDriver library ERROR: CL_DEVICE_NOT_FOUND Location: ..\common\src\AOCLUtils\opencl.cpp:354 Query for number of devices failed --- Quote End --- I think the “aocl install” command is buggy (reports success but “aocl diagnose” finds issues;-) From an Administrator command prompt: --- Quote Start --- C:\windows\system32>aocl install aocl install: Running install from C:\altera\15.0\hld\board\s5_ref/windows64/lib exec +------------------------------------------------------+ + Installing kernel driver module... + +------------------------------------------------------+ WDREG utility v10.21. Build Aug 31 2010 14:21:54 Processing HWID *WINDRVR6 Installing a signed driver package for *WINDRVR6 LOG ok: 1, ENTER: DriverPackageInstallA LOG ok: 1, ENTER: DriverPackageInstallW LOG ok: 1, Looking for Model Section [DeviceList.NTamd64]... LOG ok: 1, RETURN: DriverPackageInstallW (0xE000024B) LOG ok: 1, RETURN: DriverPackageInstallA (0xE000024B) difx_install_preinstall_inf: err e000024b, last event 0, last error 0. UNKNOWN install: completed successfully +------------------------------------------------------+ + Installing board drivers... + +------------------------------------------------------+ WDREG utility v10.21. Build Aug 31 2010 14:21:54 Processing HWID PCI\VEN_1172&DEV_D800&SUBSYS_00051172&REV_01 Installing a non-signed driver package for PCI\VEN_1172&DEV_D800&SUBSYS_00051172 &REV_01 Device node (hwid:PCI\VEN_1172&DEV_D800&SUBSYS_00051172&REV_01): does not exist and is not configured. Pre-installing. LOG ok: 1, ENTER: DriverPackagePreinstallA LOG ok: 1, ENTER: DriverPackagePreinstallW LOG ok: 1, RETURN: DriverPackagePreinstallW (0xE000022F) LOG ok: 1, RETURN: DriverPackagePreinstallA (0xE000022F) difx_install_preinstall_inf: err e000022f, last event 0, last error 0. UNKNOWN install: completed successfully --- Quote End --- I had run "aocl uninstall" before this to start from a clean slate. But apparently the driver was not installed, despite the last message. --- Quote Start --- C:\windows\system32>aocl diagnose aocl diagnose: Running diagnose from C:\altera\15.0\hld\board\s5_ref/windows64/l ibexec Unable to open the kernel mode driver. Please make sure you have properly installed the driver. To install the driver, run aocl install DIAGNOSTIC_FAILED --- Quote End ---