Skip to content

Commit caee787

Browse files
committed
Add VM implementation
1 parent 76170e0 commit caee787

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dpnp/backend/extensions/vm/erf_funcs.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ using ew_cmn_ns::unary_contig_impl_fn_ptr_t;
130130

131131
MACRO_DEFINE_IMPL(erf, Erf);
132132
MACRO_DEFINE_IMPL(erfc, Erfc);
133+
MACRO_DEFINE_IMPL(erfcx, Erfcx);
133134

134135
template <template <typename fnT, typename T> typename factoryT>
135136
static void populate(py::module_ m,
@@ -184,5 +185,11 @@ void init_erf_funcs(py::module_ m)
184185
"Call `erfc` function from OneMKL VM library to compute the "
185186
"complementary error function value of vector elements",
186187
impl::erfc_contig_dispatch_vector);
188+
189+
impl::populate<impl::ErfcxContigFactory>(
190+
m, "_erfcx",
191+
"Call `erfcx` function from OneMKL VM library to compute the scaled "
192+
"complementary error function value of vector elements",
193+
impl::erfc_contig_dispatch_vector);
187194
}
188195
} // namespace dpnp::extensions::vm

0 commit comments

Comments
 (0)