Skip to content

Commit

Permalink
Hotfix coyote check idle
Browse files Browse the repository at this point in the history
  • Loading branch information
quetric committed Feb 24, 2024
1 parent 271a075 commit 778f7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/xrt/src/coyotedevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void CoyoteRequest::start() {

auto coyote_proc = reinterpret_cast<ACCL::CoyoteDevice *>(cclo())->get_device();

if (coyote_proc->getCSR((OFFSET_HOSTCTRL + HOSTCTRL_ADDR::AP_CTRL)>>2) && (0x02 == 0)) { // read AP_CTRL and check bit 2 (the done bit)
if ((coyote_proc->getCSR((OFFSET_HOSTCTRL + HOSTCTRL_ADDR::AP_CTRL)>>2) & 0x4) == 0) { // read AP_CTRL and check bit 3 (the idle bit)
throw std::runtime_error(
"Error, collective is already running, wait for previous to complete!");
}
Expand Down

0 comments on commit 778f7d8

Please sign in to comment.