- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using Intel composer XE 2011.I have some simple codes as below to test the function OMP_set_num_threads, the program freezes once entering the parallel region.
call OMP_set_num_threads(4)
!$omp parallel
print *, 'hello parallel'
!$omp end parallel
It works fine if I use clause instead.
!$omp parallel num_threads(4)
print *, 'hello parallel'
!$omp end parallel
What am I missing in using the routine OMP_set_num_threads?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you include
USE OMP_LIB
Are you using IMPLICIT NONE?
If you are not using IMPLICIT NONE the compiler will not report that you may have forgotten to have USE OMP_LIB to declare the proper interface for OMP_set_num_threads (which are not necessarily what the default calling sequence is).
Jim Dempsey
USE OMP_LIB
Are you using IMPLICIT NONE?
If you are not using IMPLICIT NONE the compiler will not report that you may have forgotten to have USE OMP_LIB to declare the proper interface for OMP_set_num_threads (which are not necessarily what the default calling sequence is).
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