I'm currently working on a project and I need a better understanding of the GCC workflow of a GOMP directive and I'd like to bring up some changes to the source code too. Is there a best practice to do so? Shall I re-compile the entire GCC to do so?
I've already searched how to build my GCC but it feels excessive to do so just to change some changes.
If you look at the openmp documentation here, it seems like GOMP uses makefiles and pragmas to feed information to the gcc compiler and annotates the way it behaves, rather than actually rewriting the source code for GCC. I'm not an expert tho so forgive me if I'm off... Here's an example I saw:
Are you trying to use GOMP for offloading threads to another device? Or do you just want to run multithreading locally? What specifically are you trying to use GOMP for?
Here is another helpful resource I found... Using OpenMP with C