Skip to content

Commit 77179d9

Browse files
Fix malloc -> malloc_drhook
1 parent 23810e1 commit 77179d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fiat/drhook/drhook_papi.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ void drhook_papi_readall_(long_long * counterArray){
139139
drhook_papi_readAll(counterArray);
140140
}
141141

142+
extern static void *malloc_drhook(size_t size);
143+
142144
/* return 1 if papi can be used after the call */
143145
int drhook_papi_init(int rank){
144146
int lib_version;
@@ -215,7 +217,7 @@ int drhook_papi_init(int rank){
215217

216218
if (drhook_papi_rank==0 && !silent) printf("%s\n",pmsg);
217219

218-
drhook_papi_event_set=malloc(nthreads*sizeof(int));
220+
drhook_papi_event_set=malloc_drhook(nthreads*sizeof(int));
219221

220222
int rcout;
221223
drhook_run_omp_parallel_papi_startup(drhook_papi_event_set,nthreads, &rcout);

0 commit comments

Comments
 (0)