fix lit tests

This is a combination of 3 commits.

fix build and test errors

fix lit test error

fix lit tests
This commit is contained in:
Michael Melesse
2023-04-26 15:15:44 -05:00
parent 1581a1da26
commit 13facab95f
10 changed files with 39 additions and 37 deletions

View File

@@ -646,7 +646,7 @@ struct AtomicRMWOpConversion
tensorTy ? getTypeConverter()->convertType(tensorTy.getElementType())
: opResult.getType();
const size_t valueElemNbits = valueElemTy.getIntOrFloatBitWidth();
auto elemsPerThread = getElemsPerThread(val.getType());
auto elemsPerThread = getTotalElemsPerThread(val.getType());
// vec = 1, numElements = 1 for scalar
auto vec = getVectorSize(ptr);
int numElems = 1;