R version 3.5.1 (2018-07-02) -- "Feather Spray" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > #R code that demonstrates the use of Rmpi > > #Define a function that takes the loop iteration number and outputs a message containing > # the iteration number, the MPI rank, the hostname, and the number of cores on the host > hello.world <- function(i) { + library(parallel) + sprintf('Hello from loop iteration %d running on rank %d on node %s which has %d cores', + i, mpi.comm.rank(), Sys.info()[c("nodename")], detectCores()); + } > > #Use the parallel libraries > library(Rmpi) > library(parallel) > library(snow) Attaching package: ‘snow’ The following objects are masked from ‘package:parallel’: clusterApply, clusterApplyLB, clusterCall, clusterEvalQ, clusterExport, clusterMap, clusterSplit, makeCluster, parApply, parCapply, parLapply, parRapply, parSapply, splitIndices, stopCluster > # R is called with mpirun -n 1 which defines the master processes > # and then R master process spans worker processes up to the amount of cores > cl <- makeCluster( (mpi.universe.size()-1) , type='MPI' ) 63 slaves are spawned successfully. 0 failed. > > output.lines <- clusterApply( cl=cl, x=(1:500), fun=hello.world ) > cat(unlist(output.lines), sep='\n') Hello from loop iteration 1 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 2 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 3 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 4 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 5 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 6 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 7 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 8 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 9 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 10 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 11 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 12 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 13 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 14 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 15 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 16 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 17 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 18 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 19 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 20 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 21 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 22 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 23 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 24 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 25 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 26 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 27 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 28 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 29 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 30 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 31 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 32 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 33 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 34 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 35 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 36 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 37 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 38 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 39 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 40 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 41 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 42 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 43 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 44 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 45 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 46 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 47 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 48 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 49 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 50 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 51 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 52 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 53 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 54 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 55 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 56 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 57 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 58 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 59 running on rank 59 on node n2n2-9 which has 16 cores Hello from loop iteration 60 running on rank 60 on node n2n2-9 which has 16 cores Hello from loop iteration 61 running on rank 61 on node n2n2-9 which has 16 cores Hello from loop iteration 62 running on rank 62 on node n2n2-9 which has 16 cores Hello from loop iteration 63 running on rank 63 on node n2n2-9 which has 16 cores Hello from loop iteration 64 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 65 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 66 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 67 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 68 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 69 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 70 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 71 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 72 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 73 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 74 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 75 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 76 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 77 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 78 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 79 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 80 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 81 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 82 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 83 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 84 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 85 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 86 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 87 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 88 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 89 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 90 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 91 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 92 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 93 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 94 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 95 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 96 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 97 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 98 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 99 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 100 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 101 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 102 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 103 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 104 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 105 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 106 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 107 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 108 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 109 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 110 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 111 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 112 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 113 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 114 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 115 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 116 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 117 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 118 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 119 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 120 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 121 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 122 running on rank 59 on node n2n2-9 which has 16 cores Hello from loop iteration 123 running on rank 60 on node n2n2-9 which has 16 cores Hello from loop iteration 124 running on rank 61 on node n2n2-9 which has 16 cores Hello from loop iteration 125 running on rank 62 on node n2n2-9 which has 16 cores Hello from loop iteration 126 running on rank 63 on node n2n2-9 which has 16 cores Hello from loop iteration 127 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 128 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 129 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 130 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 131 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 132 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 133 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 134 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 135 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 136 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 137 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 138 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 139 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 140 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 141 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 142 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 143 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 144 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 145 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 146 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 147 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 148 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 149 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 150 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 151 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 152 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 153 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 154 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 155 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 156 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 157 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 158 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 159 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 160 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 161 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 162 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 163 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 164 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 165 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 166 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 167 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 168 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 169 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 170 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 171 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 172 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 173 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 174 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 175 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 176 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 177 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 178 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 179 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 180 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 181 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 182 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 183 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 184 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 185 running on rank 59 on node n2n2-9 which has 16 cores Hello from loop iteration 186 running on rank 60 on node n2n2-9 which has 16 cores Hello from loop iteration 187 running on rank 61 on node n2n2-9 which has 16 cores Hello from loop iteration 188 running on rank 62 on node n2n2-9 which has 16 cores Hello from loop iteration 189 running on rank 63 on node n2n2-9 which has 16 cores Hello from loop iteration 190 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 191 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 192 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 193 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 194 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 195 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 196 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 197 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 198 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 199 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 200 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 201 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 202 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 203 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 204 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 205 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 206 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 207 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 208 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 209 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 210 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 211 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 212 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 213 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 214 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 215 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 216 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 217 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 218 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 219 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 220 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 221 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 222 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 223 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 224 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 225 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 226 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 227 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 228 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 229 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 230 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 231 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 232 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 233 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 234 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 235 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 236 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 237 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 238 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 239 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 240 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 241 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 242 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 243 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 244 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 245 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 246 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 247 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 248 running on rank 59 on node n2n2-9 which has 16 cores Hello from loop iteration 249 running on rank 60 on node n2n2-9 which has 16 cores Hello from loop iteration 250 running on rank 61 on node n2n2-9 which has 16 cores Hello from loop iteration 251 running on rank 62 on node n2n2-9 which has 16 cores Hello from loop iteration 252 running on rank 63 on node n2n2-9 which has 16 cores Hello from loop iteration 253 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 254 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 255 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 256 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 257 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 258 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 259 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 260 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 261 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 262 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 263 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 264 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 265 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 266 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 267 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 268 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 269 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 270 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 271 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 272 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 273 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 274 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 275 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 276 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 277 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 278 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 279 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 280 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 281 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 282 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 283 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 284 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 285 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 286 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 287 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 288 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 289 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 290 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 291 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 292 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 293 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 294 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 295 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 296 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 297 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 298 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 299 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 300 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 301 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 302 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 303 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 304 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 305 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 306 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 307 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 308 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 309 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 310 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 311 running on rank 59 on node n2n2-9 which has 16 cores Hello from loop iteration 312 running on rank 60 on node n2n2-9 which has 16 cores Hello from loop iteration 313 running on rank 61 on node n2n2-9 which has 16 cores Hello from loop iteration 314 running on rank 62 on node n2n2-9 which has 16 cores Hello from loop iteration 315 running on rank 63 on node n2n2-9 which has 16 cores Hello from loop iteration 316 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 317 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 318 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 319 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 320 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 321 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 322 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 323 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 324 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 325 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 326 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 327 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 328 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 329 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 330 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 331 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 332 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 333 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 334 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 335 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 336 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 337 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 338 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 339 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 340 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 341 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 342 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 343 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 344 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 345 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 346 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 347 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 348 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 349 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 350 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 351 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 352 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 353 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 354 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 355 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 356 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 357 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 358 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 359 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 360 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 361 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 362 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 363 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 364 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 365 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 366 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 367 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 368 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 369 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 370 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 371 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 372 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 373 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 374 running on rank 59 on node n2n2-9 which has 16 cores Hello from loop iteration 375 running on rank 60 on node n2n2-9 which has 16 cores Hello from loop iteration 376 running on rank 61 on node n2n2-9 which has 16 cores Hello from loop iteration 377 running on rank 62 on node n2n2-9 which has 16 cores Hello from loop iteration 378 running on rank 63 on node n2n2-9 which has 16 cores Hello from loop iteration 379 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 380 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 381 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 382 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 383 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 384 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 385 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 386 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 387 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 388 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 389 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 390 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 391 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 392 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 393 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 394 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 395 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 396 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 397 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 398 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 399 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 400 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 401 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 402 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 403 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 404 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 405 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 406 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 407 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 408 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 409 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 410 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 411 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 412 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 413 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 414 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 415 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 416 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 417 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 418 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 419 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 420 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 421 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 422 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 423 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 424 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 425 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 426 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 427 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 428 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 429 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 430 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 431 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 432 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 433 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 434 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 435 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 436 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 437 running on rank 59 on node n2n2-9 which has 16 cores Hello from loop iteration 438 running on rank 60 on node n2n2-9 which has 16 cores Hello from loop iteration 439 running on rank 61 on node n2n2-9 which has 16 cores Hello from loop iteration 440 running on rank 62 on node n2n2-9 which has 16 cores Hello from loop iteration 441 running on rank 63 on node n2n2-9 which has 16 cores Hello from loop iteration 442 running on rank 1 on node n2n3-8 which has 20 cores Hello from loop iteration 443 running on rank 2 on node n2n3-8 which has 20 cores Hello from loop iteration 444 running on rank 3 on node n2n3-8 which has 20 cores Hello from loop iteration 445 running on rank 4 on node n2n3-8 which has 20 cores Hello from loop iteration 446 running on rank 5 on node n2n3-8 which has 20 cores Hello from loop iteration 447 running on rank 6 on node n2n3-8 which has 20 cores Hello from loop iteration 448 running on rank 7 on node n2n3-8 which has 20 cores Hello from loop iteration 449 running on rank 8 on node n2n3-8 which has 20 cores Hello from loop iteration 450 running on rank 9 on node n2n3-8 which has 20 cores Hello from loop iteration 451 running on rank 10 on node n2n3-8 which has 20 cores Hello from loop iteration 452 running on rank 11 on node n2n3-8 which has 20 cores Hello from loop iteration 453 running on rank 12 on node n2n3-8 which has 20 cores Hello from loop iteration 454 running on rank 13 on node n2n3-8 which has 20 cores Hello from loop iteration 455 running on rank 14 on node n2n3-8 which has 20 cores Hello from loop iteration 456 running on rank 15 on node n2n3-8 which has 20 cores Hello from loop iteration 457 running on rank 16 on node n2n3-8 which has 20 cores Hello from loop iteration 458 running on rank 17 on node n2n3-8 which has 20 cores Hello from loop iteration 459 running on rank 18 on node n2n3-8 which has 20 cores Hello from loop iteration 460 running on rank 19 on node n2n3-8 which has 20 cores Hello from loop iteration 461 running on rank 20 on node n2n2-1 which has 16 cores Hello from loop iteration 462 running on rank 21 on node n2n2-1 which has 16 cores Hello from loop iteration 463 running on rank 22 on node n2n2-1 which has 16 cores Hello from loop iteration 464 running on rank 23 on node n2n2-1 which has 16 cores Hello from loop iteration 465 running on rank 24 on node n2n2-1 which has 16 cores Hello from loop iteration 466 running on rank 25 on node n2n2-1 which has 16 cores Hello from loop iteration 467 running on rank 26 on node n2n2-1 which has 16 cores Hello from loop iteration 468 running on rank 27 on node n2n2-1 which has 16 cores Hello from loop iteration 469 running on rank 28 on node n2n2-1 which has 16 cores Hello from loop iteration 470 running on rank 29 on node n2n2-1 which has 16 cores Hello from loop iteration 471 running on rank 30 on node n2n2-1 which has 16 cores Hello from loop iteration 472 running on rank 31 on node n2n2-1 which has 16 cores Hello from loop iteration 473 running on rank 32 on node n2n2-1 which has 16 cores Hello from loop iteration 474 running on rank 33 on node n2n2-1 which has 16 cores Hello from loop iteration 475 running on rank 34 on node n2n2-1 which has 16 cores Hello from loop iteration 476 running on rank 35 on node n2n2-1 which has 16 cores Hello from loop iteration 477 running on rank 36 on node n2n2-7 which has 16 cores Hello from loop iteration 478 running on rank 37 on node n2n2-7 which has 16 cores Hello from loop iteration 479 running on rank 38 on node n2n2-7 which has 16 cores Hello from loop iteration 480 running on rank 39 on node n2n2-7 which has 16 cores Hello from loop iteration 481 running on rank 40 on node n2n2-7 which has 16 cores Hello from loop iteration 482 running on rank 41 on node n2n2-7 which has 16 cores Hello from loop iteration 483 running on rank 42 on node n2n2-7 which has 16 cores Hello from loop iteration 484 running on rank 43 on node n2n2-7 which has 16 cores Hello from loop iteration 485 running on rank 44 on node n2n2-7 which has 16 cores Hello from loop iteration 486 running on rank 45 on node n2n2-7 which has 16 cores Hello from loop iteration 487 running on rank 46 on node n2n2-7 which has 16 cores Hello from loop iteration 488 running on rank 47 on node n2n2-7 which has 16 cores Hello from loop iteration 489 running on rank 48 on node n2n2-7 which has 16 cores Hello from loop iteration 490 running on rank 49 on node n2n2-7 which has 16 cores Hello from loop iteration 491 running on rank 50 on node n2n2-7 which has 16 cores Hello from loop iteration 492 running on rank 51 on node n2n2-7 which has 16 cores Hello from loop iteration 493 running on rank 52 on node n2n2-9 which has 16 cores Hello from loop iteration 494 running on rank 53 on node n2n2-9 which has 16 cores Hello from loop iteration 495 running on rank 54 on node n2n2-9 which has 16 cores Hello from loop iteration 496 running on rank 55 on node n2n2-9 which has 16 cores Hello from loop iteration 497 running on rank 56 on node n2n2-9 which has 16 cores Hello from loop iteration 498 running on rank 57 on node n2n2-9 which has 16 cores Hello from loop iteration 499 running on rank 58 on node n2n2-9 which has 16 cores Hello from loop iteration 500 running on rank 59 on node n2n2-9 which has 16 cores > stopCluster(cl) [1] 1 > mpi.exit() [1] "Detaching Rmpi. Rmpi cannot be used unless relaunching R." > > proc.time() user system elapsed 11.250 1.665 15.047