Skip to content

Commit 5b7f61a

Browse files
committed
remove not needed free logs
1 parent a3cc32e commit 5b7f61a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/provider/provider_level_zero.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,22 +425,19 @@ static umf_result_t ze_memory_provider_free_helper(void *provider, void *ptr,
425425
size_t bytes,
426426
int update_stats) {
427427
if (ptr == NULL) {
428-
LOG_DEBUG("Free skipped as ptr is NULL");
429428
return UMF_RESULT_SUCCESS;
430429
}
431430

432431
ze_memory_provider_t *ze_provider = provider;
433432
umf_result_t ret;
434433
if (ze_provider->freePolicyFlags == 0) {
435-
LOG_DEBUG("No free policy set, calling zeMemFree with %p", ptr);
436434
ret = ze2umf_result(g_ze_ops.zeMemFree(ze_provider->context, ptr));
437435
} else {
438436
ze_memory_free_ext_desc_t desc = {
439437
.stype = ZE_STRUCTURE_TYPE_MEMORY_FREE_EXT_DESC,
440438
.pNext = NULL,
441439
.freePolicy = ze_provider->freePolicyFlags};
442440

443-
LOG_DEBUG("Free policy was set, calling zeMemFreeExt with %p", ptr);
444441
ret = ze2umf_result(
445442
g_ze_ops.zeMemFreeExt(ze_provider->context, &desc, ptr));
446443
}

0 commit comments

Comments
 (0)