We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aab0e7 commit 5cacbfcCopy full SHA for 5cacbfc
compiler/AST/build.cpp
@@ -2933,7 +2933,11 @@ buildSyncStmt(Expr* stmt) {
2933
block->insertAtTail(new CallExpr(PRIM_MOVE, endCountSave, new CallExpr(PRIM_GET_END_COUNT)));
2934
block->insertAtTail(new CallExpr(PRIM_SET_END_COUNT, new CallExpr("_endCountAlloc", /* forceLocalTypes= */gFalse)));
2935
block->insertAtTail(stmt);
2936
+#ifndef TARGET_HSA
2937
block->insertAtTail(new CallExpr("_waitEndCount"));
2938
+#else
2939
+ block->insertAtTail(new CallExpr("_finalizeTaskGroup"));
2940
+#endif
2941
block->insertAtTail(new CallExpr("_endCountFree", new CallExpr(PRIM_GET_END_COUNT)));
2942
block->insertAtTail(new CallExpr(PRIM_SET_END_COUNT, endCountSave));
2943
return block;
0 commit comments