Skip to content

Commit 8ee8bc3

Browse files
committed
Add sycl::half type to support by VM functions where possible
1 parent eb9fc5c commit 8ee8bc3

39 files changed

+87
-0
lines changed

dpnp/backend/extensions/vm/abs.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct OutputType
6767
td_ns::TypeMapResultEntry<T, std::complex<float>, float>,
6868
td_ns::TypeMapResultEntry<T, double>,
6969
td_ns::TypeMapResultEntry<T, float>,
70+
td_ns::TypeMapResultEntry<T, sycl::half>,
7071
td_ns::DefaultResultEntry<void>>::result_type;
7172
};
7273

dpnp/backend/extensions/vm/acos.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct OutputType
6767
td_ns::TypeMapResultEntry<T, std::complex<float>>,
6868
td_ns::TypeMapResultEntry<T, double>,
6969
td_ns::TypeMapResultEntry<T, float>,
70+
td_ns::TypeMapResultEntry<T, sycl::half>,
7071
td_ns::DefaultResultEntry<void>>::result_type;
7172
};
7273

dpnp/backend/extensions/vm/acosh.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct OutputType
6767
td_ns::TypeMapResultEntry<T, std::complex<float>>,
6868
td_ns::TypeMapResultEntry<T, double>,
6969
td_ns::TypeMapResultEntry<T, float>,
70+
td_ns::TypeMapResultEntry<T, sycl::half>,
7071
td_ns::DefaultResultEntry<void>>::result_type;
7172
};
7273

dpnp/backend/extensions/vm/add.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ struct OutputType
7777
std::complex<float>>,
7878
td_ns::BinaryTypeMapResultEntry<T1, double, T2, double, double>,
7979
td_ns::BinaryTypeMapResultEntry<T1, float, T2, float, float>,
80+
td_ns::BinaryTypeMapResultEntry<T1,
81+
sycl::half,
82+
T2,
83+
sycl::half,
84+
sycl::half>,
8085
td_ns::DefaultResultEntry<void>>::result_type;
8186
};
8287

dpnp/backend/extensions/vm/asin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct OutputType
6767
td_ns::TypeMapResultEntry<T, std::complex<float>>,
6868
td_ns::TypeMapResultEntry<T, double>,
6969
td_ns::TypeMapResultEntry<T, float>,
70+
td_ns::TypeMapResultEntry<T, sycl::half>,
7071
td_ns::DefaultResultEntry<void>>::result_type;
7172
};
7273

dpnp/backend/extensions/vm/asinh.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct OutputType
6767
td_ns::TypeMapResultEntry<T, std::complex<float>>,
6868
td_ns::TypeMapResultEntry<T, double>,
6969
td_ns::TypeMapResultEntry<T, float>,
70+
td_ns::TypeMapResultEntry<T, sycl::half>,
7071
td_ns::DefaultResultEntry<void>>::result_type;
7172
};
7273

dpnp/backend/extensions/vm/atan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct OutputType
6767
td_ns::TypeMapResultEntry<T, std::complex<float>>,
6868
td_ns::TypeMapResultEntry<T, double>,
6969
td_ns::TypeMapResultEntry<T, float>,
70+
td_ns::TypeMapResultEntry<T, sycl::half>,
7071
td_ns::DefaultResultEntry<void>>::result_type;
7172
};
7273

dpnp/backend/extensions/vm/atan2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ struct OutputType
6767
using value_type = typename std::disjunction<
6868
td_ns::BinaryTypeMapResultEntry<T1, double, T2, double, double>,
6969
td_ns::BinaryTypeMapResultEntry<T1, float, T2, float, float>,
70+
td_ns::BinaryTypeMapResultEntry<T1,
71+
sycl::half,
72+
T2,
73+
sycl::half,
74+
sycl::half>,
7075
td_ns::DefaultResultEntry<void>>::result_type;
7176
};
7277

dpnp/backend/extensions/vm/atanh.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct OutputType
6767
td_ns::TypeMapResultEntry<T, std::complex<float>>,
6868
td_ns::TypeMapResultEntry<T, double>,
6969
td_ns::TypeMapResultEntry<T, float>,
70+
td_ns::TypeMapResultEntry<T, sycl::half>,
7071
td_ns::DefaultResultEntry<void>>::result_type;
7172
};
7273

dpnp/backend/extensions/vm/cbrt.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ struct OutputType
6565
using value_type =
6666
typename std::disjunction<td_ns::TypeMapResultEntry<T, double>,
6767
td_ns::TypeMapResultEntry<T, float>,
68+
td_ns::TypeMapResultEntry<T, sycl::half>,
6869
td_ns::DefaultResultEntry<void>>::result_type;
6970
};
7071

0 commit comments

Comments
 (0)