High Performance ComputingHigh Performance Computing

Compute
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
Domain Name Service
VPC Endpoint
Cloud Connect
Enterprise Switch
Security & Compliance
Anti-DDoS
Web Application Firewall
Host Security Service
Data Encryption Workshop
Database Security Service
Advanced Anti-DDoS
Data Security Center
Container Guard Service
Situation Awareness
Managed Threat Detection
Compass
Cloud Certificate Manager
Anti-DDoS Service
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB NoSQL
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
ServiceStage
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
Blockchain
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
DevCloud
ProjectMan
CodeHub
CloudRelease
CloudPipeline
CloudBuild
CloudDeploy
Cloud Communications
Message & SMS
Cloud Ecosystem
Marketplace
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP License Service
Support Plans
Customer Operation Capabilities
Partner Support Plans
Professional Services
enterprise-collaboration
Meeting
IoT
IoT
Intelligent EdgeFabric
DeveloperTools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Updated at: Feb 10, 2022 GMT+08:00

MPICH

Scenarios

This section describes how to install and use MPICH (version mpich-3.3.2 is used as an example) in a Kunpeng BMS cluster.

Perform the operations on each BMS in a cluster.

Prerequisites

Password-free login has been configured between BMSs in the cluster.

Procedure

  1. Install MPICH.

    1. Download MPICH.

      Download path: https://aur.archlinux.org/packages/mpich/

    2. Decompress the installation package and install MPICH.

      For example, if the installation package is mpich-3.3.2.tar.gz, run the following commands:

      # tar -xvf mpich-3.3.2.tar.gz

      # cd mpich-3.3.2/

      # ./configure --prefix=/opt/mpich-332 --with-device=ch4:ucx --with-ucx=/pub/mpi/ucx160/ --enable-fast=O3 CFLAGS="-fPIC -std=gnu11" FFLAGS=-fPIC CXXFLAGS=-fPIC FCFLAGS=-fPIC

      # make -j 128 && make install

      Figure 1 Successfully installed MPCHI

  2. Configure environment variables.

    1. Add the following content to ~/.bashrc as a common user:

      export PATH=/opt/mpich-332/bin: $PATH

      export LD_LIBRARY_PATH=/opt/mpich-332/lib

    2. Run the following command to import environment variables:

      $ source ~/.bashrc

  3. Run the following command to check whether environment variables have been imported:

    $ which mpirun

    Figure 2 Successful imported MPICH environment variables

    If information shown in Figure 2 is displayed, the environment variables have been imported.

  4. Run MPICH on a BMS.

    1. Run the following command to generate an executable file:

      $ mpicc hello.c -o hello

    2. Run the following command to run MPICH:

      $ mpirun -np 2 /home/rhel/hello

      Figure 3 Running MPICH on a BMS

Did you find this page helpful?

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel