Ubuntu安装Intel® Parallel Studio XE

1. 注册和下载

Choose & Download Intel® Parallel Studio XE页面,选择教育用户注册【需要有教育网邮箱】,并下载对应版本parallel_studio_xe_2020_update2_cluster_edition.tgz,包括:

  • The Intel® C++ Compiler and Intel® Fortran Compiler
  • Intel® Distribution for Python*
  • Enhanced GNU Project Debugger (GDB)
  • Software libraries (Intel® MKL, Intel® DAAL, Intel® TBB, Intel® IPP)
  • Intel® Advisor
  • Intel® Inspector
  • Intel® VTune™ Profiler
  • Intel® MPI Library
  • Intel® Trace Analyzer and Collector
  • Intel® Cluster Checker (Linux* only)

2. 安装

解压tgz文件,cd进入,ls查看,而后安装:

./install_GUI.sh

选择合适的安装路:By default, <install_dir> is:

  • For root installations: /opt/intel
  • For non-root installations: $HOME/intel

输入Serial number,而后至安装成功。

3. 调用

cd to <install_dir>/parallel_studio_xe_2020../bin

我安装的路径为:/home/shalom/intel/parallel_studio_xe_2020.2.108/bin

cd /home/shalom/intel/parallel_studio_xe_2020.2.108/bin

Enter source psxevars.sh or source psxevars.csh. 这一步要在bash模式下进行:

$ source psxevars.sh
Intel(R) Parallel Studio XE 2020 Update 2 for Linux*
Copyright 2009-2020 Intel Corporation.

验证是否调用成功:

$ ifort --version
ifort (IFORT) 19.1.2.254 20200623
Copyright (C) 1985-2020 Intel Corporation.  All rights reserved.

至此,安装成功。

4. 环境变量

如果输入ifort没有反应,则需要设置环境变量,在~/.bahrc文件里面加入:

source /home/shalom/intel/parallel_studio_xe_2020.2.108/bin/psxevars.sh

需要切换到bash的shell下运行ifort即可。