官术网_书友最值得收藏!

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "You'll note the use of mpi.cart.create(), which constructs a Cartesian rank/grid mapping from a group of existing MPI processes."

A block of code is set as follows:

Worker_makeSquareGrid <- function(comm,dim) {
  grid <- 1000 + dim    # assign comm handle for this size grid
  dims <- c(dim,dim)    # dimensions are 2D, size: dim X dim
  periods <- c(FALSE,FALSE)  # no wraparound at outermost edges 
  if (mpi.cart.create(commold=comm,dims,periods,commcart=grid))  
  {
    return(grid)
  }
  return(-1) # An MPI error occurred
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

# Namespace file for sprint 

useDynLib(sprint)

export(phello)
export(ptest)
export(pcor)

Any command-line input or output is written as follows:

$ mpicc -o mpihello.o mpihello.c 
$ mpiexec -n 4 ./mpihello.o

New terms and important words are shown in bold.

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 秦安县| 西乌珠穆沁旗| 永州市| 神池县| 喀喇沁旗| 闸北区| 唐河县| 新昌县| 鄂托克旗| 吐鲁番市| 合川市| 三门县| 长治市| 阳山县| 万全县| 华蓥市| 上饶市| 融水| 铜鼓县| 莫力| 牙克石市| 汕尾市| 基隆市| 南丰县| 仪陇县| 陇南市| 启东市| 湘乡市| 弥渡县| 高要市| 隆尧县| 阿拉善盟| 漳平市| 长宁区| 乾安县| 嫩江县| 固阳县| 霍州市| 庄河市| 岐山县| 岳普湖县|