LibreOfiice hangs AMD CPU Raven2 system when trying to use OpenCL from Mesa 3D

Cannot start any LibreOfiice’s application, so cannot revert setting with menu.

Solution 1:
Open terminal and run:


Then disable OpenCL usage with a menu.

Solution 2:
In the file .config/libreoffice/4/user/registrymodifications.xcu
find block

<item oor:path="/org.openoffice.Office.Common/Misc">
<prop oor:name="UseOpenCL" oor:op="fuse">

and change “true” to “false”.
Probably will work with AMD ROCm OpenCL.

Based on a quick Internet search,
Looks like Libreoffice 4, 5 and 6 can whitelist and blacklist OpenCL in its GUI configuration settings.

The following link is to Libreoffice 5 documentation but should apply to 4, 5 and 6