Run the MPI PingPong benchmark
2017-04-03 12:25
501 查看
We will use the MPI PingPong benchmark for our testing. By default, openmpi should use inifiniband networks in preference to any tcp networks it finds. However, we will force mpi to ignore tcp networks to ensure
that is using the infiniband network.
If all goes well you should see openib debugging messages from both hosts, together with the job output.
If you encounter any errors read the excellent OpenMPI troubleshooting guide. http://www.openmpi.org
If you want to compare infiniband performance with your ethernet/TCP networks, you can re-run the tests using flags to tell openmpi to use your ethernet network. (The example below assumes that your test nodes are
connected via eth0).
You should notice signficantly higher latencies than for the infiniband test.
Reprinted from:http://pkg-ofed.alioth.debian.org/howto/infiniband-howto-6.html#ss6.6
that is using the infiniband network.
#!/bin/bash #Infiniband MPI test program #Edit the hosts below to match your test hosts cat > /tmp/hostfile.$$.mpi <<EOF hostA slots=1 HostB slots=1 EOF mpirun --mca btl_openib_verbose 1 --mca btl ^tcp -n 2 -hostfile /tmp/hostfile.$$.mpi IMB-MPI1 PingPong
If all goes well you should see openib debugging messages from both hosts, together with the job output.
<snip> # PingPong [HostB][0,1,1][btl_openib_endpoint.c:992:mca_btl_openib_endpoint_qp_init_query] Set MTU to IBV value 4 (2048 bytes) [HostB][0,1,1][btl_openib_endpoint.c:992:mca_btl_openib_endpoint_qp_init_query] Set MTU to IBV value 4 (2048 bytes) [HostA][0,1,0][btl_openib_endpoint.c:992:mca_btl_openib_endpoint_qp_init_query] Set MTU to IBV value 4 (2048 bytes) [HostA][0,1,0][btl_openib_endpoint.c:992:mca_btl_openib_endpoint_qp_init_query] Set MTU to IBV value 4 (2048 bytes) #--------------------------------------------------- # Benchmarking PingPong # #processes = 2 #--------------------------------------------------- #bytes #repetitions t[usec] Mbytes/sec 0 1000 1.53 0.00 1 1000 1.44 0.66 2 1000 1.42 1.34 4 1000 1.41 2.70 8 1000 1.48 5.15 16 1000 1.50 10.15 32 1000 1.54 19.85 64 1000 1.79 34.05 128 1000 3.01 40.56 256 1000 3.56 68.66 512 1000 4.46 109.41 1024 1000 5.37 181.92 2048 1000 8.13 240.25 4096 1000 10.87 359.48 8192 1000 15.97 489.17 16384 1000 30.54 511.68 32768 1000 55.01 568.12 65536 640 122.20 511.46 131072 320 207.20 603.27 262144 160 377.10 662.96 524288 80 706.21 708.00 1048576 40 1376.93 726.25 2097152 20 1946.00 1027.75 4194304 10 3119.29 1282.34
If you encounter any errors read the excellent OpenMPI troubleshooting guide. http://www.openmpi.org
If you want to compare infiniband performance with your ethernet/TCP networks, you can re-run the tests using flags to tell openmpi to use your ethernet network. (The example below assumes that your test nodes are
connected via eth0).
#!/bin/bash #TCP MPI test program #Edit the hosts below to match your test hosts cat > /tmp/hostfile.$$.mpi <<EOF hostA slots=1 HostB slots=1 EOF mpirun --mca btl ^openib --mca btl_tcp_if_include eth0 --hostfile hostfile -n 2 IMB-MPI1 -benchmark PingPong
You should notice signficantly higher latencies than for the infiniband test.
Reprinted from:http://pkg-ofed.alioth.debian.org/howto/infiniband-howto-6.html#ss6.6
相关文章推荐
- Run-Time Check Failure #2 - Stack around the variable 'usval' was corrupted
- 普通用户操作tomcat项目时报:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run
- xcode cannot run using the selected device choose a destination with a supported architecture
- 打开OpenProj 出现Your Java Vendor is "Oracle Corporation". To run OpenProj, you need the Sun Java...
- ccah-500 第48题 Choose three reasons why should you run the HDFS balancer periodically
- HDU 1474 HDU1580 UVA570 Always On the Run
- Uva 590 Always on the run (Dp)
- Warning: Unable to fetch my node definition, but the agent run will continue: Warning: getaddrinfo:
- uva 590 - Always on the run
- Multi-thread: What is the difference between OpenMP and MPI
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?解决方
- 【Codeforces319E】Ping-Pong
- The Development Fabric must be run elevated
- Lot Size calculations for the Procurement Proposals in an SAP MRP Run
- Failed to run the WC DB work queue associated with解决办法
- sicily 1419. On the run(牛奶快递)
- 安装redis,执行make test时遇到You need tcl 8.5 or newer in order to run the Redis test
- The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods install
- Failed to get the adb version: Cannot run program "D:\..."的错误解决!