example.cfg 3.1 KB
Newer Older
Gilbert Lee's avatar
Gilbert Lee committed
1
2
# ConfigFile Format:
# ==================
gilbertlee-amd's avatar
gilbertlee-amd committed
3
# A Transfer is defined as a uni-directional copy from src memory location to dst memory location
Gilbert Lee's avatar
Gilbert Lee committed
4
# executed by either CPU or GPU
Gilbert Lee's avatar
Gilbert Lee committed
5
# Each single line in the configuration file defines a set of Transfers (a Test) to run in parallel
Gilbert Lee's avatar
Gilbert Lee committed
6

gilbertlee-amd's avatar
gilbertlee-amd committed
7
# There are two ways to specify a Test:
Gilbert Lee's avatar
Gilbert Lee committed
8
9

# 1) Basic
Gilbert Lee's avatar
Gilbert Lee committed
10
11
#    The basic specification assumes the same number of threadblocks/CUs used per GPU-executed Transfer
#    A positive number of Transfers is specified followed by that number of triplets describing each Transfer
Gilbert Lee's avatar
Gilbert Lee committed
12

Gilbert Lee's avatar
Gilbert Lee committed
13
#    #Transfers #CUs (srcMem1->Executor1->dstMem1) ... (srcMemL->ExecutorL->dstMemL)
Gilbert Lee's avatar
Gilbert Lee committed
14
15

# 2) Advanced
gilbertlee-amd's avatar
gilbertlee-amd committed
16
17
18
#    A negative number of Transfers is specified, followed by quintuplets describing each Transfer
#    A non-zero number of bytes specified will override any provided value
#    -#Transfers (srcMem1->Executor1->dstMem1 #CUs1 Bytes1) ... (srcMemL->ExecutorL->dstMemL #CUsL BytesL)
Gilbert Lee's avatar
Gilbert Lee committed
19
20

# Argument Details:
Gilbert Lee's avatar
Gilbert Lee committed
21
22
23
24
25
26
27
#   #Transfers:   Number of Transfers to be run in parallel
#   #CUs      :   Number of threadblocks/CUs to use for a GPU-executed Transfer
#   srcMemL   :   Source memory location (Where the data is to be read from). Ignored in memset mode
#   Executor  :   Executor is specified by a character indicating type, followed by device index (0-indexed)
#                 - C: CPU-executed  (Indexed from 0 to # NUMA nodes - 1)
#                 - G: GPU-executed  (Indexed from 0 to # GPUs - 1)
#   dstMemL   :   Destination memory location (Where the data is to be written to)
gilbertlee-amd's avatar
gilbertlee-amd committed
28
29
30
#   bytesL    :   Number of bytes to copy (0 means use command-line specified size)
#                 Must be a multiple of 4 and may be suffixed with ('K','M', or 'G')
#
Gilbert Lee's avatar
Gilbert Lee committed
31
32
33
34
#                 Memory locations are specified by a character indicating memory type,
#                 followed by device index (0-indexed)
#                 Supported memory locations are:
#                 - C:    Pinned host memory       (on NUMA node, indexed from 0 to [# NUMA nodes-1])
gilbertlee-amd's avatar
gilbertlee-amd committed
35
#                 - U:    Unpinned host memory     (on NUMA node, indexed from 0 to [# NUMA nodes-1])
Gilbert Lee's avatar
Gilbert Lee committed
36
37
38
#                 - B:    Fine-grain host memory   (on NUMA node, indexed from 0 to [# NUMA nodes-1])
#                 - G:    Global device memory     (on GPU device indexed from 0 to [# GPUs - 1])
#                 - F:    Fine-grain device memory (on GPU device indexed from 0 to [# GPUs - 1])
Gilbert Lee's avatar
Gilbert Lee committed
39
40

# Examples:
gilbertlee-amd's avatar
gilbertlee-amd committed
41
42
43
44
# 1 4 (G0->G0->G1)                   Uses 4 CUs on GPU0 to copy from GPU0 to GPU1
# 1 4 (C1->G2->G0)                   Uses 4 CUs on GPU2 to copy from CPU1 to GPU0
# 2 4 G0->G0->G1 G1->G1->G0          Copes from GPU0 to GPU1, and GPU1 to GPU0, each with 4 CUs
# -2 (G0 G0 G1 4 1M) (G1 G1 G0 2 2M) Copies 1Mb from GPU0 to GPU1 with 4 CUs, and 2Mb from GPU1 to GPU0 with 2 CUs
Gilbert Lee's avatar
Gilbert Lee committed
45
46
47
48

# Round brackets and arrows' ->' may be included for human clarity, but will be ignored and are unnecessary
# Lines starting with # will be ignored. Lines starting with ## will be echoed to output

Gilbert Lee's avatar
Gilbert Lee committed
49
# Single GPU-executed Transfer between GPUs 0 and 1 using 4 CUs
Gilbert Lee's avatar
Gilbert Lee committed
50
1 4 (G0->G0->G1)
gilbertlee-amd's avatar
gilbertlee-amd committed
51
52
53

# Copies 1Mb from GPU0 to GPU1 with 4 CUs, and 2Mb from GPU1 to GPU0 with 8 CUs
-2 (G0->G0->G1 4 1M) (G1->G1->G0 8 2M)