Skip to content
Closed
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
5 changes: 5 additions & 0 deletions src/a2a3/runtime/aicpu_build_graph/aicore/aicore_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,9 @@ __aicore__ __attribute__((weak)) void aicore_execute(__gm__ Runtime *runtime, in

// Flush all dirty cache lines to HBM before kernel exit.
dcci(my_hank, SINGLE_CACHE_LINE, CACHELINE_OUT);

// Invalidate our Handshake L1 line on exit so the next case on this core
// sees a fresh aicpu_ready=0 on its first load instead of an L1-resident 1
// left over from this case (no rtDeviceReset between cases).
dcci(my_hank, SINGLE_CACHE_LINE);
}
5 changes: 5 additions & 0 deletions src/a2a3/runtime/host_build_graph/aicore/aicore_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,9 @@ __aicore__ __attribute__((weak)) void aicore_execute(__gm__ Runtime *runtime, in

// Flush all dirty cache lines to HBM before kernel exit.
dcci(my_hank, SINGLE_CACHE_LINE, CACHELINE_OUT);

// Invalidate our Handshake L1 line on exit so the next case on this core
// sees a fresh aicpu_ready=0 on its first load instead of an L1-resident 1
// left over from this case (no rtDeviceReset between cases).
dcci(my_hank, SINGLE_CACHE_LINE);
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,9 @@ __aicore__ __attribute__((weak)) void aicore_execute(__gm__ Runtime *runtime, in

// Flush all dirty cache lines to HBM before kernel exit.
dcci(my_hank, SINGLE_CACHE_LINE, CACHELINE_OUT);

// Invalidate our Handshake L1 line on exit so the next case on this core
// sees a fresh aicpu_ready=0 on its first load instead of an L1-resident 1
// left over from this case (no rtDeviceReset between cases).
dcci(my_hank, SINGLE_CACHE_LINE);
}
5 changes: 5 additions & 0 deletions src/a5/runtime/host_build_graph/aicore/aicore_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,9 @@ __aicore__ __attribute__((weak)) void aicore_execute(__gm__ Runtime *runtime, in

// Flush all dirty cache lines to HBM before kernel exit.
dcci(my_hank, SINGLE_CACHE_LINE, CACHELINE_OUT);

// Invalidate our Handshake L1 line on exit so the next case on this core
// sees a fresh aicpu_ready=0 on its first load instead of an L1-resident 1
// left over from this case (no rtDeviceReset between cases).
dcci(my_hank, SINGLE_CACHE_LINE);
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,9 @@ __aicore__ __attribute__((weak)) void aicore_execute(__gm__ Runtime *runtime, in

// Flush all dirty cache lines to HBM before kernel exit.
dcci(my_hank, SINGLE_CACHE_LINE, CACHELINE_OUT);

// Invalidate our Handshake L1 line on exit so the next case on this core
// sees a fresh aicpu_ready=0 on its first load instead of an L1-resident 1
// left over from this case (no rtDeviceReset between cases).
dcci(my_hank, SINGLE_CACHE_LINE);
}
Loading