Stops debug directory being created on non-ar builds.
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
pContext->ppScratch = new uint8_t*[pContext->NumWorkerThreads];
pContext->pStats = new SWR_STATS[pContext->NumWorkerThreads];
pContext->ppScratch = new uint8_t*[pContext->NumWorkerThreads];
pContext->pStats = new SWR_STATS[pContext->NumWorkerThreads];
// Setup ArchRast thread contexts which includes +1 for API thread.
pContext->pArContext = new HANDLE[pContext->NumWorkerThreads+1];
pContext->pArContext[pContext->NumWorkerThreads] = ArchRast::CreateThreadContext();
// Setup ArchRast thread contexts which includes +1 for API thread.
pContext->pArContext = new HANDLE[pContext->NumWorkerThreads+1];
pContext->pArContext[pContext->NumWorkerThreads] = ArchRast::CreateThreadContext();
// Allocate scratch space for workers.
///@note We could lazily allocate this but its rather small amount of memory.
// Allocate scratch space for workers.
///@note We could lazily allocate this but its rather small amount of memory.
pContext->ppScratch[i] = (uint8_t*)AlignedMalloc(32 * sizeof(KILOBYTE), KNOB_SIMD_WIDTH * 4);
#endif
pContext->ppScratch[i] = (uint8_t*)AlignedMalloc(32 * sizeof(KILOBYTE), KNOB_SIMD_WIDTH * 4);
#endif
// Initialize worker thread context for ArchRast.
pContext->pArContext[i] = ArchRast::CreateThreadContext();
// Initialize worker thread context for ArchRast.
pContext->pArContext[i] = ArchRast::CreateThreadContext();
}
// State setup AFTER context is fully initialized
}
// State setup AFTER context is fully initialized
AlignedFree(pContext->ppScratch[i]);
#endif
AlignedFree(pContext->ppScratch[i]);
#endif
ArchRast::DestroyThreadContext(pContext->pArContext[i]);
ArchRast::DestroyThreadContext(pContext->pArContext[i]);
}
delete[] pContext->ppScratch;
}
delete[] pContext->ppScratch;