|
14 | 14 |
|
15 | 15 | \medskip{} |
16 | 16 |
|
17 | | -\begin{longtable}{|p{0.260\textwidth}|p{0.145\textwidth}|p{0.50\textwidth}|} |
| 17 | +\begin{longtable}{|p{0.360\textwidth}|p{0.145\textwidth}|p{0.50\textwidth}|} |
18 | 18 | \hline |
19 | 19 | \textbf{Variable} & \textbf{Value} & \textbf{Description} |
20 | 20 | \tabularnewline\hline |
|
31 | 31 | %% |
32 | 32 | \EnvVarDecl{SHMEM\_SYMMETRIC\_SIZE} |
33 | 33 | & Non-negative integer or floating point value with an optional character |
34 | | - suffix |
35 | | - & Specifies the size (in bytes) of the symmetric heap memory per \ac{PE}. |
| 34 | + suffiximport itertools |
| 35 | + |
| 36 | +mat = sum([1 for c in itertools.product([1,2,3,4,5,6],repeat=4) if (c[0] + c[1]) == (c[2] + c[3])]) |
| 37 | +tot = 6 * 6 * 6 * 6 |
| 38 | + |
| 39 | +print(tot, mat, mat/tot) |
| 40 | + |
| 41 | + & Specifies the size (in bytes) of the symmetric heap memory per |
| 42 | + \ac{PE}. |
| 43 | + This applies to \LibHandleRef{SHMEM\_SPACE\_DEFAULT} and maintains |
| 44 | + backward compatibility with existing OpenSHMEM applications. |
36 | 45 | The resulting size is implementation-defined and must be at least as large as |
37 | 46 | the integer ceiling of the product of the numeric prefix and the scaling |
38 | 47 | factor. The allowed character suffixes for the scaling factor are as |
|
56 | 65 | \FUNC{shmem\_init\_thread} or causing program termination. |
57 | 66 | \tabularnewline\hline |
58 | 67 | %% |
| 68 | +\EnvVarDecl{SHMEM\_CPU\_SYMMETRIC\_SIZE} |
| 69 | + & Non-negative integer or floating point value with an optional character |
| 70 | + suffiximport itertools |
| 71 | + |
| 72 | +mat = sum([1 for c in itertools.product([1,2,3,4,5,6],repeat=4) if (c[0] + c[1]) == (c[2] + c[3])]) |
| 73 | +tot = 6 * 6 * 6 * 6 |
| 74 | + |
| 75 | +print(tot, mat, mat/tot) |
| 76 | + |
| 77 | + & Specifies the size (in bytes) of the CPU symmetric heap memory per \ac{PE}. |
| 78 | + The resulting size is implementation-defined and must be at least as large as |
| 79 | + the integer ceiling of the product of the numeric prefix and the scaling |
| 80 | + factor. The allowed character suffixes for the scaling factor are as |
| 81 | + follows: |
| 82 | + \begin{itemize} |
| 83 | + \item k or K multiplies by \(2^{10}\) (kibibytes) |
| 84 | + \item m or M multiplies by \(2^{20}\) (mebibytes) |
| 85 | + \item g or G multiplies by \(2^{30}\) (gibibytes) |
| 86 | + \item t or T multiplies by \(2^{40}\) (tebibytes) |
| 87 | + \end{itemize} |
| 88 | + \tabularnewline\hline |
| 89 | +%% |
| 90 | +\EnvVarDecl{SHMEM\_GPU\_SYMMETRIC\_SIZE} |
| 91 | + & Non-negative integer or floating point value with an optional character |
| 92 | + suffiximport itertools |
| 93 | + |
| 94 | +mat = sum([1 for c in itertools.product([1,2,3,4,5,6],repeat=4) if (c[0] + c[1]) == (c[2] + c[3])]) |
| 95 | +tot = 6 * 6 * 6 * 6 |
| 96 | + |
| 97 | +print(tot, mat, mat/tot) |
| 98 | + |
| 99 | + & Specifies the size (in bytes) of the GPU symmetric heap memory per \ac{PE}. |
| 100 | + The resulting size is implementation-defined and must be at least as large as |
| 101 | + the integer ceiling of the product of the numeric prefix and the scaling |
| 102 | + factor. The allowed character suffixes for the scaling factor are as |
| 103 | + follows: |
| 104 | + \begin{itemize} |
| 105 | + \item k or K multiplies by \(2^{10}\) (kibibytes) |
| 106 | + \item m or M multiplies by \(2^{20}\) (mebibytes) |
| 107 | + \item g or G multiplies by \(2^{30}\) (gibibytes) |
| 108 | + \item t or T multiplies by \(2^{40}\) (tebibytes) |
| 109 | + \end{itemize} |
| 110 | + \tabularnewline\hline |
| 111 | +%% |
| 112 | +\EnvVarDecl{SHMEM\_ENABLE\_CPU\_SPACE} |
| 113 | + & Any |
| 114 | + & Enables CPU symmetric heap. When not set or empty, CPU symmetric |
| 115 | + heap is disabled. |
| 116 | + \tabularnewline\hline |
| 117 | +%% |
| 118 | +\EnvVarDecl{SHMEM\_ENABLE\_GPU\_SPACE} |
| 119 | + & Any |
| 120 | + & Enables GPU symmetric heap. When not set or empty, GPU symmetric |
| 121 | + heap is disabled. |
| 122 | + \tabularnewline\hline |
| 123 | +%% |
| 124 | +\EnvVarDecl{SHMEM\_DEFAULT\_SPACE} |
| 125 | + & CPU or GPU |
| 126 | + & Controls whether \LibHandleRef{SHMEM\_DEFAULT\_SPACE} alias to |
| 127 | + \LibHandleRef{SHMEM\_SPACE\_CPU} or \LibHandleRef{SHMEM\_SPACE\_GPU}. |
| 128 | + \tabularnewline\hline |
| 129 | +%% |
59 | 130 | \EnvVarDecl{SHMEM\_DEBUG} |
60 | 131 | & Any |
61 | 132 | & Enable debugging messages |
|
0 commit comments