When running "phoronix-test-suite benchmark graphics-magick" on Ubuntu I see almost 10X better performance with gcc (12.2.0 - default compiler) vs clang (15.0.7 - set via export CC=clang and CXX=clang++).
A key difference (which I suspect is cause of large perf difference) that gcc is using openmp while clang is not. When I look at the install.log for both runs I see the option "-fopenmp" in the gcc run but this option (and some others) are missing in the clang run.
So, root question is how do I get graphics-magick benchmark to use openmp options when using clang.
A key difference (which I suspect is cause of large perf difference) that gcc is using openmp while clang is not. When I look at the install.log for both runs I see the option "-fopenmp" in the gcc run but this option (and some others) are missing in the clang run.
So, root question is how do I get graphics-magick benchmark to use openmp options when using clang.
Comment