Issue 91098
Summary Limited to single CPU core on v16.x+
Labels new issue
Assignees
Reporter kmpanilla
    We run ImageMagick with OpenMP linked to leverage multiple CPUs. Have done it for years without issue.
We recently upgraded some of our servers to FreeBSD 13.3 or 14.0 which leverage llvm-16.0.6 (freebsd 14.0) and llvm-17.0.6 (freebsd 13.3).  Previously, we were on FreeBSD 13.2 which leveraged llvm-14.0.5.

After upgrading to llvm-16 or llvm-17 we're noticing that ImageMagick when linked with OpenMP is stuck on a single CPU core.  Tracked it down to the libomp.so version we're leveraging from the OS, /usr/lib/libomp.so..  Manually installing llvm15 or llvm14 and copying over the older libomp.so from either and the problem goes away.

Question is, what changed between llvm15 and llvm16 that would cause us to be limited to a single CPU core?

Our application is called from PHP using pecl-imagick and ImageMagick7 (compiled with OpenMP).  PHP version doesnt matter (we've reproduced on 8.1, 8.2 and 8.3).  Only when LLVM gets upgrade from 14 to 16 or 17 do we have the issue.  In fact, the hot copy of v15 or v14 libodm.so back to /usr/lib and we're working as expected again.

Anything I can supply to help narrow this down?  I'd love to get something pushed to all the branches of 16 and later, if we can solve the issue.

Thanks.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to