Skip to content

Commit

Permalink
wrap launchHostFunc call in device_task_fn into DeviceSafeCall
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Aug 27, 2024
1 parent 09bb258 commit 2e907ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TiledArray/device/device_task_fn.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ struct deviceTaskFn : public TaskInterface {
} else {
// TODO should we use device callback or device events??
// insert device callback
TiledArray::device::launchHostFunc(*stream_, device_callback, task_);
DeviceSafeCall(TiledArray::device::launchHostFunc(
*stream_, device_callback, task_));
// processed sync, clear state
stream_ = {};
}
Expand Down

0 comments on commit 2e907ed

Please sign in to comment.