Skip to content

Instantly share code, notes, and snippets.

@SomajitDey
Last active September 6, 2024 08:53
Show Gist options
  • Save SomajitDey/aeb6eb4c8083185e06800e1ece4be1bd to your computer and use it in GitHub Desktop.
Save SomajitDey/aeb6eb4c8083185e06800e1ece4be1bd to your computer and use it in GitHub Desktop.
Install INTEL Fortran compiler ifort for free on Ubuntu(WSL2). Also install MKL. OpenMP and OpenMPI runtime for coarray support.

My route:

  1. curl -Lo- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
  2. sudo tee /etc/apt/sources.list.d/oneAPI.list <<< "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main"
  3. sudo apt update
  4. sudo apt install intel-oneapi-compiler-fortran
  5. Optional: sudo apt install intel-oneapi-mkl
  6. In ~/.bashrc: source /opt/intel/oneapi/setvars.sh > /dev/null
@superlbr
Copy link

superlbr commented May 3, 2024

ifort is now deprecated and will be discontinued late 2024..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment