- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have several files(for example, sub1.f90, sub2.f90, main.f90). Only the main.f90 contains openmp sentence. How should I compile and link? Suppose for some reason, I need to ifort 'sub1.f90' and ifort 'sub2.f90' first. thus, I need to compile like:
ifort [options] sub1.o sub2.o main.o -o run
ifort [options] sub1.o sub2.o main.o -o run
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you declare all the subroutines and functions with RECURSIVE, any options you choose will be compatible with -openmp. Otherwise, you must build them all with -auto or -openmp so that they don't default to local static arrays. You will need the -openmp for the compilation of main.o and for the final link.
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