Skip to content

Commit a8aa65b

Browse files
committed
Add VM implementation
1 parent 80af9c3 commit a8aa65b

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
@@ -133,6 +133,7 @@ using ew_cmn_ns::unary_contig_impl_fn_ptr_t;
133133

134134
MACRO_DEFINE_IMPL(erf, Erf);
135135
MACRO_DEFINE_IMPL(erfc, Erfc);
136+
MACRO_DEFINE_IMPL(erfcx, Erfcx);
136137

137138
template <template <typename fnT, typename T> typename factoryT>
138139
static void populate(py::module_ m,
@@ -187,5 +188,11 @@ void init_erf_funcs(py::module_ m)
187188
"Call `erfc` function from OneMKL VM library to compute the "
188189
"complementary error function value of vector elements",
189190
impl::erfc_contig_dispatch_vector);
191+
192+
impl::populate<impl::ErfcxContigFactory>(
193+
m, "_erfcx",
194+
"Call `erfcx` function from OneMKL VM library to compute the scaled "
195+
"complementary error function value of vector elements",
196+
impl::erfc_contig_dispatch_vector);
190197
}
191198
} // namespace dpnp::extensions::vm

0 commit comments

Comments
 (0)