Skip to content

Commit

Permalink
Remove referenes to op_cuda
Browse files Browse the repository at this point in the history
Device tasks are identified by `have_*` members.

Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Feb 26, 2024
1 parent 6874145 commit 039d46c
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions ttg/ttg/parsec/ttg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1274,13 +1274,12 @@ namespace ttg_parsec {
ttg::World get_world() const { return world; }

private:
/// dispatches a call to derivedT::op if Space == Host, otherwise to derivedT::op_cuda if Space == CUDA
/// dispatches a call to derivedT::op
/// @return void if called a synchronous function, or ttg::coroutine_handle<> if called a coroutine (if non-null,
/// points to the suspended coroutine)
template <ttg::ExecutionSpace Space, typename... Args>
auto op(Args &&...args) {
derivedT *derived = static_cast<derivedT *>(this);
// TODO: do we still distinguish op and op_cuda? How do we handle support for multiple devices?
//if constexpr (Space == ttg::ExecutionSpace::Host) {
using return_type = decltype(derived->op(std::forward<Args>(args)...));
if constexpr (std::is_same_v<return_type,void>) {
Expand All @@ -1290,21 +1289,6 @@ namespace ttg_parsec {
else {
return derived->op(std::forward<Args>(args)...);
}
#if 0
}
else if constexpr (Space == ttg::ExecutionSpace::CUDA) {
using return_type = decltype(derived->op_cuda(std::forward<Args>(args)...));
if constexpr (std::is_same_v<return_type,void>) {
derived->op_cuda(std::forward<Args>(args)...);
return;
}
else {
return derived->op_cuda(std::forward<Args>(args)...);
}
}
else
ttg::abort();
#endif // 0
}

template <std::size_t i, typename terminalT, typename Key>
Expand Down

0 comments on commit 039d46c

Please sign in to comment.