Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
rosinski committed Jan 1, 2007
1 parent 35c956e commit 5783903
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
6 changes: 3 additions & 3 deletions gptl.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ int GPTLstop (const char *name) /* timer name */
if ( ! initialized)
return GPTLerror ("GPTLstop: GPTLinitialize has not been called\n");

if ((t = get_thread_num (&nthreads, &maxthreads)) < 0)
return GPTLerror ("GPTLstop\n");

/*
** If current depth exceeds a user-specified limit for print, just
** decrement and return
Expand All @@ -522,9 +525,6 @@ int GPTLstop (const char *name) /* timer name */
return 0;
}

if ((t = get_thread_num (&nthreads, &maxthreads)) < 0)
return GPTLerror ("GPTLstop\n");

nchars = MIN (strlen (name), MAX_CHARS);
strncpy (locname, name, nchars);
locname[nchars] = '\0';
Expand Down
15 changes: 8 additions & 7 deletions gptl.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
/*
$Id: gptl.h,v 1.13 2007-01-01 03:44:02 rosinski Exp $
$Id: gptl.h,v 1.14 2007-01-01 04:36:20 rosinski Exp $
*/
#ifndef GPTL_H
#define GPTL_H
typedef enum {
GPTLwall = 1,
GPTLcpu = 2,
GPTLabort_on_error = 3,
GPTLoverhead = 4
GPTLoverhead = 4,
GPTLdepthlimit = 5
} Option;

typedef enum {
GPTLnanotime = 5,
GPTLrtc = 6,
GPTLmpiwtime = 7,
GPTLclockgettime = 8,
GPTLgettimeofday = 9
GPTLnanotime = 6,
GPTLrtc = 7,
GPTLmpiwtime = 8,
GPTLclockgettime = 9,
GPTLgettimeofday = 10
} Funcoption;

/*
Expand Down
12 changes: 7 additions & 5 deletions gptl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
integer GPTLcpu
integer GPTLabort_on_error
integer GPTLoverhead
integer GPTLdepthlimit

integer GPTLnanotime
integer GPTLrtc
Expand All @@ -13,12 +14,13 @@
parameter (GPTLcpu = 2)
parameter (GPTLabort_on_error = 3)
parameter (GPTLoverhead = 4)
parameter (GPTLdepthlimit = 5)

parameter (GPTLnanotime = 5)
parameter (GPTLrtc = 6)
parameter (GPTLmpiwtime = 7)
parameter (GPTLclockgettime = 8)
parameter (GPTLgettimeofday = 9)
parameter (GPTLnanotime = 6)
parameter (GPTLrtc = 7)
parameter (GPTLmpiwtime = 8)
parameter (GPTLclockgettime = 9)
parameter (GPTLgettimeofday = 10)

! Externals

Expand Down

0 comments on commit 5783903

Please sign in to comment.