WebCal
Ctrl K

가이드

MPI

가이드통합FAQ지원
가격블로그
빠른 시작Top-Up and BillingAccelerating Access to Academic ResourcesQuick StartIntroductionMaintenance and TroubleshootingNetwork
플랫폼JetBrain ProjectorTmpWebCal Scholars Program @2026Introduction to the Public Beta/Suqian Zone AAbout UsCopying Data Between InstancesAnalysis of Server Performance MetricsTidal Computing PowerLoad Balancing
중국산 칩Using Huawei MindIEHuawei Ascend NPUMooreThread GPU
환경 설정CUDA/cuDNNMinicondaPython3.XInstalling DependenciesOverviewImages
엔터프라이즈 기능Flexible DeploymentElastic Deployment Release NotesBest Practices for Elastic DeploymentPerformance Metrics Monitoring
컨테이너 인스턴스JupyterLabRemote SSH ConnectionSave the imageScaling ConfigurationMulti-machine, multi-GPU parallel processingDaemonOverviewChange the billing methodMigration Example (Same Region)Migration ExamplesRemote DesktopReset the system
GPU 선택GPU SelectionPerformance Testing
데이터Upload DataDownload DataPublic DataPublic Cloud Storage (Highly Recommended)Compression / DecompressionFile StorageLocal data diskOverview
모범 사례FileZillaGitGromacsHuggingFaceKataGoLinux BasicsMPIOpenCLPyCharm Remote DevelopmentR (RStudio) InstallationSSH TunnelTensorBoardRemote Development with VSCodeVisdomVulkanXShellOpen PortsWeChat MessagesPerformanceExpose multiple servicesMoney-Saving TipsComputation Precision IssuesSoftware Sources

모범 사례

MPI

2026. 07. 30.52916회 조회

Note: Testing has shown that the system runs normally on Ubuntu 20.04, but may hang on Ubuntu 22.04. Please select the Ubuntu 20.04 image. The cause is unknown; if you know the reason, please let us know. Thank you very much!

Installation

# 注意不要安装和使用openmpi包,该包存在问题
apt update && apt-get install mpich

Verification

Simple test:

# 使用mpi执行ls命令,看是否可以输出目录和文件
mpirun -n 2 ls

Compilation and testing:

# 编写test.c文件,内容为:
#include <stdio.h>
#include <mpi.h>
int main (int argc, char** argv) {

        int size, rank;
        MPI_Init(&argc, &argv);

        MPI_Comm_rank(MPI_COMM_WORLD, &rank);
        MPI_Comm_size(MPI_COMM_WORLD, &size);
        printf("size = %d rank = %d\n", size, rank);
        MPI_Finalize();
}

# 编译,将输出a.out可执行文件
mpicc test.c

# 执行,注意使用绝对路径,因为a.out不在PATH环境变量中,这里测试目录是/root
mpirun -n 1 /root/a.out
다음 글Local data disk
Compute Rental 문서가이드(으)로 돌아가기