Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run Intel Fortran Composer XE after installing it?

Tags:

linux

fortran

I installed the Intel Fortran Composer XE from this link on my Debian Linux system, which includes the Intel Fortran Compiler. I installed it to opt/intel/composer_xe_2013_sp1.0.080, but now I'm not sure how to run it. I followed the instructions in this question to install the environment variables, but now I'm trying to run the IDE.

Does Intel Fortran on Linux not come with an IDE? On Windows everyone talks about integrating it with Visual Studio, so do I need to integrate it with Eclipse (somehow?), or what? Can someone point me to resources telling me about this? I don't see information anywhere, so I feel like... I'm just supposed to know and that this is a really stupid question. What is the composer if not an IDE? Is the composer different from the compiler?

like image 784
Michael A Avatar asked Sep 21 '13 23:09

Michael A


People also ask

How do I run ifort on Windows?

You can use the ifort command in either of two windows: Your own terminal window, in which you have set the appropriate environment variables by executing the file called ifortvars.sh or ifortvars. csh (Linux* and Mac OS*) or ifortvars.bat (Windows*). This file sets the environment variables such as PATH.

How do I add Fortran to Visual Studio?

Installing Intel FortranOn the download page we suggest to select an Online installer. Launch the installer and follow the directions: Proceed with a default install (all components are installed) Be sure to check the box Microsoft Visual Studio 2019 in the Integrate IDE step.


1 Answers

You need to source two files into your environment (and possibly specify your architecture)

source /opt/intel/composer_xe_2013_sp1.0.080/bin/compilervars.sh intel64
source /opt/intel/composer_xe_2013_sp1.0.080/bin/compilervars_arch.sh intel64

To find out what architectures are supported run

/opt/intel/composer_xe_2013_sp1.0.080/bin/compilervars.sh

without any arguments

You can create a file named /etc/profile.d/intel.sh, and insert these lines into it. after editing you should log out and log in back again, then try

which icc
which ifort

echo $LD_LIBRARY_PATH

To see if your environment knows the correct location of everything

If you cannot edit files under /etc (no super user privileges), just add these two 'source' lines into your ~/.bashrc, then log out and log in again

like image 100
superk Avatar answered Oct 27 '22 23:10

superk