You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requested by @kyungjoo-kim : allow null Kokkos::Future in task spawn dependence
if (f_tgt.is_null()) {
auto f = Kokkos::task_spawn
(Kokkos::TaskSingle(_sched, Kokkos::TaskPriority::High),
TaskFunctor_UpdateSupernodes(_sched, _pool, _info,
_sid, i));
_info.supernodes_future(tgt) = f;
} else {
auto f = Kokkos::task_spawn
(Kokkos::TaskSingle(f_tgt, Kokkos::TaskPriority::High),
TaskFunctor_UpdateSupernodes(_sched, _pool, _info,
_sid, i));
_info.supernodes_future(tgt) = f;
}
This code create a chain of futures that append data to a block. The
very first one depends on an empty future and it triggers an error
"Kokkos spawn given null Future".
This makes me duplicate the same code twice to check null future. I
think that if dependent future is null, it just needs to be ignored
instead of error.
The text was updated successfully, but these errors were encountered:
another possible suggestion is for a scheduler to produce a null future as a const object and the scheduler ignores the future whenever it comes in. Or possibly I can produce a task with no-op.
Requested by @kyungjoo-kim : allow null Kokkos::Future in task spawn dependence
This code create a chain of futures that append data to a block. The
very first one depends on an empty future and it triggers an error
"Kokkos spawn given null Future".
This makes me duplicate the same code twice to check null future. I
think that if dependent future is null, it just needs to be ignored
instead of error.
The text was updated successfully, but these errors were encountered: