Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/a2a3/runtime/aicpu_build_graph/aicpu/aicpu_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ int32_t AicpuExecutor::handshake_all_cores(Runtime *runtime) {
OUT_OF_ORDER_STORE_BARRIER();
all_handshakes[i].aicpu_ready = 1;
}
OUT_OF_ORDER_STORE_BARRIER();

// Get platform physical cores count for validation
uint32_t max_physical_cores_count = platform_get_physical_cores_count();
Expand Down Expand Up @@ -601,8 +602,11 @@ int32_t AicpuExecutor::handshake_all_cores(Runtime *runtime) {

// Initialize AICore registers after discovery (first round)
platform_init_aicore_regs(reg_addr);
OUT_OF_ORDER_STORE_BARRIER();
hank->aicpu_regs_ready = 1;

OUT_OF_ORDER_STORE_BARRIER();
Comment thread
ChaoWao marked this conversation as resolved.

while (hank->aicore_done == 0) {}

CoreType type = hank->core_type;
Expand Down
4 changes: 4 additions & 0 deletions src/a2a3/runtime/host_build_graph/aicpu/aicpu_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ int AicpuExecutor::handshake_all_cores(Runtime *runtime) {
for (int i = 0; i < cores_total_num_; i++) {
all_handshakes[i].aicpu_ready = 1;
}
OUT_OF_ORDER_STORE_BARRIER();

// Get platform physical cores count for validation
uint32_t max_physical_cores_count = platform_get_physical_cores_count();
Expand Down Expand Up @@ -339,8 +340,11 @@ int AicpuExecutor::handshake_all_cores(Runtime *runtime) {

// Initialize AICore registers after discovery (first round)
platform_init_aicore_regs(reg_addr);
OUT_OF_ORDER_STORE_BARRIER();
hank->aicpu_regs_ready = 1;

OUT_OF_ORDER_STORE_BARRIER();
Comment thread
ChaoWao marked this conversation as resolved.

while (hank->aicore_done == 0) {}

CoreType type = hank->core_type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ int32_t AicpuExecutor::handshake_all_cores(Runtime *runtime) {
OUT_OF_ORDER_STORE_BARRIER();
all_handshakes[i].aicpu_ready = 1;
}
OUT_OF_ORDER_STORE_BARRIER();

// Get platform physical cores count for validation
uint32_t max_physical_cores_count = platform_get_physical_cores_count();
Expand Down Expand Up @@ -939,8 +940,11 @@ int32_t AicpuExecutor::handshake_all_cores(Runtime *runtime) {

// Initialize AICore registers after discovery (first round)
platform_init_aicore_regs(reg_addr);
OUT_OF_ORDER_STORE_BARRIER();
hank->aicpu_regs_ready = 1;

OUT_OF_ORDER_STORE_BARRIER();
Comment thread
ChaoWao marked this conversation as resolved.

while (hank->aicore_done == 0) {}

CoreType type = hank->core_type;
Expand Down
4 changes: 4 additions & 0 deletions src/a5/runtime/host_build_graph/aicpu/aicpu_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ int AicpuExecutor::handshake_all_cores(Runtime *runtime) {
for (int i = 0; i < cores_total_num_; i++) {
all_handshakes[i].aicpu_ready = 1;
}
OUT_OF_ORDER_STORE_BARRIER();

// Get platform physical cores count for validation
uint32_t max_physical_cores_count = platform_get_physical_cores_count();
Expand Down Expand Up @@ -332,8 +333,11 @@ int AicpuExecutor::handshake_all_cores(Runtime *runtime) {

// Initialize AICore registers after discovery (first round)
platform_init_aicore_regs(reg_addr);
OUT_OF_ORDER_STORE_BARRIER();
hank->aicpu_regs_ready = 1;

OUT_OF_ORDER_STORE_BARRIER();
Comment thread
ChaoWao marked this conversation as resolved.

while (hank->aicore_done == 0) {}

CoreType type = hank->core_type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ int32_t AicpuExecutor::handshake_all_cores(Runtime *runtime) {
OUT_OF_ORDER_STORE_BARRIER();
all_handshakes[i].aicpu_ready = 1;
}
OUT_OF_ORDER_STORE_BARRIER();

// Get platform physical cores count for validation
uint32_t max_physical_cores_count = platform_get_physical_cores_count();
Expand Down Expand Up @@ -927,8 +928,11 @@ int32_t AicpuExecutor::handshake_all_cores(Runtime *runtime) {

// Initialize AICore registers after discovery (first round)
platform_init_aicore_regs(reg_addr);
OUT_OF_ORDER_STORE_BARRIER();
hank->aicpu_regs_ready = 1;

OUT_OF_ORDER_STORE_BARRIER();
Comment thread
ChaoWao marked this conversation as resolved.

while (hank->aicore_done == 0) {}

CoreType type = hank->core_type;
Expand Down
Loading