Merge "Updated memory pool implementation to contain buffers of different sizes." into amd-staging-milan-3.1

This commit is contained in:
Dipal Madhukar Zambare
2021-08-12 09:01:02 -04:00
committed by Gerrit Code Review

View File

@@ -5,7 +5,7 @@
libraries.
Copyright (C) 2014, The University of Texas at Austin
Copyright (C) 2018 - 2019, Advanced Micro Devices, Inc.
Copyright (C) 2018 - 2021, Advanced Micro Devices, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
@@ -128,10 +128,18 @@ void bli_pool_finalize
// Sanity check: The top_index should be zero.
if ( top_index != 0 )
{
#ifdef BLIS_ENABLE_MEM_TRACING
printf( "bli_pool_finalize(): final top_index == %d (expected 0); block_size: %d.\n",
( int )top_index, ( int )bli_pool_block_size( pool ) );
printf( "bli_pool_finalize(): Implication: not all blocks were checked back in!\n" );
bli_abort();
fflush( stdout );
#endif
// We will not abort if there are checked out buffers as
// they will be freed when returned to the pool. This allows us to have
// buffers of different sizes in the pool.
//bli_abort();
}
// Query the free() function pointer for the pool.