diff --git a/ttg/ttg/parsec/ttg.h b/ttg/ttg/parsec/ttg.h index 4783dbe1c..3f0ccfd04 100644 --- a/ttg/ttg/parsec/ttg.h +++ b/ttg/ttg/parsec/ttg.h @@ -1224,6 +1224,7 @@ namespace ttg_parsec { public: /// @return true if derivedT::have_cuda_op exists and is defined to true + template static constexpr bool derived_has_cuda_op() { if constexpr (ttg::meta::is_detected_v) { return derivedT::have_cuda_op; @@ -1233,6 +1234,7 @@ namespace ttg_parsec { } /// @return true if derivedT::have_hip_op exists and is defined to true + template static constexpr bool derived_has_hip_op() { if constexpr (ttg::meta::is_detected_v) { return derivedT::have_hip_op; @@ -1242,6 +1244,7 @@ namespace ttg_parsec { } /// @return true if derivedT::have_hip_op exists and is defined to true + template static constexpr bool derived_has_level_zero_op() { if constexpr (ttg::meta::is_detected_v) { return derivedT::have_level_zero_op; @@ -1251,6 +1254,7 @@ namespace ttg_parsec { } /// @return true if the TT supports device execution + template static constexpr bool derived_has_device_op() { return (derived_has_cuda_op() || derived_has_hip_op() || derived_has_level_zero_op()); }