I’m writing a parallel code using OpenMp. I have to assign a block of code to different threads, something like this:
!$omp parallel sections
!$end parallel section
end program ABC
Each section needs to use an external library XYZ. My doubt is that I’m not very sure in which part of the code I should incorporate the command “use XYZ.” Could you please help me with this doubt?
Many thanks in advance.