forked from jmrosinski/GPTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmpi.c
661 lines (574 loc) · 17.3 KB
/
pmpi.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
/*
** pmpi.c
**
** Author: Jim Rosinski
**
** Wrappers to MPI routines
*/
#include "private.h"
#include "gptl.h"
#ifdef ENABLE_PMPI
#include <mpi.h>
static bool sync_mpi = false;
int GPTLpmpi_setoption (const int option,
const int val)
{
int retval;
switch (option) {
case GPTLsync_mpi:
sync_mpi = (bool) val;
retval = 0;
break;
default:
retval = 1;
}
return retval;
}
/*
** Additions to MPI_Init: Initialize GPTL if this hasn't already been done.
** Start a timer which will be stopped in MPI_Finalize.
*/
int MPI_Init (int *argc, char ***argv)
{
int ret;
int ignoreret;
ret = PMPI_Init (argc, argv);
if ( ! GPTLis_initialized ())
ignoreret = GPTLinitialize ();
ignoreret = GPTLstart ("MPI_Init_thru_Finalize");
return ret;
}
int MPI_Init_thread (int *argc, char ***argv, int required, int *provided)
{
int ret;
int ignoreret;
ret = PMPI_Init_thread (argc, argv, required, provided);
if ( ! GPTLis_initialized ())
ignoreret = GPTLinitialize ();
ignoreret = GPTLstart ("MPI_Init_thru_Finalize");
return ret;
}
int MPI_Send (CONST void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm)
{
int ret;
int size;
int ignoreret;
Timer *timer;
ignoreret = GPTLstart ("MPI_Send");
ret = PMPI_Send (buf, count, datatype, dest, tag, comm);
ignoreret = GPTLstop ("MPI_Send");
if ((timer = GPTLgetentry ("MPI_Send"))) {
ignoreret = PMPI_Type_size (datatype, &size);
timer->nbytes += ((double) count) * size;
}
return ret;
}
int MPI_Recv (void *buf, int count, MPI_Datatype datatype, int source, int tag,
MPI_Comm comm, MPI_Status *status)
{
int ret;
int ignoreret;
int size;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Recv");
/* Ignore status */
ignoreret = PMPI_Probe (source, tag, comm, status);
ignoreret = GPTLstop ("sync_Recv");
}
ignoreret = GPTLstart ("MPI_Recv");
ret = PMPI_Recv (buf, count, datatype, source, tag, comm, status);
ignoreret = GPTLstop ("MPI_Recv");
if ((timer = GPTLgetentry ("MPI_Recv"))) {
ignoreret = PMPI_Type_size (datatype, &size);
timer->nbytes += ((double) count) * size;
}
return ret;
}
int MPI_Sendrecv (CONST void *sendbuf, int sendcount, MPI_Datatype sendtype, int dest, int sendtag,
void *recvbuf, int recvcount, MPI_Datatype recvtype, int source, int recvtag,
MPI_Comm comm, MPI_Status *status )
{
int ret;
int ignoreret;
int sendsize, recvsize;
Timer *timer;
ignoreret = GPTLstart ("MPI_Sendrecv");
ret = PMPI_Sendrecv (sendbuf, sendcount, sendtype, dest, sendtag,
recvbuf, recvcount, recvtype, source, recvtag, comm, status);
ignoreret = GPTLstop ("MPI_Sendrecv");
if ((timer = GPTLgetentry ("MPI_Sendrecv"))) {
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
timer->nbytes += ((double) recvcount * recvsize) + ((double) sendcount * sendsize);
}
return ret;
}
int MPI_Isend (CONST void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request)
{
int ret;
int ignoreret;
int size;
Timer *timer;
ignoreret = GPTLstart ("MPI_Isend");
ret = PMPI_Isend (buf, count, datatype, dest, tag, comm, request);
ignoreret = GPTLstop ("MPI_Isend");
if ((timer = GPTLgetentry ("MPI_Isend"))) {
ignoreret = PMPI_Type_size (datatype, &size);
timer->nbytes += ((double) count) * size;
}
return ret;
}
int MPI_Issend (CONST void *buf, int count, MPI_Datatype datatype, int dest, int tag,
MPI_Comm comm, MPI_Request *request)
{
int ret;
int ignoreret;
int size;
Timer *timer;
ignoreret = GPTLstart ("MPI_Issend");
ret = PMPI_Issend (buf, count, datatype, dest, tag, comm, request);
ignoreret = GPTLstop ("MPI_Issend");
if ((timer = GPTLgetentry ("MPI_Issend"))) {
ignoreret = PMPI_Type_size (datatype, &size);
timer->nbytes += ((double) count) * size;
}
return ret;
}
int MPI_Irecv (void *buf, int count, MPI_Datatype datatype, int source, int tag,
MPI_Comm comm, MPI_Request *request)
{
int ret;
int ignoreret;
int size;
Timer *timer;
ignoreret = GPTLstart ("MPI_Irecv");
ret = PMPI_Irecv (buf, count, datatype, source, tag, comm, request);
ignoreret = GPTLstop ("MPI_Irecv");
if ((timer = GPTLgetentry ("MPI_Irecv"))) {
ignoreret = PMPI_Type_size (datatype, &size);
timer->nbytes += ((double) count) * size;
}
return ret;
}
int MPI_Wait (MPI_Request *request, MPI_Status *status)
{
int ret;
int ignoreret;
ignoreret = GPTLstart ("MPI_Wait");
ret = PMPI_Wait (request, status);
ignoreret = GPTLstop ("MPI_Wait");
return ret;
}
int MPI_Waitall(int count,
MPI_Request array_of_requests[],
MPI_Status array_of_statuses[])
{
int ret;
int ignoreret;
ignoreret = GPTLstart ("MPI_Waitall");
ret = PMPI_Waitall (count, array_of_requests, array_of_statuses);
ignoreret = GPTLstop ("MPI_Waitall");
return ret;
}
int MPI_Barrier (MPI_Comm comm)
{
int ret;
int ignoreret;
ignoreret = GPTLstart ("MPI_Barrier");
ret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("MPI_Barrier");
return ret;
}
int MPI_Bcast (void *buffer, int count, MPI_Datatype datatype, int root,
MPI_Comm comm )
{
int ret;
int ignoreret;
int size;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Bcast");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Bcast");
}
ignoreret = GPTLstart ("MPI_Bcast");
ret = PMPI_Bcast (buffer, count, datatype, root, comm);
ignoreret = GPTLstop ("MPI_Bcast");
if ((timer = GPTLgetentry ("MPI_Bcast"))) {
ignoreret = PMPI_Type_size (datatype, &size);
timer->nbytes += ((double) count) * size;
}
return ret;
}
int MPI_Allreduce (CONST void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
MPI_Op op, MPI_Comm comm)
{
int ret;
int ignoreret;
int size;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Allreduce");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Allreduce");
}
ignoreret = GPTLstart ("MPI_Allreduce");
ret = PMPI_Allreduce (sendbuf, recvbuf, count, datatype, op, comm);
ignoreret = GPTLstop ("MPI_Allreduce");
if ((timer = GPTLgetentry ("MPI_Allreduce"))) {
ignoreret = PMPI_Type_size (datatype, &size);
/* Estimate size as 1 send plus 1 recv */
timer->nbytes += 2.*((double) count) * size;
}
return ret;
}
int MPI_Gather (CONST void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, int recvcount, MPI_Datatype recvtype,
int root, MPI_Comm comm)
{
int ret;
int iam;
int sendsize, recvsize;
int commsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Gather");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Gather");
}
ignoreret = GPTLstart ("MPI_Gather");
ret = PMPI_Gather (sendbuf, sendcount, sendtype,
recvbuf, recvcount, recvtype, root, comm);
ignoreret = GPTLstop ("MPI_Gather");
if ((timer = GPTLgetentry ("MPI_Gather"))) {
ignoreret = PMPI_Comm_rank (comm, &iam);
ignoreret = PMPI_Comm_size (comm, &commsize);
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
timer->nbytes += (double) sendcount * sendsize;
if (iam == root) {
timer->nbytes += (double) recvcount * recvsize * (commsize-1);
}
}
return ret;
}
int MPI_Gatherv (CONST void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, CONST int *recvcounts, CONST int *displs,
MPI_Datatype recvtype, int root, MPI_Comm comm )
{
int ret;
int iam;
int i;
int sendsize, recvsize;
int commsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Gatherv");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Gatherv");
}
ignoreret = GPTLstart ("MPI_Gatherv");
ret = PMPI_Gatherv (sendbuf, sendcount, sendtype,
recvbuf, recvcounts, displs,
recvtype, root, comm);
ignoreret = GPTLstop ("MPI_Gatherv");
if ((timer = GPTLgetentry ("MPI_Gatherv"))) {
ignoreret = PMPI_Comm_rank (comm, &iam);
ignoreret = PMPI_Comm_size (comm, &commsize);
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
if (iam == root) {
for (i = 0; i < commsize; ++i)
if (i != iam)
timer->nbytes += (double) recvcounts[i] * recvsize;
} else {
timer->nbytes += (double) sendcount * sendsize;
}
}
return ret;
}
int MPI_Scatter (CONST void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, int recvcount, MPI_Datatype recvtype,
int root, MPI_Comm comm)
{
int ret;
int iam;
int sendsize, recvsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Scatter");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Scatter");
}
ignoreret = GPTLstart ("MPI_Scatter");
ret = PMPI_Scatter (sendbuf, sendcount, sendtype,
recvbuf, recvcount, recvtype, root, comm);
ignoreret = GPTLstop ("MPI_Scatter");
if ((timer = GPTLgetentry ("MPI_Scatter"))) {
ignoreret = PMPI_Comm_rank (comm, &iam);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
timer->nbytes += (double) recvcount * recvsize;
if (iam == root) {
ignoreret = PMPI_Type_size (sendtype, &sendsize);
timer->nbytes += (double) sendcount * sendsize;
}
}
return ret;
}
int MPI_Alltoall (CONST void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, int recvcount, MPI_Datatype recvtype,
MPI_Comm comm)
{
int ret;
int sendsize, recvsize;
int commsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Alltoall");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Alltoall");
}
ignoreret = GPTLstart ("MPI_Alltoall");
ret = PMPI_Alltoall (sendbuf, sendcount, sendtype,
recvbuf, recvcount, recvtype, comm);
ignoreret = GPTLstop ("MPI_Alltoall");
if ((timer = GPTLgetentry ("MPI_Alltoall"))) {
ignoreret = PMPI_Comm_size (comm, &commsize);
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
timer->nbytes += ((double) sendcount * sendsize * (commsize-1)) +
((double) recvcount * recvsize * (commsize-1));
}
return ret;
}
int MPI_Reduce (CONST void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
MPI_Op op, int root, MPI_Comm comm )
{
int ret;
int size;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Reduce");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Reduce");
}
ignoreret = GPTLstart ("MPI_Reduce");
ret = PMPI_Reduce (sendbuf, recvbuf, count, datatype, op, root, comm);
ignoreret = GPTLstop ("MPI_Reduce");
if ((timer = GPTLgetentry ("MPI_Reduce"))) {
ignoreret = PMPI_Type_size (datatype, &size);
/* Estimate byte count as 1 send */
timer->nbytes += ((double) count) * size;
}
return ret;
}
/*
** Additions to MPI_Finalize: Stop the timer started in MPI_Init, and
** call GPTLpr() if it hasn't already been called.
*/
int MPI_Finalize (void)
{
int ret, ignoreret;
int iam;
ignoreret = GPTLstop ("MPI_Init_thru_Finalize");
if ( ! GPTLpr_has_been_called ()) {
PMPI_Comm_rank (MPI_COMM_WORLD, &iam);
ignoreret = GPTLpr (iam);
}
/* Since we're in MPI_Finalize it's safe to call GPTLpr_summary for MPI_COMM_WORLD */
ignoreret = GPTLpr_summary (MPI_COMM_WORLD);
ret = PMPI_Finalize();
return ret;
}
int MPI_Allgather (CONST void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, int recvcount, MPI_Datatype recvtype,
MPI_Comm comm)
{
int ret;
int sendsize, recvsize;
int commsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Allgather");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Allgather");
}
ignoreret = GPTLstart ("MPI_Allgather");
ret = PMPI_Allgather (sendbuf, sendcount, sendtype,
recvbuf, recvcount, recvtype, comm);
ignoreret = GPTLstop ("MPI_Allgather");
if ((timer = GPTLgetentry ("MPI_Allgather"))) {
ignoreret = PMPI_Comm_size (comm, &commsize);
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
timer->nbytes += (double) sendcount * sendsize * (commsize-1)+
(double) recvcount * recvsize * (commsize-1);
}
return ret;
}
int MPI_Allgatherv (CONST void *sendbuf, int sendcount, MPI_Datatype sendtype,
void *recvbuf, CONST int *recvcounts, CONST int *displs,
MPI_Datatype recvtype, MPI_Comm comm )
{
int ret;
int iam;
int i;
int sendsize, recvsize;
int commsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Allgatherv");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Allgatherv");
}
ignoreret = GPTLstart ("MPI_Allgatherv");
ret = PMPI_Allgatherv (sendbuf, sendcount, sendtype,
recvbuf, recvcounts, displs,
recvtype, comm);
ignoreret = GPTLstop ("MPI_Allgatherv");
if ((timer = GPTLgetentry ("MPI_Allgatherv"))) {
ignoreret = PMPI_Comm_rank (comm, &iam);
ignoreret = PMPI_Comm_size (comm, &commsize);
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
timer->nbytes += (double) sendcount * sendsize * (commsize-1);
for (i = 0; i < commsize; ++i)
if (i != iam)
timer->nbytes += (double) recvcounts[i] * recvsize;
}
return ret;
}
int MPI_Iprobe (int source, int tag, MPI_Comm comm, int *flag,
MPI_Status *status)
{
int ret;
int ignoreret;
ignoreret = GPTLstart ("MPI_Iprobe");
ret = PMPI_Iprobe (source, tag, comm, flag, status);
ignoreret = GPTLstop ("MPI_Iprobe");
return ret;
}
int MPI_Probe (int source, int tag, MPI_Comm comm, MPI_Status *status)
{
int ret;
int ignoreret;
ignoreret = GPTLstart ("MPI_Probe");
ret = PMPI_Probe (source, tag, comm, status);
ignoreret = GPTLstop ("MPI_Probe");
return ret;
}
int MPI_Ssend (CONST void *buf, int count, MPI_Datatype datatype,
int dest, int tag, MPI_Comm comm)
{
int ret;
int ignoreret;
int size;
Timer *timer;
ignoreret = GPTLstart ("MPI_Ssend");
ret = PMPI_Ssend (buf, count, datatype, dest, tag, comm);
ignoreret = GPTLstop ("MPI_Ssend");
if ((timer = GPTLgetentry ("MPI_Ssend"))) {
ignoreret = PMPI_Type_size (datatype, &size);
timer->nbytes += ((double) count) * size;
}
return ret;
}
int MPI_Alltoallv (CONST void *sendbuf, CONST int *sendcounts, CONST int *sdispls,
MPI_Datatype sendtype, void *recvbuf, CONST int *recvcounts,
CONST int *rdispls, MPI_Datatype recvtype, MPI_Comm comm)
{
int ret;
int iam;
int i;
int sendsize, recvsize;
int commsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Alltoallv");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Alltoallv");
}
ignoreret = GPTLstart ("MPI_Alltoallv");
ret = PMPI_Alltoallv (sendbuf, sendcounts, sdispls,
sendtype, recvbuf, recvcounts,
rdispls, recvtype, comm);
ignoreret = GPTLstop ("MPI_Alltoallv");
if ((timer = GPTLgetentry ("MPI_Alltoallv"))) {
ignoreret = PMPI_Comm_rank (comm, &iam);
ignoreret = PMPI_Comm_size (comm, &commsize);
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
for (i = 0; i < commsize; ++i) {
if (i != iam) {
timer->nbytes += (double) sendcounts[i] * sendsize;
timer->nbytes += (double) recvcounts[i] * recvsize;
}
}
}
return ret;
}
int MPI_Scatterv (CONST void *sendbuf, CONST int *sendcounts, CONST int *displs,
MPI_Datatype sendtype, void *recvbuf, int recvcount,
MPI_Datatype recvtype, int root, MPI_Comm comm)
{
int ret;
int iam;
int i;
int sendsize, recvsize;
int commsize;
int ignoreret;
Timer *timer;
if (sync_mpi) {
ignoreret = GPTLstart ("sync_Scatterv");
ignoreret = PMPI_Barrier (comm);
ignoreret = GPTLstop ("sync_Scatterv");
}
ignoreret = GPTLstart ("MPI_Scatterv");
ret = PMPI_Scatterv (sendbuf, sendcounts, displs,
sendtype, recvbuf, recvcount,
recvtype, root, comm);
ignoreret = GPTLstop ("MPI_Scatterv");
if ((timer = GPTLgetentry ("MPI_Scatterv"))) {
ignoreret = PMPI_Comm_rank (comm, &iam);
ignoreret = PMPI_Comm_size (comm, &commsize);
ignoreret = PMPI_Type_size (sendtype, &sendsize);
ignoreret = PMPI_Type_size (recvtype, &recvsize);
timer->nbytes += (double) recvcount * recvsize;
if (iam == root) {
for (i = 0; i < commsize; ++i)
if (i != iam)
timer->nbytes += (double) sendcounts[i] * sendsize;
} else {
timer->nbytes += (double) recvcount * recvsize;
}
}
return ret;
}
int MPI_Test (MPI_Request *request, int *flag, MPI_Status *status)
{
int ret;
int ignoreret;
ignoreret = GPTLstart ("MPI_Test");
ret = PMPI_Test (request, flag, status);
ignoreret = GPTLstop ("MPI_Test");
return ret;
}
#else /* ENABLE_PMPI not set */
int GPTLpmpi_setoption (const int option,
const int val)
{
return GPTLerror ("GPTLpmpi_setoption: GPTL needs to be built with ENABLE_PMPI=yes "
"to set option %d\n", option);
}
#endif