Skip to content

Commit 196b8bd

Browse files
committed
added documentation
1 parent 383b5f6 commit 196b8bd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libpimeval/src/pimResMgr.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,9 @@ pimResMgr::pimAllocAssociated(PimObjId assocId, PimDataType dataType)
549549
uint64_t numElemPerRegionLast = 0;
550550
unsigned numColsPerElem = 0;
551551

552+
// The reason other horizontal bit-parallel (AiM, Aquabolt) PIM is not included in this condition is that
553+
// they support only 16-bit floats/ints.
554+
// If more bit-parallel PIMs are added, this condition should be extended.
552555
if ((allocType == PIM_ALLOC_H || allocType == PIM_ALLOC_H1) && (bitsPerElement > bitsPerElementAssoc) && (m_device->getSimTarget() == PIM_DEVICE_BANK_LEVEL || m_device->getSimTarget() == PIM_DEVICE_FULCRUM)) {
553556
// allocate one region per core, with horizontal layout
554557
numRegions = (numElements * bitsPerElement - 1) / numCols + 1;

0 commit comments

Comments
 (0)