Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Built-in OpenMPI of the IB Driver

Updated on 2022-05-09 GMT+08:00

Scenarios

This section describes how to install and use the built-in OpenMPI of the IB driver (for example, 3.0.0rc6).

Prerequisites

You have configured the ECS password-free login.

Procedure

  1. Check whether the IB driver has been installed.

    1. Use PuTTY and a key pair to log in to the ECS.
    2. Run the following command to switch to user root:

      $ sudo su

    3. Run the following command to disable user logout upon system timeout:

      # TMOUT=0

    4. Run the following commands to check whether the IB driver has been installed:

      # rpm -qa | grep mlnx-ofa

      # ls /usr/mpi/gcc/openmpi-3.0.0rc6/bin/mpirun

      Figure 1 Command output indicating that the IB driver has been installed
      • If the preceding two commands contain the returned value shown in Figure 1, the IB driver has been installed. Go to 3.
      • If the returned value is different from that shown in Figure 1, the IB driver is not installed. Go to 2.

  2. Download and install the IB driver.

    Download the required version of InfiniBand NIC driver from the Mellanox official website https://network.nvidia.com/products/infiniband-drivers/linux/mlnx_ofed/ and install the driver by following the instructions provided.

    For example, for an ECS running CentOS 7.3, download the MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.3-x86_64.tgz installation package and run the following commands to install the IB driver:

    # yum install tk tcl

    # tar -xvf MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.3-x86_64.tgz

    # cd MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.3-x86_64/

    # ./mlnxofedinstall

  3. Configure environment variables.

    1. Run the following commands to configure the ~/.bashrc file using the vim editor and add the following content:

      export PATH=$PATH:/usr/mpi/gcc/openmpi-3.0.0rc6/bin

      export LD_LIBRARY_PATH=/usr/mpi/gcc/openmpi-3.0.0rc6/lib64

    2. Run the following command to import MPI environment variables:

      # source ~/.bashrc

    3. Run the following command to check whether the MPI environment variables are correct:

      # which mpirun

      Figure 2 Checking MPI environment variables

      If information shown in Figure 2 is displayed, the environment configuration is correct.

  4. Run the following command to run Intel MPI benchmark on an ECS:

    # mpirun --allow-run-as-root -np 2 /usr/mpi/gcc/openmpi-3.0.0rc6/tests/imb/IMB-MPI1 PingPong

    Information similar to the following is displayed:

    #------------------------------------------------------------
    #    Intel (R) MPI Benchmarks 4.1, MPI-1 part
    #------------------------------------------------------------
    # Date                  : Mon Jul 16 10:11:14 2018
    # Machine               : x86_64
    # System                : Linux
    # Release               : 3.10.0-514.10.2.el7.x86_64
    # Version               : #1 SMP Fri Mar 3 00:04:05 UTC 2017
    # MPI Version           : 3.1
    # MPI Thread Environment:
    
    # New default behavior from Version 3.2 on:
    
    # the number of iterations per message size is cut down
    # dynamically when a certain run time (per message size sample)
    # is expected to be exceeded. Time limit is defined by variable
    # "SECS_PER_SAMPLE" (=> IMB_settings.h)
    # or through the flag => -time
    
    
    # Calling sequence was:
    
    # /usr/mpi/gcc/openmpi-3.0.0rc6/tests/imb/IMB-MPI1 PingPong
    
    # Minimum message length in bytes:   0
    # Maximum message length in bytes:   4194304
    #
    # MPI_Datatype                   :   MPI_BYTE
    # MPI_Datatype for reductions    :   MPI_FLOAT
    # MPI_Op                         :   MPI_SUM
    #
    #
    
    # List of Benchmarks to run:
    
    # PingPong
    
    #---------------------------------------------------
    # Benchmarking PingPong
    # #processes = 2
    #---------------------------------------------------
    #bytes #repetitions      t[usec]   Mbytes/sec
    0         1000         0.24         0.00
    1         1000         0.25         3.89
    2         1000         0.23         8.17
    4         1000         0.23        16.25
    8         1000         0.23        32.48
    16         1000         0.23        65.98
    32         1000         0.26       115.35
    64         1000         0.26       232.92
    128         1000         0.38       320.59
    256         1000         0.44       554.35
    512         1000         0.54       902.98
    1024         1000         0.64      1537.63
    2048         1000         0.85      2298.79
    4096         1000         1.28      3057.93
    8192         1000         2.28      3426.14
    16384         1000         1.41     11052.14
    32768         1000         2.05     15218.39
    65536          640         3.31     18882.34
    131072          320         6.57     19036.27
    262144          160        15.12     16535.96
    524288           80        32.90     15195.74
    1048576           40        64.62     15476.02
    2097152           20       122.83     16282.06
    4194304           10       242.95     16463.95
    
    # All processes entering MPI_Finalize

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback