|
1 | 1 | //*****************************************************************************
|
2 |
| -// Copyright (c) 2016-2020, Intel Corporation |
| 2 | +// Copyright (c) 2016-2022, Intel Corporation |
3 | 3 | // All rights reserved.
|
4 | 4 | //
|
5 | 5 | // Redistribution and use in source and binary forms, with or without
|
@@ -97,6 +97,7 @@ void dpnp_astype_c(const void* array1_in, void* result1, const size_t size)
|
97 | 97 | size,
|
98 | 98 | dep_event_vec_ref);
|
99 | 99 | DPCTLEvent_WaitAndThrow(event_ref);
|
| 100 | + DPCTLEvent_Delete(event_ref); |
100 | 101 | }
|
101 | 102 |
|
102 | 103 | template <typename _DataType, typename _ResultType>
|
@@ -477,6 +478,7 @@ void dpnp_dot_c(void* result_out,
|
477 | 478 | input2_strides,
|
478 | 479 | dep_event_vec_ref);
|
479 | 480 | DPCTLEvent_WaitAndThrow(event_ref);
|
| 481 | + DPCTLEvent_Delete(event_ref); |
480 | 482 | }
|
481 | 483 |
|
482 | 484 | template <typename _DataType_output, typename _DataType_input1, typename _DataType_input2>
|
@@ -614,6 +616,7 @@ void dpnp_eig_c(const void* array_in, void* result1, void* result2, size_t size)
|
614 | 616 | size,
|
615 | 617 | dep_event_vec_ref);
|
616 | 618 | DPCTLEvent_WaitAndThrow(event_ref);
|
| 619 | + DPCTLEvent_Delete(event_ref); |
617 | 620 | }
|
618 | 621 |
|
619 | 622 | template <typename _DataType, typename _ResultType>
|
@@ -707,6 +710,7 @@ void dpnp_eigvals_c(const void* array_in, void* result1, size_t size)
|
707 | 710 | size,
|
708 | 711 | dep_event_vec_ref);
|
709 | 712 | DPCTLEvent_WaitAndThrow(event_ref);
|
| 713 | + DPCTLEvent_Delete(event_ref); |
710 | 714 | }
|
711 | 715 |
|
712 | 716 | template <typename _DataType, typename _ResultType>
|
@@ -774,7 +778,7 @@ void dpnp_initval_c(void* result1, void* value, size_t size)
|
774 | 778 | size,
|
775 | 779 | dep_event_vec_ref);
|
776 | 780 | DPCTLEvent_WaitAndThrow(event_ref);
|
777 |
| - |
| 781 | + DPCTLEvent_Delete(event_ref); |
778 | 782 | }
|
779 | 783 |
|
780 | 784 | template <typename _DataType>
|
@@ -941,6 +945,7 @@ void dpnp_matmul_c(void* result_out,
|
941 | 945 | input2_strides,
|
942 | 946 | dep_event_vec_ref);
|
943 | 947 | DPCTLEvent_WaitAndThrow(event_ref);
|
| 948 | + DPCTLEvent_Delete(event_ref); |
944 | 949 | }
|
945 | 950 |
|
946 | 951 | template <typename _DataType>
|
@@ -1112,11 +1117,25 @@ void func_map_init_linalg(func_map_t& fmap)
|
1112 | 1117 | fmap[DPNPFuncName::DPNP_FN_EIG][eft_FLT][eft_FLT] = {eft_FLT, (void*)dpnp_eig_default_c<float, float>};
|
1113 | 1118 | fmap[DPNPFuncName::DPNP_FN_EIG][eft_DBL][eft_DBL] = {eft_DBL, (void*)dpnp_eig_default_c<double, double>};
|
1114 | 1119 |
|
| 1120 | + fmap[DPNPFuncName::DPNP_FN_EIG_EXT][eft_INT][eft_INT] = {eft_DBL, (void*)dpnp_eig_ext_c<int32_t, double>}; |
| 1121 | + fmap[DPNPFuncName::DPNP_FN_EIG_EXT][eft_LNG][eft_LNG] = {eft_DBL, (void*)dpnp_eig_ext_c<int64_t, double>}; |
| 1122 | + fmap[DPNPFuncName::DPNP_FN_EIG_EXT][eft_FLT][eft_FLT] = {eft_FLT, (void*)dpnp_eig_ext_c<float, float>}; |
| 1123 | + fmap[DPNPFuncName::DPNP_FN_EIG_EXT][eft_DBL][eft_DBL] = {eft_DBL, (void*)dpnp_eig_ext_c<double, double>}; |
| 1124 | + |
1115 | 1125 | fmap[DPNPFuncName::DPNP_FN_EIGVALS][eft_INT][eft_INT] = {eft_DBL, (void*)dpnp_eigvals_default_c<int32_t, double>};
|
1116 | 1126 | fmap[DPNPFuncName::DPNP_FN_EIGVALS][eft_LNG][eft_LNG] = {eft_DBL, (void*)dpnp_eigvals_default_c<int64_t, double>};
|
1117 | 1127 | fmap[DPNPFuncName::DPNP_FN_EIGVALS][eft_FLT][eft_FLT] = {eft_FLT, (void*)dpnp_eigvals_default_c<float, float>};
|
1118 | 1128 | fmap[DPNPFuncName::DPNP_FN_EIGVALS][eft_DBL][eft_DBL] = {eft_DBL, (void*)dpnp_eigvals_default_c<double, double>};
|
1119 | 1129 |
|
| 1130 | + fmap[DPNPFuncName::DPNP_FN_EIGVALS_EXT][eft_INT][eft_INT] = {eft_DBL, |
| 1131 | + (void*)dpnp_eigvals_ext_c<int32_t, double>}; |
| 1132 | + fmap[DPNPFuncName::DPNP_FN_EIGVALS_EXT][eft_LNG][eft_LNG] = {eft_DBL, |
| 1133 | + (void*)dpnp_eigvals_ext_c<int64_t, double>}; |
| 1134 | + fmap[DPNPFuncName::DPNP_FN_EIGVALS_EXT][eft_FLT][eft_FLT] = {eft_FLT, |
| 1135 | + (void*)dpnp_eigvals_ext_c<float, float>}; |
| 1136 | + fmap[DPNPFuncName::DPNP_FN_EIGVALS_EXT][eft_DBL][eft_DBL] = {eft_DBL, |
| 1137 | + (void*)dpnp_eigvals_ext_c<double, double>}; |
| 1138 | + |
1120 | 1139 | fmap[DPNPFuncName::DPNP_FN_INITVAL][eft_BLN][eft_BLN] = {eft_BLN, (void*)dpnp_initval_default_c<bool>};
|
1121 | 1140 | fmap[DPNPFuncName::DPNP_FN_INITVAL][eft_INT][eft_INT] = {eft_INT, (void*)dpnp_initval_default_c<int32_t>};
|
1122 | 1141 | fmap[DPNPFuncName::DPNP_FN_INITVAL][eft_LNG][eft_LNG] = {eft_LNG, (void*)dpnp_initval_default_c<int64_t>};
|
|
0 commit comments