Skip to content

Commit 8249846

Browse files
authored
Merge branch 'master' into update_atleast_func
2 parents 45da608 + e59c1f4 commit 8249846

Some content is hidden

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

62 files changed

+1483
-638
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@ env:
3232
third_party/cupy/logic_tests/test_comparison.py
3333
third_party/cupy/logic_tests/test_truth.py
3434
third_party/cupy/manipulation_tests/test_basic.py
35+
third_party/cupy/manipulation_tests/test_dims.py
3536
third_party/cupy/manipulation_tests/test_join.py
3637
third_party/cupy/manipulation_tests/test_rearrange.py
3738
third_party/cupy/manipulation_tests/test_transpose.py
39+
third_party/cupy/math_tests/test_arithmetic.py
3840
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
3944
third_party/cupy/math_tests/test_misc.py
45+
third_party/cupy/math_tests/test_rounding.py
4046
third_party/cupy/math_tests/test_trigonometric.py
4147
third_party/cupy/sorting_tests/test_sort.py
4248
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)