LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-31-2007, 07:51 AM   #1
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Rep: Reputation: 15
Lightbulb Fast fortran compiler on RHEL needed


Dear experts,

I have recently purchased a workstation (hp xw9300) which is pretty good:
2X Dual core AMD Opteron 285 2.6GHz, 1MB cache
2X 300 GB U320 SCSI 10.000 rpm

In short it is a 2-processor, dual core machine with a total of 600GB memory. (It acts like 4 porocessors.) I have RHEL 4.0 installed on the workstation.

It is a high spec because I use it for scientific work; in particular I compile and run large codes written in FORTRAN, with applications to fluid mechanics type problems -- that means large grid sizes, hence the need for very large memory.

My question relates to fortran compilers. The machine comes installed with with the g77 compiler, which is the standard fortran77 (f77) compiler and that works very nicely and there is no problem.

It also comes witht the gfortran compiler which is the fortran95 (f95) compiler which is slowly replacing f77. I was delighted, but then found much to my annoyance that codes that I rewote in f95 and compiled with gfortran were slower than the f77 version! So I had to go back to the old version.

I have tried to find a suitable f95 compiler for RHEL, but I have been unable to -- there is no official version as far as I can see except for gfortran.

So, my basic question is, can any one help and find a fast f95 compiler suitable for RHEL for me? Are there forums where I can look out for it?

Thank you.
 
Old 07-31-2007, 12:35 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
"can any one help and find a fast f95 compiler suitable for RHEL for me?"

I do not think that there is another free f95 compiler available. Intel sells a proprietary f95 compiler which has a free evaluation period.

http://www.intel.com/cd/software/pro...lin/282048.htm

--------------
Steve Stites
 
Old 07-31-2007, 12:47 PM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
I think if you're in academia, the Intel Fortran compiler is free.
 
Old 07-31-2007, 07:10 PM   #4
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pwc101
I think if you're in academia, the Intel Fortran compiler is free.
Thanks, but is intel fortran compiler compatible with AMD Opteron chip?

Regards
 
Old 08-01-2007, 02:37 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Yes, we have dual Opteron machines at work using it.
 
Old 08-01-2007, 06:17 PM   #6
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pwc101
Yes, we have dual Opteron machines at work using it.
That sounds like what I want. Would you be kind enough to specify exactly what is needed, and perhaps the weblink a well?

Thanks.
 
Old 08-01-2007, 07:01 PM   #7
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Try:

http://www.intel.com/cd/software/pro...eng/219771.htm

Click Accept, then scroll down to Compilers, and click on

# Intel® C++ Compiler Professional Edition for Linux*

You then have to register with them to get the download link, if memory serves. Then you just download the tarball, and install it. Can't remember exactly what the install procedure is, but it's not rocket science.
 
Old 08-03-2007, 02:47 PM   #8
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by pwc101
Try:

http://www.intel.com/cd/software/pro...eng/219771.htm

Click Accept, then scroll down to Compilers, and click on

# Intel® C++ Compiler Professional Edition for Linux*

You then have to register with them to get the download link, if memory serves. Then you just download the tarball, and install it. Can't remember exactly what the install procedure is, but it's not rocket science.
Great -- I have installed the Intel64 fortran compiler successfully. Thanks!

Just a couple of niggly bits:

(1) The instalation guide mentions how to set ip the Compiler Environment

The programs in the Intel Fortran Compiler 10.0 for Linux product rely on the environment variables PATH and LD_LIBRARY_PATH. The installation script (install.sh) creates compiler environment script files (ifortvars.sh/idbvars.sh) that set these variables. It is strongly recommended that you add those script files into your login script (.login file). Once the variables are set in the ".login" file there is no need to run the script files for each session.

source the script to setup the compiler environment:

* > source <install-dir>/bin/ifortvars.sh(.csh)
to use ifort
* > source <idb-install-dir>/bin/idbvars.sh(.csh)
to use idb


However, I cannot find '.login' file in my root directory; but I have the usual files like .bashrc and /etc/login.d and so on. So which is my real login script file where I should add the variables?

The script files are /opt/intel/fce/10.0.023/bin/ifortvars.sh(.csh) Should I add the entire contents of both of these files to the end of my login script file? Or is it enough just to add,

> source /opt/intel/fce/10.0.023/bin/ifortvars.sh

to my login script? (By the way what is the difference between the *.sh and *.csh files?)

(2) If I can be allowed to sneak in an 'ifort' question (its a quicky). With the g77 compiler I use the options: > g77 -Wall -ffast-math -funroll-all-loops -funroll-loops -O3 ......

Does any one know what the best options with the ifort compiler in order to maximmise the speed of vectorising, loop unrollingm i.e. make the executible as fast as possible?

Thanks again.
Cheers
 
Old 08-03-2007, 04:16 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
"However, I cannot find '.login' file in my root directory; but I have the usual files like .bashrc and /etc/login.d and so on. So which is my real login script file where I should add the variables?"

Different distributions use different files for login defaults. The files in the root directory are universal defaults which apply to all users. The files appended to user directories apply only to that user. If your distribution uses .bashrc then /home/user/.bashrc contains the local defaults and somewhere in /etc you will find a .bashrc which contains the universal defaults.

"By the way what is the difference between the *.sh and *.csh files?"

You can have several different shells like bash, ksh, etc. .sh is a symbolic link to whichever shell you are using as the default shell. csh is the c shell.

http://en.wikipedia.org/wiki/C_shell

-----------------
Steve Stites
 
Old 08-03-2007, 05:34 PM   #10
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by jailbait
If your distribution uses .bashrc then /home/user/.bashrc contains the local defaults and somewhere in /etc you will find a .bashrc which contains the universal defaults.

-----------------
Steve Stites
Thanks jailbait. I am using RHEL 4.0 WS. I will put the script into my root /etc/bashrc file since I want all users to be able to access ifort.

So, do I just add the following line at the end of /etc/baschrc :

/opt/intel/fce/10.0.023/bin/ifortvars.sh

?

Regards
 
Old 08-04-2007, 11:36 AM   #11
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
"So, do I just add the following line at the end of /etc/baschrc :

/opt/intel/fce/10.0.023/bin/ifortvars.sh"

Yes. Be sure that /opt/intel/fce/10.0.023/bin/ifortvars.sh is executable:

chmod +x /opt/intel/fce/10.0.023/bin/ifortvars.sh

------------------
Steve Stites
 
Old 08-07-2007, 09:15 AM   #12
The_Watcher
Member
 
Registered: Mar 2007
Location: London
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jailbait
chmod +x /opt/intel/fce/10.0.023/bin/ifortvars.sh
Steve Stites
Thanks.
(However, I have found that I have to put:
source /opt/intel/fce/10.0.023/bin/ifortvars.sh

in to the /etc/bashrc file ?)

Regards.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 06:39 AM
Fortran compiler serafimg Ubuntu 1 01-28-2007 02:19 PM
Can't get a Fortran compiler Executor21 Linux - Newbie 1 01-15-2007 11:29 AM
Fortran 95 Compiler alunduil Programming 2 08-16-2006 07:12 AM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration