- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I wnt to know if in a Mac OS I should switch betwwen two versions of Fortran compiler. In a Linux machine we use the instruction "module switch version1 version2" but neither module nor switch are valid commands on the Mac.
Thanks!
Thanks!
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was unable to find modules (http://modules.sourceforge.net/) for Mac OS so I'm afraid you must resort to using the source command with the appropriate ifortvars.sh/ifortvars.csh for the specific ifort compiler release you want to use from the versions you have installed unless someone else has a link to a version or perhaps an alternative.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Kevin Davis (Intel)
I was unable to find modules (http://modules.sourceforge.net/) for Mac OS so I'm afraid you must resort to using the source command with the appropriate ifortvars.sh/ifortvars.csh for the specific ifort compiler release you want to use from the versions you have installed unless someone else has a link to a version or perhaps an alternative.
I am a new user and I can acces the Mac by remote conexion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are not extra commands, just a different command than module. Instead of using module you must use the source command to setup your shell environment accordingly to use the compiler.
So, after logging into your Mac, execute the appropriate source command to setup your environment so you can use the compiler. You can use the source command again to change the environment setup to use a different compiler version if you have multiple ifort versions installed.
The best advice I can offer is to obtain the Getting Started guide (here) and follow the steps in Section 3, Starting the Compiler from the command line.
You will need to know the installation path of your ifort compiler to use the source command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oooops, I was totally missunderstood the word "source", so now that I know that it refers to a command I will read about it in the documentation you had provided.
Thank you A LOT Kevin
:)
Thank you A LOT Kevin
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - princess_sophie
Oooops, I was totally missunderstood the word "source", so now that I know that it refers to a command I will read about it in the documentation you had provided.
Thank you A LOT Kevin
:)
Thank you A LOT Kevin
:)
Maybe you are new to Unix systems, so
- either your shell is csh and you will type at command prompt before compiling and executing your code:
source /opt/intel/Compiler/11.0/069/bin/intel64/ifortvars_intel64.csh
- or if your shell is bash (which is more likely) you will type at the prompt:
. /opt/intel/Compiler/11.0/069/bin/intel64/ifortvars_intel64.sh
In the example, I have release 11.0.069 and an x86_64 processor (you probably do as well with a Core 2 Duo).
Sincerely,
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - cessenat@free.fr
source /opt/intel/Compiler/11.0/069/bin/intel64/ifortvars_intel64.csh
- or if your shell is bash (which is more likely) you will type at the prompt:
. /opt/intel/Compiler/11.0/069/bin/intel64/ifortvars_intel64.sh
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