microsoft / microsoft/OpenCLOn12
Is OCL/OGL CompatPack supposed to load on x64?
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 130
- Forks
- 19
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
hi @jenatali,
After installing the "OCL/OGL CompatPack" (v2302.1.0) on an Intel x64 machine, I notice that the CompatPack "DLL redirect" (opencl.dll -> OpenCLOn12.dll and opengl32.dll -> OpenGLOn12.dll) is enabled and the mesa-based DLLs (xxxOn12.dll) are loaded on behalf of the Host Application. This creates an "attractive nuisance" for some customers who see CompatPack installed on their Arm64-based systems and then think they also need to also-install it on their x64-based systems. Certain customers then encounter crashes as the mesa-based devices compete for Application attention in untested ways.
Q: Is there a way to enable this CompatPack "DLL redirect" only for Arm64, while disabling it for x64?
See:
// Loaded Modules
//
OpenCL.dll OpenCL.dll C:\Windows\System32\OpenCL.dll N/A Yes Cannot find or open the PDB file. 300 3.00.3.0 6/8/2023 5:09 PM
OpenCLOn12.dll OpenCLOn12.dll C:\Program Files\WindowsApps\Microsoft.D3DMappingLayers_2.2302.1.0_x64__8wekyb3d8bbwe\x64\OpenCLOn12.dll N/A Yes Cannot find or open the PDB file. 303 2/7/2023 5:02 PM
opengl32.dll opengl32.dll C:\Windows\System32\opengl32.dll N/A No Symbols loaded without source information. C:\Users\me\AppData\Local\Temp\SymbolCache\opengl32.pdb\b2f628396d16c4de262199a077a6616e1\stripped\opengl32.pdb 62 10.0.19041.2193 (WinBuild.160101.0800)
OpenGLOn12.dll OpenGLOn12.dll C:\Program Files\WindowsApps\Microsoft.D3DMappingLayers_2.2302.1.0_x64__8wekyb3d8bbwe\x64\OpenGLOn12.dll N/A Yes Cannot find or open the PDB file. 275 2/8/2023 4:51 PM
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how the OCL/OGL CompatPack enables DLL redirection and how the x64 package loads OpenCLOn12.dll and OpenGLOn12.dll, using the loaded-module details in this report. Determine whether architecture-specific behavior can be defined so x64 does not enable the redirect while Arm64 retains it, then verify the resulting module behavior on both architectures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100