- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Whencompiling withOpenMP active you can include additional normal Fortran statements with the sentinel
!$ fortran statement
Is there a platform-independent way to do the opposite? In other words, when OpenMP is enabled to comment out or disablenormal Fortran statements.
Al Greynolds
www.ruda.com
!$ fortran statement
Is there a platform-independent way to do the opposite? In other words, when OpenMP is enabled to comment out or disablenormal Fortran statements.
Al Greynolds
www.ruda.com
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sort of. Most implementations support cpp-style preprocessing. (With Intel fortran enable it with /fpp) So if you enable that, you can do something like:
#ifndef _OPENMP
... code to compile if OpenMP not requested
#endif
I am pretty sure that _OPENMP is a "standard" define everywhere OpenMP is supported.
#ifndef _OPENMP
... code to compile if OpenMP not requested
#endif
I am pretty sure that _OPENMP is a "standard" define everywhere OpenMP is supported.
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