oneAPI资源和安装

2021-07-19
#Fortran #C

1. Introduction

OneAPI旨在提供一个适用于各类计算架构的统一编程模型和应用程序接口。 “OneAPI 提供一个通用、开放的编程体验,让开发者可以自由选择架构,无需在性能上作出妥协,也大大降低了使用不同的代码库、编程语言、编程工具和工作流程所带来的复杂性”。

Intel® oneAPI Toolkits:

2. 资源

Intel® oneAPI Base Toolkit:Download the Intel® oneAPI Base Toolkit

  • Intel® oneAPI Collective Communications Library
  • Intel® oneAPI Data Analytics Library
  • Intel® oneAPI Deep Neural Networks Library
  • Intel® oneAPI DPC++/C++ Compiler
  • Intel® oneAPI DPC++ Library
  • Intel® oneAPI Math Kernel Library
  • Intel® oneAPI Threading Building Blocks
  • Intel® oneAPI Video Processing Library
  • Intel® Advisor
  • Intel® Distribution for GDB*
  • Intel® Distribution for Python*
  • Intel® DPC++ Compatibility Tool
  • Intel® FPGA Add-on for oneAPI Base Toolkit
  • Intel® Integrated Performance Primitives
  • Intel® VTune™ Profiler

Intel® oneAPI HPC:Download the Intel oneAPI HPC Toolkit

  • Intel® oneAPI DPC++/C++ Compiler
  • Intel® C++ Compiler Classic
  • Intel® Cluster Checker
  • Intel® Fortan Compiler (Beta)
  • Intel® Fortran Compiler Classic
  • Intel® Inspector
  • Intel® MPI Library
  • Intel® Trace Analyzer and Collector

3. 安装

Linux

What’s Included in the Intel® oneAPI HPC Toolkit for Linux*

  • Download size: 794 MB
  • Install space required: 4.2 GB
wget https://registrationcenter-download.intel.com/akdlm/irc_nas/17764/l_HPCKit_p_2021.2.0.2997_offline.sh 
sudo bash l_HPCKit_p_2021.2.0.2997_offline.sh
  • Step 1: From the console, locate the downloaded install file.
  • Step 2: Use $ sudo sh ./.sh to launch the GUI Installer as root. Optionally, use $ sh ./.sh to launch the GUI Installer as current user.
  • Step 3: Follow the instructions in the installer.
  • Step 4: Explore the Get Started Guide.

环境变量:把setbvars.sh(setvars.sh的具体路径以自己的为准)添加到~/.bashrc为:

source /opt/intel/oneapi/setvars.sh intel64

检查结果:

  • icc -v
  • ifort -v
  • mpiicc -v
  • mpiifort -v

macOS

What’s Included in the Intel® oneAPI HPC Toolkit for macOS*

  • Download size: 176 MB
  • Install space required: 2.6 GB

Steps:

  • Step 1: Select the disk image (DMG file) that you downloaded.
  • Step 2: Select the install icon to start bootstrapper.app.
  • Step 3: Follow the instructions in the installer.
  • Step 4: Explore the Get Started Guide.

3. 参考