Skip to content

Commit aae4cff

Browse files
authored
Merge branch 'master' into implement_tile
2 parents 243b046 + a73d959 commit aae4cff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1502
-709
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ env:
3636
third_party/cupy/manipulation_tests/test_join.py
3737
third_party/cupy/manipulation_tests/test_rearrange.py
3838
third_party/cupy/manipulation_tests/test_transpose.py
39+
third_party/cupy/math_tests/test_arithmetic.py
3940
third_party/cupy/math_tests/test_explog.py
41+
third_party/cupy/math_tests/test_floating.py
42+
third_party/cupy/math_tests/test_hyperbolic.py
43+
third_party/cupy/math_tests/test_matmul.py
4044
third_party/cupy/math_tests/test_misc.py
45+
third_party/cupy/math_tests/test_rounding.py
4146
third_party/cupy/math_tests/test_trigonometric.py
4247
third_party/cupy/sorting_tests/test_sort.py
4348
VER_JSON_NAME: 'version.json'

dpnp/backend/extensions/vm/abs.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ sycl::event abs_contig_impl(sycl::queue exec_q,
4848
type_utils::validate_type_for_device<T>(exec_q);
4949

5050
const T *a = reinterpret_cast<const T *>(in_a);
51-
T *y = reinterpret_cast<T *>(out_y);
51+
using resTy = typename types::AbsOutputType<T>::value_type;
52+
resTy *y = reinterpret_cast<resTy *>(out_y);
5253

5354
return mkl_vm::abs(exec_q,
5455
n, // number of elements to be calculated

dpnp/backend/extensions/vm/acos.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ sycl::event acos_contig_impl(sycl::queue exec_q,
4848
type_utils::validate_type_for_device<T>(exec_q);
4949

5050
const T *a = reinterpret_cast<const T *>(in_a);
51-
T *y = reinterpret_cast<T *>(out_y);
51+
using resTy = typename types::AcosOutputType<T>::value_type;
52+
resTy *y = reinterpret_cast<resTy *>(out_y);
5253

5354
return mkl_vm::acos(exec_q,
5455
n, // number of elements to be calculated

dpnp/backend/extensions/vm/acosh.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ sycl::event acosh_contig_impl(sycl::queue exec_q,
4848
type_utils::validate_type_for_device<T>(exec_q);
4949

5050
const T *a = reinterpret_cast<const T *>(in_a);
51-
T *y = reinterpret_cast<T *>(out_y);
51+
using resTy = typename types::AcoshOutputType<T>::value_type;
52+
resTy *y = reinterpret_cast<resTy *>(out_y);
5253

5354
return mkl_vm::acosh(exec_q,
5455
n, // number of elements to be calculated

dpnp/backend/extensions/vm/add.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ sycl::event add_contig_impl(sycl::queue exec_q,
5050

5151
const T *a = reinterpret_cast<const T *>(in_a);
5252
const T *b = reinterpret_cast<const T *>(in_b);
53-
T *y = reinterpret_cast<T *>(out_y);
53+
using resTy = typename types::AddOutputType<T>::value_type;
54+
resTy *y = reinterpret_cast<resTy *>(out_y);
5455

5556
return mkl_vm::add(exec_q,
5657
n, // number of elements to be calculated

dpnp/backend/extensions/vm/asin.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ sycl::event asin_contig_impl(sycl::queue exec_q,
4848
type_utils::validate_type_for_device<T>(exec_q);
4949

5050
const T *a = reinterpret_cast<const T *>(in_a);
51-
T *y = reinterpret_cast<T *>(out_y);
51+
using resTy = typename types::AsinOutputType<T>::value_type;
52+
resTy *y = reinterpret_cast<resTy *>(out_y);
5253

5354
return mkl_vm::asin(exec_q,
5455
n, // number of elements to be calculated

dpnp/backend/extensions/vm/asinh.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ sycl::event asinh_contig_impl(sycl::queue exec_q,
4848
type_utils::validate_type_for_device<T>(exec_q);
4949

5050
const T *a = reinterpret_cast<const T *>(in_a);
51-
T *y = reinterpret_cast<T *>(out_y);
51+
using resTy = typename types::AsinhOutputType<T>::value_type;
52+
resTy *y = reinterpret_cast<resTy *>(out_y);
5253

5354
return mkl_vm::asinh(exec_q,
5455
n, // number of elements to be calculated

dpnp/backend/extensions/vm/atan.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ sycl::event atan_contig_impl(sycl::queue exec_q,
4848
type_utils::validate_type_for_device<T>(exec_q);
4949

5050
const T *a = reinterpret_cast<const T *>(in_a);
51-
T *y = reinterpret_cast<T *>(out_y);
51+
using resTy = typename types::AtanOutputType<T>::value_type;
52+
resTy *y = reinterpret_cast<resTy *>(out_y);
5253

5354
return mkl_vm::atan(exec_q,
5455
n, // number of elements to be calculated

dpnp/backend/extensions/vm/atan2.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ sycl::event atan2_contig_impl(sycl::queue exec_q,
5050

5151
const T *a = reinterpret_cast<const T *>(in_a);
5252
const T *b = reinterpret_cast<const T *>(in_b);
53-
T *y = reinterpret_cast<T *>(out_y);
53+
using resTy = typename types::Atan2OutputType<T>::value_type;
54+
resTy *y = reinterpret_cast<resTy *>(out_y);
5455

5556
return mkl_vm::atan2(exec_q,
5657
n, // number of elements to be calculated

dpnp/backend/extensions/vm/atanh.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ sycl::event atanh_contig_impl(sycl::queue exec_q,
4848
type_utils::validate_type_for_device<T>(exec_q);
4949

5050
const T *a = reinterpret_cast<const T *>(in_a);
51-
T *y = reinterpret_cast<T *>(out_y);
51+
using resTy = typename types::AtanhOutputType<T>::value_type;
52+
resTy *y = reinterpret_cast<resTy *>(out_y);
5253

5354
return mkl_vm::atanh(exec_q,
5455
n, // number of elements to be calculated

0 commit comments

Comments
 (0)