- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am a customer at Shell. I am writing a code using Fotran with OpenMP and ifort. To have high level parallelizm, each thread needs to call a subroutine to work on its own private column. After the the subroutine is done, I made sure that all threads return correct results. But after "!$omp end parallel", the values become all zeros. Does the Intel ifort compiler support thread-save? How should I do it?
Thanks.
Guangye Li
Thanks.
Guangye Li
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifort do support threading and openmp.
what result do you get when you run with OMP_NUM_THREADS=1?
what result do you get when you run with OMP_NUM_THREADS=1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - guangye.li
after "!$omp end parallel", the values become all zeros. Does the Intel ifort compiler support thread-save? How should I do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - guangye.li
Hi, I am a customer at Shell. I am writing a code using Fotran with OpenMP and ifort. To have high level parallelizm, each thread needs to call a subroutine to work on its own private column. After the the subroutine is done, I made sure that all threads return correct results. But after "!$omp end parallel", the values become all zeros. Does the Intel ifort compiler support thread-save? How should I do it?
Thanks.
Guangye Li
Thanks.
Guangye Li
Please supply a sampe of your code (or mock-up of code).
This sounds like a case where each thread works independently on a column of a application-wide array .AND. you are declaring that column private in the !$omp paralllel statement when it (the entire array)needs to be declared shared (but where each thread works on seperate columns).
Jim Dempsey

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page