content_image/990194.jpg
deallocate(b) deallocate(c) call blacs_gridexit(icontxt) call blacs_exit(0) end 

Example 7-8 on page 182 explicitly states that you should use two GPUs per MPI task. To change this configuration, change the following lines: 

## 7.4.3 Compilation 

ngpus = 1 ids(1) = mod(iam,4) to the following lines: ngpus = 2 ids(1) = mod(iam,2)*2 ids(2) = mod(iam,2)*2 + 1 

The IBM Parallel ESSL subroutines can be called from 64-bit-environment application programs, which are written in Fortran, C, and C++. Compilation commands of source code for different types of IBM Parallel ESSL libraries (SMP and SMP CUDA) that use MPICH libraries are described in Table 7-12, Table 7-13 on page 187, Table 7-14 on page 187, Table 7-15 on page 188, and Table 7-16 on page 188. 

You do not need to modify your Fortran compilation procedures when IBM Parallel ESSL for Linux is used. When linking and running your program, you must modify your job procedures to set up the necessary libraries. If you are accessing IBM Parallel ESSL for Linux from a Fortran program, you can compile and link by running the commands that are listed in Table 7-12. 

<img src='content_image/990194.jpg'>

