From 039d46cccc4dda13f0b2869e8d3ddf1a7a24fbd7 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Mon, 26 Feb 2024 10:20:56 -0500 Subject: [PATCH] Remove referenes to op_cuda Device tasks are identified by `have_*` members. Signed-off-by: Joseph Schuchart --- ttg/ttg/parsec/ttg.h | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/ttg/ttg/parsec/ttg.h b/ttg/ttg/parsec/ttg.h index 2ba474305..6fcedba7c 100644 --- a/ttg/ttg/parsec/ttg.h +++ b/ttg/ttg/parsec/ttg.h @@ -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 auto op(Args &&...args) { derivedT *derived = static_cast(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)...)); if constexpr (std::is_same_v) { @@ -1290,21 +1289,6 @@ namespace ttg_parsec { else { return derived->op(std::forward(args)...); } -#if 0 - } - else if constexpr (Space == ttg::ExecutionSpace::CUDA) { - using return_type = decltype(derived->op_cuda(std::forward(args)...)); - if constexpr (std::is_same_v) { - derived->op_cuda(std::forward(args)...); - return; - } - else { - return derived->op_cuda(std::forward(args)...); - } - } - else - ttg::abort(); -#endif // 0 } template