Assertions cause crash when running a wine application
Running an OpenCL application under wine causes the following assert to be triggered and a resulting crash:
/usr/src/debug/rocm-opencl-runtime/clr-rocm-6.2.4/rocclr/os/os_posix.cpp:321: static void amd::Os::currentStackInfo(unsigned char**, size_t*): Assertion `Os::currentStackPtr() >= *base - *size && Os::currentStackPtr() < *base && "just checking"' failed.
Building with -DCMAKE_BUILD_TYPE=Release fixes the issue and allows the application to work.
hip-runtime-amd is also affected by the same issue but it requires currently non public code to replicate.
Description:
Assert is triggered in CLR when running a wine application that uses OpenCL
Additional info:
- package version(s): rocm-opencl-runtime-6.2.4-1
- link to upstream bug report, if any: https://github.com/ROCm/clr/issues/115
Steps to reproduce:
- Download windows version of this tool: https://github.com/ProjectPhysX/OpenCL-Benchmark/releases/
- Run it through wine wine64 OpenCL-Benchmark-Windows.exe