55extern " C" {
66
77#include < stdarg.h>
8+ #include < sacinterface.h>
89#include < string.h>
910#include < time.h>
1011#include < cuda.h>
@@ -80,7 +81,7 @@ void benchCreate( struct cudabench** interval)
8081 /* benchGetInterval actually creates the data structure */
8182}
8283
83- struct cudabench * benchGetInterval_si (char * name, sac_int num)
84+ struct cudabench * benchGetInterval_si (const char * name, sac_int num)
8485{
8586 struct cudabench *interval;
8687 char * newName;
@@ -100,14 +101,14 @@ struct cudabench* benchGetInterval_i( sac_int num)
100101 return ( interval);
101102}
102103
103- struct cudabench * benchGetInterval_s ( char *name)
104+ struct cudabench * benchGetInterval_s (const char *name)
104105{
105106 struct cudabench *interval;
106107 interval = benchGetInterval_si (name, -1 );
107108 return ( interval);
108109}
109110
110- struct cudabench * benchGetInterval_siu (char * name, sac_int num, sac_int timeunit)
111+ struct cudabench * benchGetInterval_siu (const char * name, sac_int num, sac_int timeunit)
111112{
112113 struct cudabench *interval;
113114 char * newName;
@@ -127,7 +128,7 @@ struct cudabench* benchGetInterval_iu( sac_int num, sac_int timeunit)
127128 return ( interval);
128129}
129130
130- struct cudabench * benchGetInterval_su ( char *name, sac_int timeunit)
131+ struct cudabench * benchGetInterval_su (const char *name, sac_int timeunit)
131132{
132133 struct cudabench *interval;
133134 interval = benchGetInterval_siu (name, -1 , timeunit);
0 commit comments