microsoft / OpenCLOn12

The OpenCL-on-D3D12 mapping layer
MIT License
104 stars 13 forks source link

MESA clon12compiler.dll or openclon12.dll (not sure which) crashes on Windows #44

Open BlohoJo opened 1 year ago

BlohoJo commented 1 year ago

https://github.com/pal1000/mesa-dist-win/issues/88#issuecomment-1364741781

Versions:

Windows 10 Professional x64 2004 (OS Build 19041.1415)

MESA for Windows 22.3.3 (https://github.com/pal1000/mesa-dist-win)

Vulkan 1.3.236.0 (https://vulkan.lunarg.com/sdk/home#windows)

Luxmark 3.1 (http://wiki.luxcorerender.org/LuxMark_v3#Binaries)

LuxMark 4.0 Alpha 0 (http://wiki.luxcorerender.org/LuxMark_v4#Binaries)

x64dbg 12-12-2022 (https://sourceforge.net/projects/x64dbg/files/snapshots/)

Trying to run software based OpenCL GPU driver on non GPU machine. MESA should allow this (I've always thought this was the main point of MESA).

It doesn't work on Windows. Rather than post tons of logs for different applications, I'm just going to use Luxmark 3.1, a simple OpenCL benchmarking application.

Luxmark crashes. It crashes on Luxmark.exe. Windows logs only show Luxmark.exe, so that isn't very helpful.

I'm not sure if the problem is with openclon12.dll, or clon12compiler.dll, or both.

I have x64dbg logs, if that's more helpful, for both MSVC and MingW versions of MESA. Tried LuxMark 3.1 and also the newer 4.0 Alpha.

Vulkan files are in C:\Windows\System32. openclon12.dll is specified in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors.

Luxmark 3.1 - Windows - MESA 22.3.3 MSVC https://pastebin.com/rYayP84Y

Luxmark 3.1 - Windows - MESA 22.3.3 MinGW https://pastebin.com/1isNxq1N

Luxmark 4.0 - Windows - MESA 22.3.3 MSVC https://pastebin.com/93M1eT88

Luxmark 4.0 - Windows - MESA 22.3.3 MinGW https://pastebin.com/QfiLd3Jn

jenatali commented 1 year ago

I've had success with LuxMark 3, though I haven't tried it in a while. LuxMark 4 didn't work at the time I tried it though.