File: missing-header.patch

package info (click to toggle)
adios 1.13.1-31
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,692 kB
  • sloc: ansic: 133,236; f90: 8,791; sh: 7,779; python: 7,648; xml: 3,793; makefile: 2,996; cpp: 2,340; java: 626; sed: 16; perl: 8
file content (34 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (3)
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
Description: Cope with missing header file io_timer.h
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2018-11-07
Forwarded: no

Index: adios-1.13.1/src/write/adios_nc4.c
===================================================================
--- adios-1.13.1.orig/src/write/adios_nc4.c
+++ adios-1.13.1/src/write/adios_nc4.c
@@ -21,7 +21,23 @@
 #include "netcdf_par.h"
 #include "netcdf.h"
 
-#include "nssi/io_timer.h"
+// #include "nssi/io_timer.h"
+
+#if defined(USE_TIMERS)
+#define Start_Timer(timer) { timer = MPI_Wtime(); }
+#define Stop_Timer(name, timer)  { timer = MPI_Wtime() - timer; printf("(%d) %s Time = %10.8f\n", __LINE__, name, timer); }
+#define Func_Timer(name, f) { if (global_rank==0) { double callTime; Start_Timer(callTime); f; Stop_Timer(name, callTime); } else { f; } }
+#else
+#define Start_Timer(timer)  {}
+#define Stop_Timer(name, timer)   {}
+#define Func_Timer(name, f) { f; }
+#endif
+
+#if defined(USE_TIMERS) && defined(USE_TIMER_BARRIERS)
+#define Timer_Barrier(comm) { MPI_Barrier(comm); }
+#else
+#define Timer_Barrier(comm) {}
+#endif
 
 
 #ifndef FALSE