Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update maths functions to run on Iris Xe #1502

Merged
merged 23 commits into from
Aug 5, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7fad167
Update dpnp.arctan2
vlad-perevezentsev Jul 26, 2023
a7d9269
Update dpnp.copysign
vlad-perevezentsev Jul 26, 2023
2685ce7
Update dpnp.fmod
vlad-perevezentsev Jul 26, 2023
4af264e
--amend
vlad-perevezentsev Jul 27, 2023
f901581
Update dpnp.hypot
vlad-perevezentsev Jul 26, 2023
fdb13b0
Update dpnp.maximum
vlad-perevezentsev Jul 26, 2023
01a2fc2
Update dpnp.minimum
vlad-perevezentsev Jul 26, 2023
d33f785
Update dpnp.cross
vlad-perevezentsev Jul 27, 2023
cd1a0f2
Update test_mathematical
vlad-perevezentsev Jul 27, 2023
5fe007d
Merge master into fix_test_mathematical
vlad-perevezentsev Aug 1, 2023
116dbf0
Add a new template function get_res_type
vlad-perevezentsev Aug 2, 2023
6252bf4
Skip test_remainder on Iris Xe
vlad-perevezentsev Aug 2, 2023
d8b664f
Fix TestAdd
vlad-perevezentsev Aug 3, 2023
afa61b5
Fix TestMultiply
vlad-perevezentsev Aug 3, 2023
88d08b8
Merge master into fix_test_mathematical
vlad-perevezentsev Aug 3, 2023
fc1f4dc
Use dispatch_fmod_op in vector implementation
vlad-perevezentsev Aug 3, 2023
bba06f4
Remove fmap for dpnp_floor_divide_ext
vlad-perevezentsev Aug 3, 2023
dab3a04
Use dispatch_fmod_vec for vector impl
vlad-perevezentsev Aug 3, 2023
c58da82
Rename and update get_res_type func
vlad-perevezentsev Aug 3, 2023
ec40fc8
Fix remarks
vlad-perevezentsev Aug 3, 2023
cbdb52e
Use a common check in dispatch_fmod_op
vlad-perevezentsev Aug 4, 2023
ca12b8e
Update dispatch_fmod_op
vlad-perevezentsev Aug 4, 2023
3c77028
Merge branch 'master' into fix_test_mathematical
antonwolfy Aug 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions dpnp/backend/include/dpnp_gen_2arg_3type_tbl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ MACRO_2ARG_3TYPES_OP(dpnp_add_c,
std::complex<double>))

MACRO_2ARG_3TYPES_OP(dpnp_arctan2_c,
sycl::atan2((double)input1_elem, (double)input2_elem),
nullptr,
std::false_type,
sycl::atan2(input1_elem, input2_elem),
sycl::atan2(x1, x2),
MACRO_UNPACK_TYPES(float, double),
oneapi::mkl::vm::atan2,
MACRO_UNPACK_TYPES(float, double))

MACRO_2ARG_3TYPES_OP(dpnp_copysign_c,
sycl::copysign((double)input1_elem, (double)input2_elem),
nullptr,
std::false_type,
sycl::copysign(input1_elem, input2_elem),
sycl::copysign(x1, x2),
MACRO_UNPACK_TYPES(float, double),
oneapi::mkl::vm::copysign,
MACRO_UNPACK_TYPES(float, double))

Expand All @@ -138,16 +138,16 @@ MACRO_2ARG_3TYPES_OP(dpnp_divide_c,
std::complex<double>))

MACRO_2ARG_3TYPES_OP(dpnp_fmod_c,
sycl::fmod((double)input1_elem, (double)input2_elem),
nullptr,
std::false_type,
dispatch_fmod_op(input1_elem, input2_elem),
dispatch_fmod_op(x1, x2),
MACRO_UNPACK_TYPES(std::int32_t, std::int64_t),
oneapi::mkl::vm::fmod,
MACRO_UNPACK_TYPES(float, double))

MACRO_2ARG_3TYPES_OP(dpnp_hypot_c,
sycl::hypot((double)input1_elem, (double)input2_elem),
nullptr,
std::false_type,
sycl::hypot(input1_elem, input2_elem),
sycl::hypot(x1, x2),
MACRO_UNPACK_TYPES(float, double),
oneapi::mkl::vm::hypot,
MACRO_UNPACK_TYPES(float, double))

Expand Down
Loading
Loading