- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why is !$write... ignored unlike !$omp while !$ write... is fine? Note the space or not.
Is thread count zero based?
Why does the likes of
use omp_lib
integer nt
nt = 3
!$ call omp_set_num_threads ( nt )
!$ write ( *, '(a,i6)' ) ' The number of threads is ', omp_get_num_threads( )
return 1 on a C2D even with /QaxT, /Qparallel, and /Qopemmp all set?
Thanks,
Gerry
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
!$ is an OpenMP conditional compilation prefix and has its own rules. On an initial line, a space is required after the $. Otherwise you'd have confusion over something like:
!$ompalompa = 3
I'll leave the question about threads to someone with more experience, though this question might do better in the threading forum section.
!$ompalompa = 3
I'll leave the question about threads to someone with more experience, though this question might do better in the threading forum section.

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