Xiao-Le Deng

oneAPI资源和安装

2021-07-19 10:00
#Fortran #C

1. Introduction

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

Intel® oneAPI Toolkits:

  • 基础工具:构建、分析、优化性能驱动和以数据为中心的应用程序
  • 高性能计算工具:提供C++、Fortran、OpenMP和MPI应用程序
  • 物联网工具:构建在网络边缘运行的高性能、高效、可靠的应用程序
  • 可视化工具:创建高性能、高保真的可视化应用程序
  • AI分析工具:为数据科学家、AI开发人员和研究人员提供熟悉的Python工具和框架,以加速 Intel体系结构上的端到端数据科学和分析管道
  • OpenVINO工具:跨多个 Intel体系结构,拓展了 Intel硬件(包括加速器)的工作负载,最大限度提升性能,为生命科学、零售、工业等多领域带来更多的高效应用

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

Intel® oneAPI AI Analytics Toolkit:Download the Intel® oneAPI AI Analytics Toolkit

  • Intel® Distribution for Python* including highly-optimized scikit-learn and XGBoost libraries
  • Intel® Optimization for PyTorch*
  • Intel® Optimization for TensorFlow*
  • Intel® Optimization of Modin* (available through Anaconda only)
  • Intel® Low Precision Optimization Tool
  • Model Zoo for Intel® Architecture

Intel® oneAPI IoT Toolkit:Download the Intel oneAPI IoT Toolkit

  • Intel® oneAPI DPC++/C++ Compiler
  • Intel® C++ Compiler Classic
  • Intel® Inspector
  • Eclipse* IDE Plugins
  • IoT Connection Tools
  • Linux* Kernel Build Tools

Intel® oneAPI Rendering Toolkit:Download the Intel oneAPI Rendering Toolkit

  • Intel® Embree
  • Intel® Open Volume Kernel Library
  • Intel® Open Image Denoise
  • Intel® OpenSWR
  • Intel® OSPRay
  • Intel® OSPRay Studio
  • Intel® OSPRay for Hydra*

Intel® Distribution of OpenVINO™ Toolkit:Fast Track Computer Vision & Deep Learning Inference With Intel® Distribution of OpenVINO™ toolkit

  • Model Optimizer
  • Deep Learning Workbench
  • Inference Engine
  • Deployment Manager
  • OpenCV*
  • DL Streamer
  • Post Training Optimization Tool

Intel® System Bring-up Toolkit

  • Intel® SoC Watch
  • Intel® System Debugger
  • Intel® VTune™ Profiler

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. 参考