Lines Matching refs:allocBegin
332 allocBegin(NULL), in NCVMemStackAllocator()
347 allocBegin(NULL), in NCVMemStackAllocator()
355 allocBegin = NULL; in NCVMemStackAllocator()
363 ncvAssertCUDAReturn(cudaMalloc(&allocBegin, capacity), ); in NCVMemStackAllocator()
366 ncvAssertCUDAReturn(cudaMallocHost(&allocBegin, capacity), ); in NCVMemStackAllocator()
369 allocBegin = (Ncv8u *)malloc(capacity); in NCVMemStackAllocator()
377 allocBegin = (Ncv8u *)reusePtr; in NCVMemStackAllocator()
382 allocBegin = (Ncv8u *)(0x1); in NCVMemStackAllocator()
387 begin = allocBegin; in NCVMemStackAllocator()
395 if (allocBegin != NULL) in ~NCVMemStackAllocator()
399 if (!bReusesMemory && (allocBegin != (Ncv8u *)(0x1))) in ~NCVMemStackAllocator()
404 ncvAssertCUDAReturn(cudaFree(allocBegin), ); in ~NCVMemStackAllocator()
407 ncvAssertCUDAReturn(cudaFreeHost(allocBegin), ); in ~NCVMemStackAllocator()
410 free(allocBegin); in ~NCVMemStackAllocator()
416 allocBegin = NULL; in ~NCVMemStackAllocator()
457 ncvAssertReturn(allocBegin <= begin, NCV_ALLOCATOR_BAD_DEALLOC); in dealloc()
465 …return (((this->_alignment & (this->_alignment-1)) == 0) && isCounting()) || this->allocBegin != N… in isInitialized()