OpenMP for C in eclipse IDE on Ubuntu / linux

I use the Eclipse IDE on ubuntu for code in C. I use its regular debugger and default compiler (GCC)

I am writing code with OpenMP features. Eclipse just skips pragmas and compiles the code in sequential order. Therefore, I run the program from the terminal with the -fopenmp options.

I was wondering if there is a way to do an eclipse compilation and debug parts of OpenMP?

+4
source share
1 answer

You need to go to Build > Settings > Miscellaneous > All options and add -fopenmp .

+3
source

Source: https://habr.com/ru/post/1484837/


All Articles