OClCollMeshEngn: collBuff only needs MAP_WRITE; silence dbg prints
When mapping in the collationBuff we only need to supply CL_MAP_WRITE and not CL_MAP_WRITE_INVALIDATE_REGION since we don't care to preserve the contents of the collation buff as input to the collation kernel.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Debug macro: define DEBUG_COLLATE_DGRAMS to enable printf statements
|
||||
#define DEBUG_COLLATE_DGRAMS
|
||||
// #define DEBUG_COLLATE_DGRAMS
|
||||
#ifdef DEBUG_COLLATE_DGRAMS
|
||||
#define DBG_PRINTF(...) printf(__VA_ARGS__)
|
||||
#else
|
||||
@@ -49,6 +49,7 @@ __kernel void collate(
|
||||
// Each PointXYZI is 4 floats (x, y, z, intensity)
|
||||
#define FLOATS_PER_POINT 4
|
||||
uint collationBaseOffset = slotIndex * nPointsPerSlot * FLOATS_PER_POINT;
|
||||
DBG_PRINTF("Running kernel: about to process points in slot.\n");
|
||||
|
||||
// Process based on data type using nested ifs (outer) with loops (inner)
|
||||
if (dataType == 0)
|
||||
|
||||
@@ -342,7 +342,7 @@ bool OpenClCollatingAndMeshingEngine::startCollateKernel(
|
||||
|
||||
mapAssemblyBuffer(CL_MAP_WRITE_INVALIDATE_REGION);
|
||||
unmapAssemblyBuffer();
|
||||
mapCollationBuffer(CL_MAP_WRITE_INVALIDATE_REGION);
|
||||
mapCollationBuffer(CL_MAP_WRITE);
|
||||
unmapCollationBuffer();
|
||||
|
||||
// Validate buffers callable
|
||||
|
||||
Reference in New Issue
Block a user