| 1 |
/*! \file C_Dsub.hpp |
| 2 |
\brief routines for substiution of off-diagonal matrix with strips |
| 3 |
\author Atsushi Suzuki, Laboratoire Jacques-Louis Lions |
| 4 |
\date Jun. 20th 2014 |
| 5 |
\date Jul. 12th 2015 |
| 6 |
\date Nov. 30th 2016 |
| 7 |
*/ |
| 8 |
|
| 9 |
// This file is part of Dissection |
| 10 |
// |
| 11 |
// Dissection is free software: you can redistribute it and/or modify |
| 12 |
// it under the terms of the GNU General Public License as published by |
| 13 |
// the Free Software Foundation, either version 3 of the License, or |
| 14 |
// (at your option) any later version. |
| 15 |
// |
| 16 |
// Linking Dissection statically or dynamically with other modules is making |
| 17 |
// a combined work based on Disssection. Thus, the terms and conditions of |
| 18 |
// the GNU General Public License cover the whole combination. |
| 19 |
// |
| 20 |
// As a special exception, the copyright holders of Dissection give you |
| 21 |
// permission to combine Dissection program with free software programs or |
| 22 |
// libraries that are released under the GNU LGPL and with independent modules |
| 23 |
// that communicate with Dissection solely through the Dissection-fortran |
| 24 |
// interface. You may copy and distribute such a system following the terms of |
| 25 |
// the GNU GPL for Dissection and the licenses of the other code concerned, |
| 26 |
// provided that you include the source code of that other code when and as |
| 27 |
// the GNU GPL requires distribution of source code and provided that you do |
| 28 |
// not modify the Dissection-fortran interface. |
| 29 |
// |
| 30 |
// Note that people who make modified versions of Dissection are not obligated |
| 31 |
// to grant this special exception for their modified versions; it is their |
| 32 |
// choice whether to do so. The GNU General Public License gives permission to |
| 33 |
// release a modified version without this exception; this exception also makes |
| 34 |
// it possible to release a modified version which carries forward this |
| 35 |
// exception. If you modify the Dissection-fortran interface, this exception |
| 36 |
// does not apply to your modified version of Dissection, and you must remove |
| 37 |
// this exception when you distribute your modified version. |
| 38 |
// |
| 39 |
// This exception is an additional permission under section 7 of the GNU |
| 40 |
// General Public License, version 3 ("GPLv3") |
| 41 |
// |
| 42 |
// Dissection is distributed in the hope that it will be useful, |
| 43 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 44 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 45 |
// GNU General Public License for more details. |
| 46 |
// |
| 47 |
// You should have received a copy of the GNU General Public License |
| 48 |
// along with Dissection. If not, see <http://www.gnu.org/licenses/>. |
| 49 |
// |
| 50 |
|
| 51 |
#include "Compiler/blas.hpp" |
| 52 |
#include "Driver/C_threads_tasks.hpp" |
| 53 |
|
| 54 |
template<typename T> |
| 55 |
void C_Dsub_task_exec(void *arg_); |
| 56 |
|
| 57 |
template<typename T> |
| 58 |
void dsub_sym2sym_diag(C_Dsub_task<T> *arg); |
| 59 |
|
| 60 |
template<typename T> |
| 61 |
void dsub_unsym2unsym_diag(C_Dsub_task<T> *arg); |
| 62 |
|
| 63 |
template<typename T> |
| 64 |
void dsub_sym2sym(C_Dsub_task<T> *arg); |
| 65 |
|
| 66 |
template<typename T> |
| 67 |
void dsub_unsym2unsym(C_Dsub_task<T> *arg); |
| 68 |
|
| 69 |
template<typename T> |
| 70 |
void dsub_unsym2diag(C_Dsub_task<T> *arg); |
| 71 |
|
| 72 |
template<typename T> |
| 73 |
void dsub_sym2rct(C_Dsub_task<T> *arg); |
| 74 |
|
| 75 |
template<typename T> |
| 76 |
void dsub_unsym2rct(C_Dsub_task<T> *arg); |
| 77 |
|
| 78 |
template<typename T> |
| 79 |
void dsub_sym2sym_diag_two(C_Dsub_task<T> *arg); |
| 80 |
|
| 81 |
template<typename T> |
| 82 |
void dsub_unsym2unsym_diag_two(C_Dsub_task<T> *arg); |
| 83 |
|
| 84 |
template<typename T> |
| 85 |
void dsub_sym2sym_two(C_Dsub_task<T> *arg); |
| 86 |
|
| 87 |
template<typename T> |
| 88 |
void dsub_unsym2unsym_two(C_Dsub_task<T> *arg); |
| 89 |
|
| 90 |
template<typename T> |
| 91 |
void dsub_unsym2diag_two(C_Dsub_task<T> *arg); |
| 92 |
|
| 93 |
template<typename T> |
| 94 |
void dsub_sym2rct_two(C_Dsub_task<T> *arg); |
| 95 |
|
| 96 |
template<typename T> |
| 97 |
void dsub_unsym2rct_two(C_Dsub_task<T> *arg); |
| 98 |
|
| 99 |
template<typename T> |
| 100 |
void C_Dsub_queue(bool isSym, |
| 101 |
int father_id, |
| 102 |
bool skip_flag, |
| 103 |
vector<C_task *>& queue, |
| 104 |
list <child_contribution<T> > &child_contrib, |
| 105 |
vector<C_task *>* tasks_p, // _tasks_DSymmGEMM |
| 106 |
vector<int>* tasks_p_indcol, |
| 107 |
const bool tasks_p_flag, |
| 108 |
vector<C_task *>& tasks_q, // _tasks_DfillSymm |
| 109 |
vector<C_task *>* tasks_r, // _tasks_SparseLocalSchur |
| 110 |
vector<C_task *>& tasks_s, // _tasks_DSub[level + 1][(*it)] |
| 111 |
vector<C_task *>* tasks_d, // _tasks_deallocateLocalSchur |
| 112 |
vector<int>* tasks_d_indcol, |
| 113 |
int level, |
| 114 |
const bool direct_flag, |
| 115 |
const bool verbose, |
| 116 |
FILE *fp); |
| 117 |
|
| 118 |
template<typename T> |
| 119 |
void update_parents_list(list <int>& parents, |
| 120 |
const int begin, const int end, |
| 121 |
SquareBlockMatrix<T>* mtrx); |