Skip to content

Commit 6e03333

Browse files
weiyu-chensys_zuul
authored andcommitted
A64 atomics supports SIMD8 only.
Change-Id: I1b89cabff71f36c9937ec3e748891deaf27487ba
1 parent bbf203c commit 6e03333

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

visa/TranslationInterface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9882,6 +9882,11 @@ int IR_Builder::translateVISASVMAtomicInst(
98829882

98839883
VISA_Exec_Size instExecSize = execSize;
98849884
execSize = roundUpExecSize(execSize);
9885+
if (execSize == EXEC_SIZE_16)
9886+
{
9887+
// SVM atomics is SIMD8 only
9888+
execSize = EXEC_SIZE_8;
9889+
}
98859890

98869891
unsigned op = Get_Atomic_Op(atomicOp);
98879892

0 commit comments

Comments
 (0)