Adding optimized Mat Allocator

This commit is contained in:
Andrey Pavlenko
2011-11-25 15:39:24 +00:00
parent f05259f28f
commit 467f936459
2 changed files with 6 additions and 1 deletions

View File

@@ -203,6 +203,9 @@ void Mat::create(int d, const int* _sizes, int _type)
if( total() > 0 )
{
#ifdef HAVE_TGPU
if( !allocator ) allocator = tegra::getAllocator(d, _sizes, _type);
#endif
if( !allocator )
{
size_t total = alignSize(step.p[0]*size.p[0], (int)sizeof(*refcount));