Skip to content

Commit d060ec1

Browse files
committed
Add DEBUG prints
1 parent 1b363c4 commit d060ec1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/reusable_gpu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
os:
1313
description: A list of OSes
1414
type: string
15-
default: "['Ubuntu', 'Windows']"
15+
default: "['Ubuntu']"
1616
build_type:
1717
description: A list of build types
1818
type: string
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: Run benchmarks DEBUG
112112
working-directory: ${{env.BUILD_DIR}}
113-
run: UMF_LOG="level:debug;flush:debug;output:stderr;pid:yes" ./benchmark/umf-bench-ubench
113+
run: UMF_LOG="level:info;flush:info;output:stderr;pid:yes" ./benchmark/umf-bench-ubench
114114

115115
- name: Run benchmarks
116116
working-directory: ${{env.BUILD_DIR}}

benchmark/ubench.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ UBENCH_EX(simple, proxy_pool_with_os_memory_provider) {
239239
proxy_pool);
240240
}
241241

242+
fprintf(stderr, ">>> DEBUG 1-A umfPoolDestroy(proxy_pool)\n");
242243
umfPoolDestroy(proxy_pool);
244+
fprintf(stderr, ">>> DEBUG 1-B umfPoolDestroy(proxy_pool)\n");
243245
umfMemoryProviderDestroy(os_memory_provider);
244246
free(array);
245247
}
@@ -322,7 +324,9 @@ UBENCH_EX(simple, disjoint_pool_with_os_memory_provider) {
322324
disjoint_pool);
323325
}
324326

327+
fprintf(stderr, ">>> DEBUG 2-A umfPoolDestroy(disjoint_pool)\n");
325328
umfPoolDestroy(disjoint_pool);
329+
fprintf(stderr, ">>> DEBUG 2-B umfPoolDestroy(disjoint_pool)\n");
326330
umfDisjointPoolParamsDestroy(disjoint_memory_pool_params);
327331
umfMemoryProviderDestroy(os_memory_provider);
328332
free(array);
@@ -369,7 +373,9 @@ UBENCH_EX(simple, jemalloc_pool_with_os_memory_provider) {
369373
jemalloc_pool);
370374
}
371375

376+
fprintf(stderr, ">>> DEBUG 3-A umfPoolDestroy(jemalloc_pool)\n");
372377
umfPoolDestroy(jemalloc_pool);
378+
fprintf(stderr, ">>> DEBUG 3-B umfPoolDestroy(jemalloc_pool)\n");
373379
umfMemoryProviderDestroy(os_memory_provider);
374380
free(array);
375381
}
@@ -415,7 +421,9 @@ UBENCH_EX(simple, scalable_pool_with_os_memory_provider) {
415421
scalable_pool);
416422
}
417423

424+
fprintf(stderr, ">>> DEBUG 4-A umfPoolDestroy(scalable_pool)\n");
418425
umfPoolDestroy(scalable_pool);
426+
fprintf(stderr, ">>> DEBUG 4-B umfPoolDestroy(scalable_pool)\n");
419427
umfMemoryProviderDestroy(os_memory_provider);
420428
free(array);
421429
}
@@ -610,7 +618,9 @@ UBENCH_EX(ipc, disjoint_pool_with_level_zero_provider) {
610618
umfPoolFree(pool, allocs[i].ptr);
611619
}
612620

621+
fprintf(stderr, ">>> DEBUG 5-A umfPoolDestroy(pool)\n");
613622
umfPoolDestroy(pool);
623+
fprintf(stderr, ">>> DEBUG 5-B umfPoolDestroy(pool)\n");
614624

615625
err_params_destroy:
616626
umfDisjointPoolParamsDestroy(disjoint_params);

0 commit comments

Comments
 (0)