Post #2558212
2026-05-01 04:09 UTC
@itamarst@hachyderm.io @trs@metasocial.com @glyph@mastodon.social When I used OpenMP to parallelize my code I found that single-threaded processing became slower. I ended up using some C macros shenanigans to double-include the relevant C code, once for the single-thread case (no OpenMP) and once for multiple threads (OpenMP). If you do OMP_NUM_THREADS=1 then it avoids using OpenMP completely.
Replies (0)
No replies.