3 – Using InfiniPath MPI

Configuring MPI Programs for InfiniPath MPI

Q

and run it with:

$ mpirun -np 2 -m mpihosts ./pi3f90

The C++ program hello++.cc is a parallel processing version of the traditional “Hello, World” program. Notice that this version makes use of the external C bindings of the MPI functions if the C++ bindings are not present.

Compile it:

$ mpicxx -o hello hello++.cc

and run it:

$ mpirun -np 10 -m mpihosts ./hello Hello World! I am 9 of 10

Hello World! I am 2 of 10

Hello World! I am 4 of 10

Hello World! I am 1 of 10

Hello World! I am 7 of 10

Hello World! I am 6 of 10

Hello World! I am 3 of 10

Hello World! I am 0 of 10

Hello World! I am 5 of 10

Hello World! I am 8 of 10

Each of the scripts invokes the PathScale compiler for the respective language and the linker. See section 3.5.3 for an example of how to use the gcc compiler. The use of mpirun is the same for programs in all languages.

3.4

Configuring MPI Programs for InfiniPath MPI

When configuring an MPI program (generating header files and/or Makefiles), for InfiniPath MPI, you will usually need to specify mpicc, mpif90, etc. as the compiler, rather than pathcc, pathf90, etc.

Typically this is done with commands similar to these (this assumes you are using sh or bash as your shell):

$ export CC=mpicc

$ export CXX=mpicxx $ export F77=mpif77 $ export F90=mpif90 $ export F95=mpif95

The shell variables will vary with the program being configured, but these examples show frequently used variable names. Users of csh would instead use commands similar to:

$ setenv CC mpicc

3-4

IB6054601-00 D

Page 46
Image 46
Q-Logic IB6054601-00 D manual Configuring MPI Programs for InfiniPath MPI, Run it

IB6054601-00 D specifications

The Q-Logic IB6054601-00 D is a high-performance InfiniBand adapter card designed for data centers and enterprise applications requiring robust connectivity and low-latency communication. This adapter is part of QLogic's extensive portfolio of networking solutions, catering to the needs of high-performance computing (HPC), cloud computing, and virtualization environments.

One of the standout features of the IB6054601-00 D is its capability to support data transfer rates of up to 56 Gbps. This makes it ideal for applications demanding large bandwidth and quick data processing. The adapter is optimized for RDMA (Remote Direct Memory Access) technology, which allows data to be transferred directly between the memory of different computers without involving the CPU. This reduces latency and CPU overhead, leading to enhanced overall system performance.

The architecture of the IB6054601-00 D includes support for a dual-port design, which offers increased bandwidth, redundancy, and fault tolerance. This dual-port configuration is especially advantageous for environments that require high availability and reliability, such as financial services and mission-critical applications.

The adapter utilizes advanced error detection and correction mechanisms, ensuring that data integrity is maintained during transmission. With features like adaptive routing and congestion management, the IB6054601-00 D is capable of optimizing the handling of data flows, thereby enhancing performance even under heavy loads.

In terms of compatibility, the Q-Logic IB6054601-00 D supports a wide range of operating systems and virtualization technologies, making it easy to integrate into diverse IT environments. It also includes drivers and software packages that facilitate seamless deployment and management.

In addition to high-speed connectivity, the adapter is designed with power efficiency in mind. It adheres to Energy Star regulations, helping organizations lower their operational costs while minimizing their environmental footprint.

Overall, the Q-Logic IB6054601-00 D stands out for its high throughput, low latency, and reliability. Its combination of advanced features and technologies positions it as an excellent choice for organizations looking to enhance their data center performance and maximize the efficiency of their network infrastructure. With the growing demands for faster and more efficient data transfer, solutions like the IB6054601-00 D are essential in meeting the evolving needs of modern enterprises.