Skip to content

Commit

Permalink
Add comment on when DeviceReset is called.
Browse files Browse the repository at this point in the history
Co-authored-by: @yhmtsai <yu-hsiang.tsai@kit.edu>
  • Loading branch information
tcojean and @yhmtsai committed Jun 9, 2020
1 parent 4586679 commit 14205b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/ginkgo/core/base/executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,10 @@ class ExecutorBase : public Executor {

/**
* Controls whether the DeviceReset function should be called thanks to a
* boolean.
* boolean. Note that in any case, `DeviceReset` is called only after destroying
* the last Ginkgo executor. Therefore, it is sufficient to set this flag to the
* last living executor in Ginkgo. Setting this flag to an executor which is not
* destroyed last has no effect.
*/
class EnableDeviceReset {
public:
Expand Down

0 comments on commit 14205b6

Please sign in to comment.