Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Ifort on Arch Linux x86_64

dodys
Beginner
1,660 Views
I'm using Intel Fortran Compiler, last version, on my Arch Linux x86_64.
After I installed, I did the command:

source /opt/intel/bin/compilervars.sh intel64

But always that I want to use the ifort, I have to do once before the source command

There's any way of not having to do this all the time I work with ifort?

Thanks!
0 Kudos
1 Reply
Hirchert__Kurt_W
New Contributor II
1,660 Views
Put the source command in the .profile or .bash_profile file (whichever one you currently have) in your home directory. Then the command will be executed for you every time you login.

[Some ways of using X windows never open a login shell and thus never execute the commands in your .profile or .bash_profile file. If you run into this problem, you may have to use your .bashrc file instead. (The commands in the .bashrc file are executed for all shells, not just login shells, so using .bashrc imposes the cost of executing source command more often, but on most machines these days, that is not a major concern.)]

-Kurt
0 Kudos
Reply